From 2ca66c1fabb1389576a5ddbc435478ad7c1bdc32 Mon Sep 17 00:00:00 2001 From: TasukuUno Date: Fri, 9 Oct 2020 13:40:44 +0900 Subject: [PATCH] Fix test without expect for redirects from getStaticProps/getServerSideProps --- test/integration/gssp-redirect/test/index.test.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/integration/gssp-redirect/test/index.test.js b/test/integration/gssp-redirect/test/index.test.js index bdbb842bd51c6..0a467296a8aca 100644 --- a/test/integration/gssp-redirect/test/index.test.js +++ b/test/integration/gssp-redirect/test/index.test.js @@ -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 () => { @@ -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 () => {