diff --git a/test/integration/getserverprops/test/index.test.js b/test/integration/getserverprops/test/index.test.js index 4c3dc963f4ee9..1c932da181e2a 100644 --- a/test/integration/getserverprops/test/index.test.js +++ b/test/integration/getserverprops/test/index.test.js @@ -249,6 +249,16 @@ const runTests = (dev = false) => { expect(text).toMatch(/a normal page/) }) + it('should provide correct query value for dynamic page', async () => { + const html = await renderViaHTTP( + appPort, + '/blog/post-1?post=something-else' + ) + const $ = cheerio.load(html) + const query = JSON.parse($('#query').text()) + expect(query.post).toBe('post-1') + }) + it('should parse query values on mount correctly', async () => { const browser = await webdriver(appPort, '/blog/post-1?another=value') await waitFor(2000)