From d058a1d029abd7d87a273bbe29b69c19ce6a0de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Mon, 22 Jan 2024 22:09:34 +0900 Subject: [PATCH] Revert "Update tests for color" This reverts commit c244d9dd9f4dae154c64250b29dad5814c80112b. --- test/e2e/app-dir/rsc-basic/rsc-basic.test.ts | 4 ++-- test/integration/react-18/test/concurrent.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/app-dir/rsc-basic/rsc-basic.test.ts b/test/e2e/app-dir/rsc-basic/rsc-basic.test.ts index af4301b6e5635..50f24df39ae90 100644 --- a/test/e2e/app-dir/rsc-basic/rsc-basic.test.ts +++ b/test/e2e/app-dir/rsc-basic/rsc-basic.test.ts @@ -340,7 +340,7 @@ createNextDescribe( // from styled-jsx expect(head).toMatch(/{color:(\s*)purple;?}/) // styled-jsx/style - expect(head).toMatch(/{color:(\s*)#ff69b4;?}/) // styled-jsx/css + expect(head).toMatch(/{color:(\s*)hotpink;?}/) // styled-jsx/css // from styled-components expect(head).toMatch(/{color:(\s*)blue;?}/) @@ -352,7 +352,7 @@ createNextDescribe( // from styled-jsx expect(head).toMatch(/{color:(\s*)purple;?}/) // styled-jsx/style - expect(head).toMatch(/{color:(\s*)#ff69b4;?}/) // styled-jsx/css + expect(head).toMatch(/{color:(\s*)hotpink;?}/) // styled-jsx/css // from styled-components expect(head).toMatch(/{color:(\s*)blue;?}/) diff --git a/test/integration/react-18/test/concurrent.js b/test/integration/react-18/test/concurrent.js index a6de4d75d737e..a1b3c3a8da71e 100644 --- a/test/integration/react-18/test/concurrent.js +++ b/test/integration/react-18/test/concurrent.js @@ -21,7 +21,7 @@ export default (context, _render) => { context.appPort, '/use-flush-effect/styled-jsx' ) - const stylesOccurrence = html.match(/color:(\s)*#00f/g) || [] + const stylesOccurrence = html.match(/color:(\s)*blue/g) || [] expect(stylesOccurrence.length).toBe(1) await withBrowser('/use-flush-effect/styled-jsx', async (browser) => {