From 7736e6d1cdf85427ac2ed89c611a1b3170924643 Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Sun, 12 Mar 2023 21:15:43 +0100 Subject: [PATCH] test: update amp test to always check redbox --- .../acceptance-app/unsupported-app-features.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/development/acceptance-app/unsupported-app-features.test.ts b/test/development/acceptance-app/unsupported-app-features.test.ts index acaec41bb19e..a614a40eea1c 100644 --- a/test/development/acceptance-app/unsupported-app-features.test.ts +++ b/test/development/acceptance-app/unsupported-app-features.test.ts @@ -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.' )