Skip to content

Commit 813592f

Browse files
feat: replace Cypress with Playwright-only E2E testing
- Remove all Cypress files and configuration (cypress/, cypress.env.json, *.cy.ts) - Update package.json scripts to use only Playwright for CI commands - Configure Playwright to handle both webpack (legacy) and rspack modes via LEGACY_MODE env var - Maintain full test coverage with 13/13 Playwright tests passing for both modes - Simplify testing infrastructure while preserving CI compatibility Benefits: - Single testing framework reduces complexity and maintenance - Better debugging capabilities with Playwright - Comprehensive test coverage maintained - Environment-aware configuration for webpack/rspack testing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent ef76b5c commit 813592f

File tree

4 files changed

+5
-190
lines changed

4 files changed

+5
-190
lines changed

advanced-api/dynamic-remotes/cypress.env.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

advanced-api/dynamic-remotes/e2e/checkDynamicRemotesApps.cy.ts

Lines changed: 0 additions & 177 deletions
This file was deleted.

advanced-api/dynamic-remotes/package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,8 @@
1717
"test:e2e": "npx playwright test",
1818
"test:e2e:ui": "npx playwright test --ui",
1919
"test:e2e:debug": "npx playwright test --debug",
20-
"e2e:ci": "pnpm start & sleep 1 && wait-on tcp:3001 && wait-on tcp:3002 && wait-on tcp:3003 && npx cypress run --config-file ../../cypress-e2e/config/cypress.config.ts --config '{\"supportFile\": \"../../cypress-e2e/support/e2e.ts\"}' --spec \"./e2e/*.cy.ts\" --browser=chrome",
21-
"legacy:e2e:ci": "pnpm legacy:start & sleep 1 && wait-on tcp:3001 && wait-on tcp:3002 && wait-on tcp:3003 && npx cypress run --config-file ../../cypress-e2e/config/cypress.config.ts --config '{\"supportFile\": \"../../cypress-e2e/support/e2e.ts\"}' --spec \"./e2e/*.cy.ts\" --browser=chrome",
22-
"e2e:ci:cypress": "pnpm start & sleep 1 && wait-on tcp:3001 && wait-on tcp:3002 && wait-on tcp:3003 && npx cypress run --config-file ../../cypress-e2e/config/cypress.config.ts --config '{\"supportFile\": \"../../cypress-e2e/support/e2e.ts\"}' --spec \"./e2e/*.cy.ts\" --browser=chrome",
23-
"legacy:e2e:ci:cypress": "pnpm legacy:start & sleep 1 && wait-on tcp:3001 && wait-on tcp:3002 && wait-on tcp:3003 && npx cypress run --config-file ../../cypress-e2e/config/cypress.config.ts --config '{\"supportFile\": \"../../cypress-e2e/support/e2e.ts\"}' --spec \"./e2e/*.cy.ts\" --browser=chrome",
24-
"e2e:ci:playwright": "npx playwright test --reporter=list",
25-
"legacy:e2e:ci:playwright": "npx playwright test --reporter=list"
20+
"e2e:ci": "npx playwright test --reporter=list",
21+
"legacy:e2e:ci": "LEGACY_MODE=true npx playwright test --reporter=list"
2622
},
2723
"devDependencies": {
2824
"@playwright/test": "^1.54.2",

advanced-api/dynamic-remotes/playwright.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ export default defineConfig({
3131

3232
webServer: [
3333
{
34-
command: 'cd app1 && pnpm start',
34+
command: `cd app1 && pnpm ${process.env.LEGACY_MODE ? 'legacy:start' : 'start'}`,
3535
port: 3001,
3636
timeout: 120000,
3737
reuseExistingServer: !process.env.CI,
3838
},
3939
{
40-
command: 'cd app2 && pnpm start',
40+
command: `cd app2 && pnpm ${process.env.LEGACY_MODE ? 'legacy:start' : 'start'}`,
4141
port: 3002,
4242
timeout: 120000,
4343
reuseExistingServer: !process.env.CI,
4444
},
4545
{
46-
command: 'cd app3 && pnpm start',
46+
command: `cd app3 && pnpm ${process.env.LEGACY_MODE ? 'legacy:start' : 'start'}`,
4747
port: 3003,
4848
timeout: 120000,
4949
reuseExistingServer: !process.env.CI,

0 commit comments

Comments
 (0)