Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Scroll header by focusing on Load more button
Browse files Browse the repository at this point in the history
  • Loading branch information
obulat committed Apr 21, 2022
1 parent 6f83b78 commit 5ff1adb
Show file tree
Hide file tree
Showing 61 changed files with 2 additions and 1 deletion.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
3 changes: 2 additions & 1 deletion test/playwright/visual-regression/header.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test.describe('header snapshots', () => {
})

test('scrolled', async ({ page }) => {
await page.mouse.wheel(10, 0)
await page.locator('has-text:"Load more"').focus()
await expectSnapshot('scrolled-ltr', page.locator(headerSelector))
})

Expand Down Expand Up @@ -46,6 +46,7 @@ test.describe('header snapshots', () => {
})

test('scrolled', async ({ page }) => {
await page.locator('has-text:"Load more"').focus()
await page.mouse.wheel(10, 0)
await expectSnapshot('scrolled-rtl', page.locator(headerSelector))
})
Expand Down

0 comments on commit 5ff1adb

Please sign in to comment.