scrollToBottom() — astro Function Reference
Architecture documentation for the scrollToBottom() function in view-transitions.test.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 4f12d402_f8c6_c865_513d_0de92462894a["scrollToBottom()"] b4c19437_37d7_2f07_374e_31b46d21464b["view-transitions.test.js"] 4f12d402_f8c6_c865_513d_0de92462894a -->|defined in| b4c19437_37d7_2f07_374e_31b46d21464b style 4f12d402_f8c6_c865_513d_0de92462894a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/e2e/view-transitions.test.js lines 24–29
function scrollToBottom(page) {
return page.evaluate(() => {
window.scrollY = document.documentElement.scrollHeight;
window.dispatchEvent(new Event('scroll'));
});
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does scrollToBottom() do?
scrollToBottom() is a function in the astro codebase, defined in packages/astro/e2e/view-transitions.test.js.
Where is scrollToBottom() defined?
scrollToBottom() is defined in packages/astro/e2e/view-transitions.test.js at line 24.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free