Skip to content

Commit

Permalink
revert test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ztanner committed Oct 10, 2023
1 parent 2376810 commit 388f345
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/e2e/app-dir/router-autoscroll/router-autoscroll.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ createNextDescribe(
it('Should scroll to the top of the layout when the first child is display none', async () => {
const browser = await webdriver(next.url, '/')
// we scroll to the bottom of the page because that's where the links are
await browser.eval('window.scrollTo(0, document.body.scrollHeight)')
await browser.eval('window.scrollTo(0, 500)')
await browser
.elementByCss('#to-invisible-first-element')
.click()
Expand All @@ -174,7 +174,7 @@ createNextDescribe(

it('Should scroll to the top of the layout when the first child is position fixed', async () => {
const browser = await webdriver(next.url, '/')
await browser.eval('window.scrollTo(0, document.body.scrollHeight)')
await browser.eval('window.scrollTo(0, 500)')
await browser
.elementByCss('#to-fixed-first-element')
.click()
Expand All @@ -198,7 +198,7 @@ createNextDescribe(

it('Should scroll to the top of the layout when the first child is position sticky', async () => {
const browser = await webdriver(next.url, '/')
await browser.eval('window.scrollTo(0, document.body.scrollHeight)')
await browser.eval('window.scrollTo(0, 500)')
await browser
.elementByCss('#to-sticky-first-element')
.click()
Expand All @@ -222,7 +222,7 @@ createNextDescribe(

it('Should apply scroll when loading.js is used', async () => {
const browser = await webdriver(next.url, '/')
await browser.eval('window.scrollTo(0, document.body.scrollHeight)')
await browser.eval('window.scrollTo(0, 500)')
await browser
.elementByCss('#to-loading-scroll')
.click()
Expand Down

0 comments on commit 388f345

Please sign in to comment.