Unverified Commit 0bee9e6f authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

test: update amp test to always check redbox (#47050)

parent 287ad833
......@@ -17,7 +17,7 @@ createNextDescribe(
it('should show error exporting AMP config in app dir', async () => {
const { session, cleanup } = await sandbox(next)
// Add AMP exprot
// Add AMP export
await session.patch(
'app/page.js',
`
......@@ -30,7 +30,7 @@ createNextDescribe(
`
)
await session.hasRedbox(true)
expect(await session.hasRedbox(true)).toBe(true)
expect(await session.getRedboxDescription()).toInclude(
'AMP is not supported in the app directory. If you need to use AMP it will continue to be supported in the pages directory.'
)
......
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