Skip to content

Commit

Permalink
cleanup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ztanner committed Jun 25, 2023
1 parent 2cd1bb7 commit 9fcabaa
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default function InterceptedAuthorIdPage() {
return <div id="user-intercept-page">Intercepted Page</div>
export default function InterceptPage() {
return <div id="catchall-intercept-page">Intercepted Page</div>
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default function InterceptedAuthorIdPage() {
return <div id="user-intercept-page">Intercepted Page</div>
export default function InterceptedPage() {
return <div id="optional-catchall-intercept-page">Intercepted Page</div>
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default function AuthorIdPage() {
return <div id="user-regular-page">Regular Page</div>
export default function RegularPage() {
return <div id="catchall-regular-page">Regular Page</div>
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function RegularPage() {
return <div id="optional-catchall-regular-page">Regular Page</div>
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ createNextDescribe(
'[href="/intercepting-routes-dynamic-catchall/photos/optional-catchall/123"]'
)
.click()
.waitForElementByCss('#user-intercept-page')
.waitForElementByCss('#optional-catchall-intercept-page')
.text(),
'Intercepted Page'
)
Expand All @@ -409,7 +409,10 @@ createNextDescribe(
// Trigger a refresh, this should load the normal page, not the modal.
await check(
() =>
browser.refresh().waitForElementByCss('#user-regular-page').text(),
browser
.refresh()
.waitForElementByCss('#optional-catchall-regular-page')
.text(),
'Regular Page'
)

Expand All @@ -436,7 +439,7 @@ createNextDescribe(
'[href="/intercepting-routes-dynamic-catchall/photos/catchall/123"]'
)
.click()
.waitForElementByCss('#user-intercept-page')
.waitForElementByCss('#catchall-intercept-page')
.text(),
'Intercepted Page'
)
Expand All @@ -450,7 +453,10 @@ createNextDescribe(
// Trigger a refresh, this should load the normal page, not the modal.
await check(
() =>
browser.refresh().waitForElementByCss('#user-regular-page').text(),
browser
.refresh()
.waitForElementByCss('#catchall-regular-page')
.text(),
'Regular Page'
)

Expand Down

0 comments on commit 9fcabaa

Please sign in to comment.