Skip to content

Commit 288b157

Browse files
committed
test(org): grow screenshots to Home's scroller too
1 parent 80229ba commit 288b157

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎apps/sim/scripts/test-org-redesign-e2e.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3099,9 +3099,7 @@ function routesFor(persona: Persona): { name: string; path: string }[] {
30993099
async function fullPageScreenshot(page: Page, path: string, viewport: Viewport) {
31003100
const height = await page.evaluate(() => {
31013101
let tallest = innerHeight
3102-
for (const element of Array.from(
3103-
document.querySelectorAll('main, main *, [data-platform-ui] *')
3104-
)) {
3102+
for (const element of Array.from(document.querySelectorAll('body *'))) {
31053103
const overflow = element.scrollHeight - element.clientHeight
31063104
if (overflow > 1) tallest = Math.max(tallest, innerHeight + overflow)
31073105
}

0 commit comments

Comments
 (0)