Skip to content

Commit a8cd13a

Browse files
test(e2e): vue3-demo stabilize; federated-css-react-ssr wait-on and serve fixes; add react-jss; remove aggregator import
- vue3-demo: increase expect timeout; correct header tags per host - federated-css-react-ssr: use pnpm dlx serve for exposes; add react-jss + wait-on; remove run-all import - playwright base: add checkCounterFunctionality helper for Vue2-in-Vue3
1 parent 9314b91 commit a8cd13a

File tree

13 files changed

+151
-156
lines changed

13 files changed

+151
-156
lines changed
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
// Aggregator kept for parity with the previous Cypress entry point.
2-
// The real tests live in ./common-checks.spec.ts and are executed directly by Playwright.
3-
import './common-checks.spec';
4-
1+
// Placeholder file retained for legacy structure; no-op in Playwright.
52
export {};

federated-css-react-ssr/expose-apps/expose-css-module/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"build": "pnpm build:client && pnpm build:server",
66
"build:client": "webpack --mode production --config config/webpack.client.js",
77
"build:server": "webpack --mode production --config config/webpack.server.js",
8-
"serve": "npx serve dist/ -p 3006",
8+
"serve": "pnpm dlx serve dist -l 3006",
99
"start": "pnpm build && pnpm serve"
1010
},
1111
"license": "MIT",
@@ -31,4 +31,4 @@
3131
"react": "^18.1.0",
3232
"react-dom": "^18.1.0"
3333
}
34-
}
34+
}

federated-css-react-ssr/expose-apps/expose-css/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"build": "pnpm build:client && pnpm build:server",
66
"build:client": "webpack --mode development --config config/webpack.client.js",
77
"build:server": "webpack --mode development --config config/webpack.server.js",
8-
"serve": "npx serve dist/ -p 3001",
8+
"serve": "pnpm dlx serve dist -l 3001",
99
"start": "pnpm build && pnpm serve"
1010
},
1111
"license": "MIT",
@@ -31,4 +31,4 @@
3131
"react": "^18.1.0",
3232
"react-dom": "^18.1.0"
3333
}
34-
}
34+
}

federated-css-react-ssr/expose-apps/expose-jss/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"build": "pnpm build:client && pnpm build:server",
66
"build:client": "webpack --mode development --config config/webpack.client.js",
77
"build:server": "webpack --mode development --config config/webpack.server.js",
8-
"serve": "npx serve dist/ -p 3002",
8+
"serve": "pnpm dlx serve dist -l 3002",
99
"start": "pnpm build && pnpm serve"
1010
},
1111
"license": "MIT",
@@ -30,4 +30,4 @@
3030
"react": "^18.1.0",
3131
"react-dom": "^18.1.0"
3232
}
33-
}
33+
}

federated-css-react-ssr/expose-apps/expose-less/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"build": "pnpm build:client && pnpm build:server",
66
"build:client": "webpack --mode production --config config/webpack.client.js",
77
"build:server": "webpack --mode production --config config/webpack.server.js",
8-
"serve": "npx serve dist/ -p 3007",
8+
"serve": "pnpm dlx serve dist -l 3007",
99
"start": "pnpm build && pnpm serve"
1010
},
1111
"license": "MIT",
@@ -33,4 +33,4 @@
3333
"react": "^18.1.0",
3434
"react-dom": "^18.1.0"
3535
}
36-
}
36+
}

federated-css-react-ssr/expose-apps/expose-scss/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"build": "pnpm build:client && pnpm build:server",
66
"build:client": "webpack --mode production --config config/webpack.client.js",
77
"build:server": "webpack --mode production --config config/webpack.server.js",
8-
"serve": "npx serve dist/ -p 3004",
8+
"serve": "pnpm dlx serve dist -l 3004",
99
"start": "pnpm build && pnpm serve"
1010
},
1111
"license": "MIT",
@@ -32,4 +32,4 @@
3232
"react": "^18.1.0",
3333
"react-dom": "^18.1.0"
3434
}
35-
}
35+
}

federated-css-react-ssr/expose-apps/expose-styled-component/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"build": "pnpm build:client && pnpm build:server",
66
"build:client": "webpack --mode production --config config/webpack.client.js",
77
"build:server": "webpack --mode production --config config/webpack.server.js",
8-
"serve": "npx serve dist/ -p 3005",
8+
"serve": "pnpm dlx serve dist -l 3005",
99
"start": "pnpm build && pnpm serve"
1010
},
1111
"license": "MIT",
@@ -32,4 +32,4 @@
3232
"react": "^18.1.0",
3333
"react-dom": "^18.1.0"
3434
}
35-
}
35+
}

federated-css-react-ssr/expose-apps/expose-tailwind-css/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"build": "pnpm build:client && pnpm build:server",
66
"build:client": "webpack --mode production --config config/webpack.client.js",
77
"build:server": "webpack --mode production --config config/webpack.server.js",
8-
"serve": "npx serve dist/ -p 3003",
8+
"serve": "pnpm dlx serve dist -l 3003",
99
"start": "pnpm build && pnpm serve"
1010
},
1111
"license": "MIT",
@@ -34,4 +34,4 @@
3434
"react": "^18.1.0",
3535
"react-dom": "^18.1.0"
3636
}
37-
}
37+
}

federated-css-react-ssr/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"e2e:headed": "playwright test --headed"
1313
},
1414
"devDependencies": {
15-
"@playwright/test": "^1.54.2"
15+
"@playwright/test": "^1.54.2",
16+
"react-jss": "10.10.0",
17+
"wait-on": "7.2.0"
1618
}
1719
}

federated-css-react-ssr/playwright.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ export default defineConfig({
3838
timeout: 300_000,
3939
},
4040
{
41-
command: 'pnpm --filter "federated-css-react-ssr_shell*" --parallel start:prod',
41+
// Start all shells and wait until all ports 4000-4005 respond
42+
command: `bash -lc 'pnpm --filter "federated-css-react-ssr_shell*" -r run start:prod & pnpm exec wait-on -t 300000 http://localhost:4000 http://localhost:4001 http://localhost:4002 http://localhost:4003 http://localhost:4004 http://localhost:4005'`,
4243
cwd: __dirname,
43-
port: 4000,
44+
port: 4005,
4445
reuseExistingServer: reuseExisting,
4546
timeout: 300_000,
4647
},

0 commit comments

Comments
 (0)