waitForPageLoad() — astro Function Reference
Architecture documentation for the waitForPageLoad() function in prefetch.test.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD b5b55b9f_a2a7_ee67_4691_8a5c5b93d2ee["waitForPageLoad()"] 1c683310_85be_7904_6ff5_67c2a35b7c0b["prefetch.test.js"] b5b55b9f_a2a7_ee67_4691_8a5c5b93d2ee -->|defined in| 1c683310_85be_7904_6ff5_67c2a35b7c0b style b5b55b9f_a2a7_ee67_4691_8a5c5b93d2ee fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/e2e/prefetch.test.js lines 72–75
async function waitForPageLoad(page) {
await page.waitForEvent('response');
await new Promise((res) => setTimeout(res, 500)); // wait for transition to finish
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does waitForPageLoad() do?
waitForPageLoad() is a function in the astro codebase, defined in packages/astro/e2e/prefetch.test.js.
Where is waitForPageLoad() defined?
waitForPageLoad() is defined in packages/astro/e2e/prefetch.test.js at line 72.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free