From 6cb1b389c506fcf621e4777175ac5dc3adb7b19e Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 30 Aug 2021 09:58:30 -0400 Subject: [PATCH] Increment page count --- test/integration/production/test/index.test.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/test/integration/production/test/index.test.js b/test/integration/production/test/index.test.js index 9d820808f3ca9..f648948e9054c 100644 --- a/test/integration/production/test/index.test.js +++ b/test/integration/production/test/index.test.js @@ -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})` @@ -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')