Unverified Commit 9d4bb49a authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Fix failing e2e getServerSideProps test (#39885)

After the fix was landed for `_error` being used even when it's a serverless function this test no longer shows the default Vercel error page.  

Fixes: https://github.com/vercel/next.js/runs/7985910009?check_suite_focus=true
parent 88916fba
export default function Error() {
return <p>custom pages/500</p>
}
...@@ -372,9 +372,7 @@ const runTests = (isDev = false, isDeploy = false) => { ...@@ -372,9 +372,7 @@ const runTests = (isDev = false, isDeploy = false) => {
expect(html).toContain('oof') expect(html).toContain('oof')
} else { } else {
expect(res.status).toBe(500) expect(res.status).toBe(500)
expect(html).toContain( expect(html).toContain('custom pages/500')
isDeploy ? 'FUNCTION_INVOCATION_FAILED' : 'Internal Server Error'
)
expect(html).not.toContain('This page could not be found') expect(html).not.toContain('This page could not be found')
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment