From 8757c65082b945e6d7750b8941fc9c3f42329560 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Tue, 23 Aug 2022 22:19:38 -0500 Subject: [PATCH] Fix failing e2e getServerSideProps test --- test/e2e/getserversideprops/app/pages/500.js | 3 +++ test/e2e/getserversideprops/test/index.test.ts | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 test/e2e/getserversideprops/app/pages/500.js diff --git a/test/e2e/getserversideprops/app/pages/500.js b/test/e2e/getserversideprops/app/pages/500.js new file mode 100644 index 000000000000000..54cd77c73178adb --- /dev/null +++ b/test/e2e/getserversideprops/app/pages/500.js @@ -0,0 +1,3 @@ +export default function Error() { + return

custom pages/500

+} diff --git a/test/e2e/getserversideprops/test/index.test.ts b/test/e2e/getserversideprops/test/index.test.ts index bf07df48887a813..50df0414ee15930 100644 --- a/test/e2e/getserversideprops/test/index.test.ts +++ b/test/e2e/getserversideprops/test/index.test.ts @@ -372,9 +372,7 @@ const runTests = (isDev = false, isDeploy = false) => { expect(html).toContain('oof') } else { expect(res.status).toBe(500) - expect(html).toContain( - isDeploy ? 'FUNCTION_INVOCATION_FAILED' : 'Internal Server Error' - ) + expect(html).toContain('custom pages/500') expect(html).not.toContain('This page could not be found') } })