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') } })