Repository: vercel/next.js
Pull request: Turbopack: disable pages dir css test cases

### What?

Disable these test cases until we have a css chunking implementation for pages router too

Closes PACK-4224

Changed files:
filename: test/e2e/app-dir/css-order/css-order.test.ts
patch: @@ -25,6 +25,7 @@ const PAGES: Record<
     color: string
     background?: string
     conflict?: boolean
+    conflictTurbo?: boolean
     brokenLoading?: boolean
     brokenLoadingDev?: boolean
   }
@@ -153,20 +154,26 @@ const PAGES: Record<
   'pages-reversed-a': {
     group: 'pages-reversed',
     brokenLoadingDev: true,
+    // TODO Turbopack can support this case with a pages dir css chunking
+    conflictTurbo: true,
     url: '/pages/reversed/a',
     selector: '#hellora',
     color: 'rgb(0, 166, 255)',
   },
   'pages-reversed-b': {
     group: 'pages-reversed',
     brokenLoadingDev: true,
+    // TODO Turbopack can support this case with a pages dir css chunking
+    conflictTurbo: true,
     url: '/pages/reversed/b',
     selector: '#hellorb',
     color: 'rgb(0, 89, 255)',
   },
   'pages-partial-reversed-a': {
     group: 'pages-partial-reversed',
     brokenLoadingDev: true,
+    // TODO Turbopack can support this case with a pages dir css chunking
+    conflictTurbo: true,
     url: '/pages/partial-reversed/a',
     selector: '#hellopra',
     color: 'rgb(255, 166, 255)',
@@ -175,6 +182,8 @@ const PAGES: Record<
   'pages-partial-reversed-b': {
     group: 'pages-partial-reversed',
     brokenLoadingDev: true,
+    // TODO Turbopack can support this case with a pages dir css chunking
+    conflictTurbo: true,
     url: '/pages/partial-reversed/b',
     selector: '#helloprb',
     color: 'rgb(255, 55, 255)',
@@ -232,7 +241,15 @@ describe.each(process.env.TURBOPACK ? ['turbo'] : ['strict', true])(
       const name = `should load correct styles navigating back again ${ordering.join(
         ' -> '
       )} -> ${ordering.join(' -> ')}`
-      if (ordering.some((page) => PAGES[page].conflict)) {
+      if (
+        ordering
+          .map((page) => PAGES[page])
+          .some((page) =>
+            mode === 'turbo'
+              ? page.conflictTurbo || page.conflict
+              : page.conflict
+          )
+      ) {
         // Conflict scenarios won't support that case
         continue
       }
@@ -285,7 +302,15 @@ describe.each(process.env.TURBOPACK ? ['turbo'] : ['strict', 'loose'])(
       const name = `should load correct styles navigating ${ordering.join(
         ' -> '
       )}`
-      if (ordering.some((page) => PAGES[page].conflict)) {
+      if (
+        ordering
+          .map((page) => PAGES[page])
+          .some((page) =>
+            mode === 'turbo'
+              ? page.conflictTurbo || page.conflict
+              : page.conflict
+          )
+      ) {
         // Conflict scenarios won't support that case
         continue
       }
@@ -328,7 +353,10 @@ describe.each(process.env.TURBOPACK ? ['turbo'] : ['strict', 'loose'])(
     const { next } = nextTestSetup(options(mode))
     for (const [page, pageInfo] of Object.entries(PAGES)) {
       const name = `should load correct styles on ${page}`
-      if (mode !== 'strict' && pageInfo.conflict) {
+      if (
+        (mode !== 'strict' && pageInfo.conflict) ||
+        (mode === 'turbo' && pageInfo.conflictTurbo)
+      ) {
         // Conflict scenarios won't support that case
         continue
       }

filename: test/turbopack-build-tests-manifest.json
patch: @@ -1616,27 +1616,14 @@
       "css-order turbo should load correct styles on pages-first",
       "css-order turbo should load correct styles on pages-interleaved-a",
       "css-order turbo should load correct styles on pages-interleaved-b",
-      "css-order turbo should load correct styles on pages-partial-reversed-a",
-      "css-order turbo should load correct styles on pages-reversed-a",
       "css-order turbo should load correct styles on pages-second",
       "css-order turbo should load correct styles on pages-third",
       "css-order turbo should load correct styles on second",
       "css-order turbo should load correct styles on second-client",
       "css-order turbo should load correct styles on third",
       "css-order turbo should load correct styles on vendor"
     ],
-    "failed": [
-      "css-order turbo should load correct styles navigating back again pages-partial-reversed-a -> pages-partial-reversed-b -> pages-partial-reversed-a -> pages-partial-reversed-b",
-      "css-order turbo should load correct styles navigating back again pages-partial-reversed-b -> pages-partial-reversed-a -> pages-partial-reversed-b -> pages-partial-reversed-a",
-      "css-order turbo should load correct styles navigating back again pages-reversed-a -> pages-reversed-b -> pages-reversed-a -> pages-reversed-b",
-      "css-order turbo should load correct styles navigating back again pages-reversed-b -> pages-reversed-a -> pages-reversed-b -> pages-reversed-a",
-      "css-order turbo should load correct styles navigating pages-partial-reversed-a -> pages-partial-reversed-b",
-      "css-order turbo should load correct styles navigating pages-partial-reversed-b -> pages-partial-reversed-a",
-      "css-order turbo should load correct styles navigating pages-reversed-a -> pages-reversed-b",
-      "css-order turbo should load correct styles navigating pages-reversed-b -> pages-reversed-a",
-      "css-order turbo should load correct styles on pages-partial-reversed-b",
-      "css-order turbo should load correct styles on pages-reversed-b"
-    ],
+    "failed": [],
     "pending": [
       "css-order turbo should load correct styles navigating back again big-interleaved-a -> big-interleaved-b -> big-interleaved-a -> big-interleaved-b",
       "css-order turbo should load correct styles navigating back again big-interleaved-b -> big-interleaved-a -> big-interleaved-b -> big-interleaved-a",