Skip to content

Commit

Permalink
Fix test without expect for redirects from getStaticProps/getServerSi…
Browse files Browse the repository at this point in the history
…deProps
  • Loading branch information
TasukuUno committed Oct 9, 2020
1 parent 62b9183 commit 2ca66c1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/integration/gssp-redirect/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ const runTests = () => {
window.next.router.push('/gssp-blog/redirect-dest-_another')
})()`)
await browser.waitForElementByCss('#another')

const text = await browser.elementByCss('#another').text()

expect(text).toEqual('another Page')
})

it('should apply redirect when GSSP page is navigated to client-side (external)', async () => {
Expand All @@ -149,6 +153,10 @@ const runTests = () => {
window.next.router.push('/gsp-blog/redirect-dest-_another')
})()`)
await browser.waitForElementByCss('#another')

const text = await browser.elementByCss('#another').text()

expect(text).toEqual('another Page')
})

it('should apply redirect when GSP page is navigated to client-side (external)', async () => {
Expand Down

0 comments on commit 2ca66c1

Please sign in to comment.