Skip to content

Commit bcf6460

Browse files
committed
fix: adjust scroll position in background lazyload test
1 parent 0cf5b2b commit bcf6460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/e2e/metaslider-background-lazyload.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test.describe('Check Metaslider Background Page', () => {
1616
});
1717

1818
test('After scroll slider background images not in view should have no background', async ({ page }) => {
19-
await page.evaluate(() => window.scrollTo(0, 2500));
19+
await page.evaluate(() => window.scrollTo(0, 100));
2020

2121
const slider = page.locator('.entry-content .coin-slider > .coin-slider').nth(1);
2222
await expect(slider).toHaveCSS('background-image', /none/);

0 commit comments

Comments
 (0)