Skip to content

Commit 3efa575

Browse files
committed
Fix selector
1 parent 275531b commit 3efa575

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/playwright/visual.spec.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test('visual', async ({page, extensionId}) => {
5050

5151
// Scroll to the bottom of the page
5252
// document.querySelector('.footer-padding').scrollIntoView()
53-
await page.locator('.footer-padding').evaluate((/** @type {HTMLElement} */ element) => element.scrollIntoView());
53+
await page.locator('.footer-padding').evaluate((/** @type {HTMLElement} */ element) => element.scrollIntoView());
5454

5555
// Get page height by getting the footer and adding height and y position
5656

@@ -59,6 +59,7 @@ test('visual', async ({page, extensionId}) => {
5959
const boundingBox = /** @type {NonNullable<Awaited<ReturnType<import('@playwright/test').ElementHandle<HTMLElement>['boundingBox']>>>} */ (await footer.boundingBox());
6060
expect(boundingBox).not.toBe(null);
6161
const pageHeight = Math.ceil(boundingBox.y + boundingBox.height);
62+
// TODO: remove log
6263
console.log('Page height:', pageHeight);
6364

6465
await page.setViewportSize({width: 1280, height: pageHeight});

0 commit comments

Comments
 (0)