Skip to content

Commit

Permalink
Increment page count
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Aug 30, 2021
1 parent 3418413 commit 6cb1b38
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions test/integration/production/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('Production Usage', () => {
})

it('should contain generated page count in output', async () => {
const pageCount = process.env.NEXT_PRIVATE_TEST_WEBPACK4_MODE ? 37 : 38
const pageCount = process.env.NEXT_PRIVATE_TEST_WEBPACK4_MODE ? 38 : 39
expect(output).toContain(`Generating static pages (0/${pageCount})`)
expect(output).toContain(
`Generating static pages (${pageCount}/${pageCount})`
Expand Down Expand Up @@ -469,13 +469,12 @@ describe('Production Usage', () => {
it('should set title by routeChangeComplete event', async () => {
const browser = await webdriver(appPort, '/')
await browser.eval(function setup() {
window.next.router.events.on(
'routeChangeComplete',
function handler(url) {
window.routeChangeTitle = document.title
window.routeChangeUrl = url
}
)
window.next.router.events.on('routeChangeComplete', function handler(
url
) {
window.routeChangeTitle = document.title
window.routeChangeUrl = url
})
window.next.router.push('/with-title')
})
await browser.waitForElementByCss('#with-title')
Expand Down

0 comments on commit 6cb1b38

Please sign in to comment.