Skip to content

Commit b856425

Browse files
littlespexclaude
andcommitted
feat: replace Playwright E2E tests with Karma functional tests for CMCD v2
Replace the Playwright-based E2E test suite with Karma functional tests that use XHR interceptors to validate CMCD v2 spec compliance. This eliminates the @playwright/test dependency (~100MB) while maintaining full test coverage across all three transmission modes (query, header, event), key filtering, and version validation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 906f8ee commit b856425

16 files changed

Lines changed: 1069 additions & 943 deletions

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
"prepare": "node githook.cjs",
3939
"start": "webpack serve --config build/webpack/modern/webpack.modern.dev.cjs",
4040
"test": "karma start test/unit/config/karma.unit.conf.cjs",
41-
"test-e2e": "npx playwright test --config test/e2e/playwright.config.js",
42-
"test-e2e:headed": "npx playwright test --config test/e2e/playwright.config.js --headed",
4341
"test-functional": "karma start test/functional/config/karma.functional.conf.cjs --configfile=local --streamsfile=smoke",
4442
"webpack-build-legacy": "webpack --config build/webpack/legacy/webpack.legacy.prod.cjs",
4543
"webpack-build-modern": "webpack --config build/webpack/modern/webpack.modern.prod.cjs"
@@ -53,7 +51,6 @@
5351
"@babel/runtime": "^7.28.4",
5452
"@chiragrupani/karma-chromium-edge-launcher": "^2.4.1",
5553
"@eslint/js": "^9.39.1",
56-
"@playwright/test": "^1.58.2",
5754
"babel-loader": "^10.0.0",
5855
"babel-plugin-istanbul": "^7.0.1",
5956
"baseline-browser-mapping": "^2.10.0",

test/e2e/fixtures/cmcd-test-page.html

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

test/e2e/helpers/cmcd-decoder.js

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

test/e2e/helpers/constants.js

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

test/e2e/helpers/player-setup.js

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

test/e2e/helpers/request-collector.js

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

test/e2e/playwright.config.js

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

0 commit comments

Comments
 (0)