chore: add playwright fixtures package with initial configuration and …#2050
Conversation
|
📝 WalkthroughWalkthroughA new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
packages/web-platform/web-tests/tests/performance.test.ts (1)
121-121:isCI ?? test.describe.configure(...)never actually configures retries
isCIis always a boolean (!!process.env['CI']), so the nullish-coalescing expressionisCI ?? test.describe.configure({ retries: 8 });will never evaluate the right-hand side. If the goal is to increase retries when not in CI, this should be written as an actual conditional.- isCI ?? test.describe.configure({ retries: 8 }); + if (!isCI) { + test.describe.configure({ retries: 8 }); + }
🧹 Nitpick comments (1)
packages/web-platform/playwright-fixtures/src/utils.ts (1)
8-19:swipeignores thespeedoption — consider tightening the API
optionsstill exposesspeed?: number, but the implementation now destructures only{ x, y, yDistance, xDistance, steps = 10 }, sospeedis effectively ignored.If this is intentional, consider either:
- Dropping
speedfrom the options type, or- Leaving it but documenting it as deprecated / no-op, to avoid confusing future callers.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (16)
packages/web-platform/playwright-fixtures/package.jsonpackages/web-platform/playwright-fixtures/src/coverage-fixture.tspackages/web-platform/playwright-fixtures/src/index.tspackages/web-platform/playwright-fixtures/src/playwright.common.tspackages/web-platform/playwright-fixtures/src/utils.tspackages/web-platform/playwright-fixtures/tsconfig.jsonpackages/web-platform/tsconfig.jsonpackages/web-platform/web-tests/package.jsonpackages/web-platform/web-tests/playwright.config.tspackages/web-platform/web-tests/tests/fp-only.spec.tspackages/web-platform/web-tests/tests/main-thread-apis.test.tspackages/web-platform/web-tests/tests/middleware.spec.tspackages/web-platform/web-tests/tests/performance.test.tspackages/web-platform/web-tests/tests/react.spec.tspackages/web-platform/web-tests/tests/web-core.test.tspackages/web-platform/web-tests/tests/web-elements.spec.ts
🧰 Additional context used
🧠 Learnings (23)
📓 Common learnings
Learnt from: colinaaa
Repo: lynx-family/lynx-stack PR: 1453
File: vitest.config.ts:49-61
Timestamp: 2025-08-06T13:28:57.182Z
Learning: In the lynx-family/lynx-stack repository, the file `packages/react/testing-library/src/vitest.config.js` is source code for the testing library that gets exported for users, not a test configuration that should be included in the main vitest projects array.
Learnt from: upupming
Repo: lynx-family/lynx-stack PR: 1305
File: packages/react/testing-library/src/plugins/vitest.ts:4-6
Timestamp: 2025-08-11T05:59:28.530Z
Learning: In the lynx-family/lynx-stack repository, the `packages/react/testing-library` package does not have `vite` as a direct dependency. It relies on `vitest` being available from the monorepo root and accesses Vite types through re-exports from `vitest/node`. Direct imports from `vite` should not be suggested for this package.
Learnt from: colinaaa
Repo: lynx-family/lynx-stack PR: 1453
File: vitest.config.ts:49-61
Timestamp: 2025-08-06T13:28:57.182Z
Learning: In the lynx-family/lynx-stack repository, the file `packages/rspeedy/create-rspeedy/template-react-vitest-rltl-js/vitest.config.js` is a template file for scaffolding new Rspeedy projects, not a test configuration that should be included in the main vitest projects array.
Learnt from: colinaaa
Repo: lynx-family/lynx-stack PR: 1917
File: packages/mcp-servers/devtool-mcp-server/tsconfig.json:8-8
Timestamp: 2025-11-06T01:19:23.670Z
Learning: The lynx-js/devtool-mcp-server package in lynx-family/lynx-stack targets Node.js >=18.19 (specified in its package.json engines), which is different from the root project's requirement of Node.js ^22 || ^24. The package uses "lib": ["ES2024.Promise"] in its tsconfig.json because it manually includes polyfills for Promise.withResolvers while maintaining compatibility with Node.js v18.
Learnt from: colinaaa
Repo: lynx-family/lynx-stack PR: 1523
File: vitest.config.ts:5-6
Timestamp: 2025-08-13T11:46:43.737Z
Learning: In the lynx-stack codebase, default imports are consistently used for Node.js built-in modules (e.g., `import os from 'node:os'`, `import fs from 'node:fs'`). The TypeScript configuration supports esModuleInterop and allowSyntheticDefaultImports, making default imports the preferred pattern over namespace imports for Node.js built-ins.
Learnt from: upupming
Repo: lynx-family/lynx-stack PR: 1305
File: packages/testing-library/testing-environment/src/index.ts:255-258
Timestamp: 2025-08-11T05:57:18.212Z
Learning: In the ReactLynx testing environment (`packages/testing-library/testing-environment/src/index.ts`), the dual assignment pattern `target.console.method = console.method = () => {}` is required for rstest compatibility. This is because rstest provides `console` in an IIFE (Immediately Invoked Function Expression), and both the target and global console need to have these methods defined for proper test execution.
Learnt from: upupming
Repo: lynx-family/lynx-stack PR: 1670
File: packages/webpack/css-extract-webpack-plugin/test/hotCases/hot/hot-update-json/dual-thread/__snapshot__/index.css:6-8
Timestamp: 2025-09-23T08:54:39.966Z
Learning: In the lynx-stack CSS extract webpack plugin tests, many test fixture CSS files intentionally use invalid CSS syntax like `color: 'red';` with quoted values. The snapshots correctly reflect this invalid CSS from the source fixtures. To fix CSS validation issues, the source fixture files should be updated first, then snapshots regenerated, rather than manually editing snapshots.
Learnt from: gaoachao
Repo: lynx-family/lynx-stack PR: 1736
File: .changeset/spotty-experts-smoke.md:1-3
Timestamp: 2025-09-12T09:43:04.847Z
Learning: In the lynx-family/lynx-stack repository, private packages (marked with "private": true in package.json) like lynx-js/react-transform don't require meaningful changeset entries even when their public APIs change, since they are not published externally and only affect internal development.
📚 Learning: 2025-10-11T06:16:12.517Z
Learnt from: Sherry-hue
Repo: lynx-family/lynx-stack PR: 1820
File: packages/web-platform/web-tests/tests/react.spec.ts:834-856
Timestamp: 2025-10-11T06:16:12.517Z
Learning: In packages/web-platform/web-tests/tests/react.spec.ts, the tests `basic-bindmouse` and `basic-mts-bindtouchstart` are NOT duplicates despite having similar test structures. They test different event types: `basic-bindmouse` validates mouse events (mousedown, mouseup, mousemove) with mouse-specific properties (button, buttons, x, y, pageX, pageY, clientX, clientY), while `basic-mts-bindtouchstart` validates touch events (touchstart) with touch arrays (touches, targetTouches, changedTouches). The similar test structure is coincidental and follows testing conventions.
Applied to files:
packages/web-platform/web-tests/tests/performance.test.tspackages/web-platform/web-tests/tests/main-thread-apis.test.tspackages/web-platform/web-tests/tests/middleware.spec.tspackages/web-platform/web-tests/tests/react.spec.tspackages/web-platform/web-tests/tests/fp-only.spec.tspackages/web-platform/web-tests/tests/web-elements.spec.ts
📚 Learning: 2025-09-10T10:27:32.903Z
Learnt from: PupilTong
Repo: lynx-family/lynx-stack PR: 1706
File: .github/workflows/test.yml:0-0
Timestamp: 2025-09-10T10:27:32.903Z
Learning: MULTI_THREAD×SSR combination is NYI (Not Yet Implemented) in the Playwright test configuration, which is why it's excluded from the test matrix in .github/workflows/test.yml.
Applied to files:
packages/web-platform/web-tests/tests/performance.test.tspackages/web-platform/web-tests/tests/main-thread-apis.test.tspackages/web-platform/web-tests/tests/middleware.spec.tspackages/web-platform/web-tests/tests/web-core.test.tspackages/web-platform/web-tests/playwright.config.tspackages/web-platform/web-tests/tests/react.spec.tspackages/web-platform/web-tests/tests/fp-only.spec.tspackages/web-platform/web-tests/tests/web-elements.spec.ts
📚 Learning: 2025-08-27T12:42:01.095Z
Learnt from: upupming
Repo: lynx-family/lynx-stack PR: 1616
File: packages/webpack/cache-events-webpack-plugin/test/cases/not-cache-events/lazy-bundle/index.js:3-3
Timestamp: 2025-08-27T12:42:01.095Z
Learning: In webpack, properties like __webpack_require__.lynx_ce are injected during compilation/build time when webpack processes modules and generates bundles, not at runtime when dynamic imports execute. Tests for such properties don't need to wait for dynamic imports to complete.
Applied to files:
packages/web-platform/web-tests/tests/performance.test.tspackages/web-platform/web-tests/tests/main-thread-apis.test.tspackages/web-platform/web-tests/tests/middleware.spec.tspackages/web-platform/web-tests/tests/web-core.test.tspackages/web-platform/web-tests/tests/react.spec.tspackages/web-platform/web-tests/tests/fp-only.spec.tspackages/web-platform/web-tests/tests/web-elements.spec.tspackages/web-platform/web-tests/package.jsonpackages/web-platform/playwright-fixtures/package.json
📚 Learning: 2025-08-11T05:57:18.212Z
Learnt from: upupming
Repo: lynx-family/lynx-stack PR: 1305
File: packages/testing-library/testing-environment/src/index.ts:255-258
Timestamp: 2025-08-11T05:57:18.212Z
Learning: In the ReactLynx testing environment (`packages/testing-library/testing-environment/src/index.ts`), the dual assignment pattern `target.console.method = console.method = () => {}` is required for rstest compatibility. This is because rstest provides `console` in an IIFE (Immediately Invoked Function Expression), and both the target and global console need to have these methods defined for proper test execution.
Applied to files:
packages/web-platform/web-tests/tests/performance.test.tspackages/web-platform/web-tests/tests/main-thread-apis.test.tspackages/web-platform/web-tests/tests/middleware.spec.tspackages/web-platform/web-tests/tests/web-core.test.tspackages/web-platform/web-tests/playwright.config.tspackages/web-platform/web-tests/tests/react.spec.tspackages/web-platform/web-tests/tests/fp-only.spec.tspackages/web-platform/web-tests/tests/web-elements.spec.ts
📚 Learning: 2025-09-10T10:24:40.137Z
Learnt from: PupilTong
Repo: lynx-family/lynx-stack PR: 1706
File: .github/workflows/test.yml:109-109
Timestamp: 2025-09-10T10:24:40.137Z
Learning: In Playwright, when fullyParallel: true is set, the --shard option distributes individual tests across shards rather than splitting by files. This provides better load balancing compared to the default file-level sharding when fullyParallel is false.
Applied to files:
packages/web-platform/web-tests/tests/performance.test.tspackages/web-platform/web-tests/tests/web-core.test.tspackages/web-platform/web-tests/playwright.config.tspackages/web-platform/web-tests/tests/fp-only.spec.ts
📚 Learning: 2025-08-13T11:46:43.737Z
Learnt from: colinaaa
Repo: lynx-family/lynx-stack PR: 1523
File: vitest.config.ts:5-6
Timestamp: 2025-08-13T11:46:43.737Z
Learning: In the lynx-stack codebase, default imports are consistently used for Node.js built-in modules (e.g., `import os from 'node:os'`, `import fs from 'node:fs'`). The TypeScript configuration supports esModuleInterop and allowSyntheticDefaultImports, making default imports the preferred pattern over namespace imports for Node.js built-ins.
Applied to files:
packages/web-platform/playwright-fixtures/src/index.tspackages/web-platform/web-tests/tests/web-core.test.tspackages/web-platform/web-tests/tests/fp-only.spec.tspackages/web-platform/web-tests/tests/web-elements.spec.tspackages/web-platform/playwright-fixtures/src/coverage-fixture.tspackages/web-platform/playwright-fixtures/package.json
📚 Learning: 2025-10-10T08:22:12.051Z
Learnt from: Sherry-hue
Repo: lynx-family/lynx-stack PR: 1837
File: packages/web-platform/web-mainthread-apis/src/prepareMainThreadAPIs.ts:266-266
Timestamp: 2025-10-10T08:22:12.051Z
Learning: In packages/web-platform/web-mainthread-apis, the handleUpdatedData function returned from prepareMainThreadAPIs is internal-only, used to serve web-core. It does not require public documentation, type exports, or SSR support.
Applied to files:
packages/web-platform/web-tests/tests/main-thread-apis.test.tspackages/web-platform/web-tests/tests/react.spec.ts
📚 Learning: 2025-08-06T13:28:57.182Z
Learnt from: colinaaa
Repo: lynx-family/lynx-stack PR: 1453
File: vitest.config.ts:49-61
Timestamp: 2025-08-06T13:28:57.182Z
Learning: In the lynx-family/lynx-stack repository, the file `packages/react/testing-library/src/vitest.config.js` is source code for the testing library that gets exported for users, not a test configuration that should be included in the main vitest projects array.
Applied to files:
packages/web-platform/web-tests/tests/middleware.spec.tspackages/web-platform/web-tests/tests/web-core.test.tspackages/web-platform/web-tests/playwright.config.tspackages/web-platform/web-tests/tests/react.spec.tspackages/web-platform/playwright-fixtures/tsconfig.jsonpackages/web-platform/web-tests/tests/fp-only.spec.tspackages/web-platform/web-tests/tests/web-elements.spec.tspackages/web-platform/web-tests/package.jsonpackages/web-platform/playwright-fixtures/package.json
📚 Learning: 2025-09-23T08:54:39.966Z
Learnt from: upupming
Repo: lynx-family/lynx-stack PR: 1670
File: packages/webpack/css-extract-webpack-plugin/test/hotCases/hot/hot-update-json/dual-thread/__snapshot__/index.css:6-8
Timestamp: 2025-09-23T08:54:39.966Z
Learning: In the lynx-stack CSS extract webpack plugin tests, many test fixture CSS files intentionally use invalid CSS syntax like `color: 'red';` with quoted values. The snapshots correctly reflect this invalid CSS from the source fixtures. To fix CSS validation issues, the source fixture files should be updated first, then snapshots regenerated, rather than manually editing snapshots.
Applied to files:
packages/web-platform/web-tests/tests/middleware.spec.tspackages/web-platform/web-tests/tests/web-core.test.tspackages/web-platform/web-tests/tests/react.spec.tspackages/web-platform/web-tests/tests/fp-only.spec.tspackages/web-platform/web-tests/tests/web-elements.spec.ts
📚 Learning: 2025-08-11T05:59:28.530Z
Learnt from: upupming
Repo: lynx-family/lynx-stack PR: 1305
File: packages/react/testing-library/src/plugins/vitest.ts:4-6
Timestamp: 2025-08-11T05:59:28.530Z
Learning: In the lynx-family/lynx-stack repository, the `packages/react/testing-library` package does not have `vite` as a direct dependency. It relies on `vitest` being available from the monorepo root and accesses Vite types through re-exports from `vitest/node`. Direct imports from `vite` should not be suggested for this package.
Applied to files:
packages/web-platform/web-tests/tests/middleware.spec.tspackages/web-platform/web-tests/tests/web-core.test.tspackages/web-platform/web-tests/tests/react.spec.tspackages/web-platform/web-tests/tests/fp-only.spec.tspackages/web-platform/web-tests/tests/web-elements.spec.tspackages/web-platform/web-tests/package.jsonpackages/web-platform/playwright-fixtures/package.json
📚 Learning: 2025-08-21T08:46:54.494Z
Learnt from: upupming
Repo: lynx-family/lynx-stack PR: 1370
File: packages/webpack/cache-events-webpack-plugin/src/LynxCacheEventsRuntimeModule.ts:23-27
Timestamp: 2025-08-21T08:46:54.494Z
Learning: In Lynx webpack runtime modules, the team prioritizes performance and simplicity over defensive runtime error handling. They prefer relying on compile-time type safety (TypeScript) rather than adding runtime checks like try-catch blocks or type validation, especially for performance-critical code like cache event setup/cleanup functions.
Applied to files:
packages/web-platform/web-tests/tests/middleware.spec.tspackages/web-platform/web-tests/tests/react.spec.tspackages/web-platform/playwright-fixtures/src/coverage-fixture.ts
📚 Learning: 2025-07-16T06:26:22.230Z
Learnt from: PupilTong
Repo: lynx-family/lynx-stack PR: 1029
File: packages/web-platform/web-core-server/src/createLynxView.ts:0-0
Timestamp: 2025-07-16T06:26:22.230Z
Learning: In the lynx-stack SSR implementation, each createLynxView instance is used to render once and then discarded. There's no reuse of the same instance for multiple renders, so event arrays and other state don't need to be cleared between renders.
Applied to files:
packages/web-platform/web-tests/tests/middleware.spec.ts
📚 Learning: 2025-11-06T01:19:23.670Z
Learnt from: colinaaa
Repo: lynx-family/lynx-stack PR: 1917
File: packages/mcp-servers/devtool-mcp-server/tsconfig.json:8-8
Timestamp: 2025-11-06T01:19:23.670Z
Learning: The lynx-js/devtool-mcp-server package in lynx-family/lynx-stack targets Node.js >=18.19 (specified in its package.json engines), which is different from the root project's requirement of Node.js ^22 || ^24. The package uses "lib": ["ES2024.Promise"] in its tsconfig.json because it manually includes polyfills for Promise.withResolvers while maintaining compatibility with Node.js v18.
Applied to files:
packages/web-platform/web-tests/tests/web-core.test.tspackages/web-platform/web-tests/tests/fp-only.spec.tspackages/web-platform/web-tests/package.jsonpackages/web-platform/playwright-fixtures/package.json
📚 Learning: 2025-08-06T13:28:57.182Z
Learnt from: colinaaa
Repo: lynx-family/lynx-stack PR: 1453
File: vitest.config.ts:49-61
Timestamp: 2025-08-06T13:28:57.182Z
Learning: In the lynx-family/lynx-stack repository, the file `packages/rspeedy/create-rspeedy/template-react-vitest-rltl-js/vitest.config.js` is a template file for scaffolding new Rspeedy projects, not a test configuration that should be included in the main vitest projects array.
Applied to files:
packages/web-platform/web-tests/playwright.config.tspackages/web-platform/web-tests/tests/react.spec.tspackages/web-platform/playwright-fixtures/tsconfig.jsonpackages/web-platform/web-tests/package.jsonpackages/web-platform/playwright-fixtures/package.json
📚 Learning: 2025-11-11T08:05:14.163Z
Learnt from: Sherry-hue
Repo: lynx-family/lynx-stack PR: 1932
File: packages/web-platform/web-tests/tests/react/basic-element-x-input-ng-bindinput/index.jsx:10-26
Timestamp: 2025-11-11T08:05:14.163Z
Learning: In packages/web-platform/web-tests/tests/react/basic-element-x-input-ng-bindinput/index.jsx, the test intentionally uses selectionStart twice in the result string (instead of selectionStart and selectionEnd) because it prioritizes testing whether x-input-ng works functionally, rather than validating the correctness of selection values.
Applied to files:
packages/web-platform/web-tests/tests/react.spec.tspackages/web-platform/web-tests/tests/web-elements.spec.ts
📚 Learning: 2025-10-29T10:28:27.519Z
Learnt from: upupming
Repo: lynx-family/lynx-stack PR: 1899
File: packages/react/transform/crates/swc_plugin_snapshot/tests/__swc_snapshots__/lib.rs/should_static_extract_dynamic_inline_style.js:20-24
Timestamp: 2025-10-29T10:28:27.519Z
Learning: Files inside packages/react/transform/crates/swc_plugin_snapshot/tests/__swc_snapshots__/ are auto-generated test snapshot files and should not be manually updated. Any issues with the generated code should be addressed in the code generator/transform logic, not in the snapshots themselves.
Applied to files:
packages/web-platform/web-tests/tests/react.spec.tspackages/web-platform/web-tests/tests/fp-only.spec.ts
📚 Learning: 2025-08-07T04:00:59.645Z
Learnt from: colinaaa
Repo: lynx-family/lynx-stack PR: 1454
File: pnpm-workspace.yaml:46-46
Timestamp: 2025-08-07T04:00:59.645Z
Learning: In the lynx-family/lynx-stack repository, the webpack patch (patches/webpack5.101.0.patch) was created to fix issues with webpack5.99.9 but only takes effect on webpack5.100.0 and later versions. The patchedDependencies entry should use "webpack@^5.100.0" to ensure the patch applies to the correct version range.
Applied to files:
packages/web-platform/web-tests/package.jsonpackages/web-platform/playwright-fixtures/package.json
📚 Learning: 2025-09-12T09:43:04.847Z
Learnt from: gaoachao
Repo: lynx-family/lynx-stack PR: 1736
File: .changeset/spotty-experts-smoke.md:1-3
Timestamp: 2025-09-12T09:43:04.847Z
Learning: In the lynx-family/lynx-stack repository, private packages (marked with "private": true in package.json) like lynx-js/react-transform don't require meaningful changeset entries even when their public APIs change, since they are not published externally and only affect internal development.
Applied to files:
packages/web-platform/web-tests/package.jsonpackages/web-platform/playwright-fixtures/package.json
📚 Learning: 2025-08-13T11:36:12.075Z
Learnt from: colinaaa
Repo: lynx-family/lynx-stack PR: 1523
File: vitest.config.ts:52-72
Timestamp: 2025-08-13T11:36:12.075Z
Learning: The lynx-stack project requires Node.js >=22 as specified in package.json engines, so Node.js compatibility fallbacks for features introduced before v22 are unnecessary.
Applied to files:
packages/web-platform/web-tests/package.json
📚 Learning: 2025-08-19T11:25:36.127Z
Learnt from: colinaaa
Repo: lynx-family/lynx-stack PR: 1558
File: .changeset/solid-squids-fall.md:2-2
Timestamp: 2025-08-19T11:25:36.127Z
Learning: In the lynx-family/lynx-stack repository, changesets should use the exact package name from package.json#name, not generic or unscoped names. Each package has its own specific scoped name (e.g., "lynx-js/react-transform" for packages/react/transform).
Applied to files:
packages/web-platform/web-tests/package.jsonpackages/web-platform/playwright-fixtures/package.json
📚 Learning: 2025-08-27T08:10:09.932Z
Learnt from: colinaaa
Repo: lynx-family/lynx-stack PR: 1612
File: packages/rspeedy/create-rspeedy/template-react-vitest-rltl-ts/src/tsconfig.json:3-13
Timestamp: 2025-08-27T08:10:09.932Z
Learning: In the lynx-family/lynx-stack repository, Rspeedy templates use `lynx-js/rspeedy/client` types via `rspeedy-env.d.ts` instead of `vite/client` types. Rspeedy provides its own client-side environment type definitions and doesn't require direct Vite type references.
Applied to files:
packages/web-platform/web-tests/package.json
📚 Learning: 2025-09-12T09:43:04.847Z
Learnt from: gaoachao
Repo: lynx-family/lynx-stack PR: 1736
File: .changeset/spotty-experts-smoke.md:1-3
Timestamp: 2025-09-12T09:43:04.847Z
Learning: In the lynx-family/lynx-stack repository, empty changeset files (containing only `---\n\n---`) are used for internal changes that modify src/** files but don't require meaningful release notes, such as private package changes or testing-only modifications. This satisfies CI requirements without generating user-facing release notes.
Applied to files:
packages/web-platform/playwright-fixtures/package.json
🧬 Code graph analysis (1)
packages/web-platform/web-tests/playwright.config.ts (1)
packages/web-platform/playwright-fixtures/src/playwright.common.ts (1)
playwrightConfigCommon(42-124)
🔇 Additional comments (14)
packages/web-platform/playwright-fixtures/package.json (1)
1-19: Manifest layout for the new fixtures package looks consistentPrivate ESM package with
main/typingspointing atsrc/index.tsand@playwright/testlisted as both dev and peer dependency is a reasonable setup for an internal fixtures module. Nothing blocking here from the manifest side.packages/web-platform/tsconfig.json (1)
13-18: Project reference wiring forplaywright-fixtureslooks correctThe added reference to
./playwright-fixtures/tsconfig.jsoncleanly brings the new fixtures TS project into the web-platform composite build. No further changes needed here.packages/web-platform/playwright-fixtures/src/coverage-fixture.ts (1)
1-3: Coverage converter path now tracks the test file locationSwitching the
v8ToIstanbulsource path topath.join(path.dirname(testInfo.file), '..', 'www', 'main.js')anchors coverage mapping to the directory of the current test file instead of the fixture’s own directory, which is more robust if tests are reorganized. The rest of the fixture behavior is preserved.
Also applies to: 40-41
packages/web-platform/web-tests/tests/main-thread-apis.test.ts (1)
5-7: Using centralized Playwright fixtures is a clean improvementImporting
{ test, expect }from@lynx-js/playwright-fixtureskeeps this suite aligned with the shared coverage/test utilities while preserving existing test behavior.Pageremains correctly typed via@playwright/test.packages/web-platform/web-tests/tests/web-elements.spec.ts (1)
4-7: Centralizingtest/expect/swipe/dragAndHoldimports looks goodSwitching to
import { test, expect, swipe, dragAndHold } from '@lynx-js/playwright-fixtures';removes local coupling and ensures all suites use the same fixture/gesture helpers. Given the shared
swipeimplementation changed recently, it’s worth eyeballing a couple of the more swipe-heavy tests to confirm behaviour still matches expectations, but nothing in this file itself is problematic.packages/web-platform/web-tests/tests/fp-only.spec.ts (1)
1-5:fp-onlysuite correctly switched to shared fixturesImporting
{ test, expect }from@lynx-js/playwright-fixturesaligns this file with the new centralized Playwright fixtures package and should be a no-op behaviorally for the tests.packages/web-platform/web-tests/tests/web-core.test.ts (1)
5-5: Shared fixtures import fortest/expectlooks correctRouting
test/expectthrough@lynx-js/playwright-fixtureskeeps this suite aligned with the new central fixtures. As long as the package re-exports the standard Playwrighttest(with{ page, browserName, context, title }fixtures) andexpect, no further changes are needed here.packages/web-platform/web-tests/package.json (1)
29-29: Dev dependency on@lynx-js/playwright-fixturesis appropriateThis matches the new imports in the test files and config. Since
@lynx-js/web-testsis private, wiring this workspace devDependency doesn’t require a public changeset entry.packages/web-platform/web-tests/tests/performance.test.ts (1)
7-7: Using shared fixtures in performance tests is consistentImporting
test/expectfrom@lynx-js/playwright-fixtureskeeps this suite on the same shared fixture surface as the rest of web-tests, which is desirable as long as the package exposes the standard Playwright test API.packages/web-platform/web-tests/tests/middleware.spec.ts (1)
4-4: Middleware tests correctly switch to shared fixturesImporting
test/expectfrom@lynx-js/playwright-fixturesaligns this suite with the central fixtures package and should preserve behavior if that package simply re-exports Playwright’s test API.packages/web-platform/playwright-fixtures/src/index.ts (1)
1-3: Barrel re-exports define a clean fixtures APIRe-exporting
coverage-fixture,utils, andplaywright.commonfrom the package index keeps consumer imports (@lynx-js/playwright-fixtures) concise and centralized. This matches the intended design of the new fixtures package.packages/web-platform/web-tests/tests/react.spec.ts (1)
4-4: Consolidated import oftest/expect/swipe/dragAndHoldis sensiblePulling
test,expect,swipe, anddragAndHoldfrom@lynx-js/playwright-fixturesnicely centralizes shared helpers. Please just confirm that the newswipe/dragAndHoldimplementations are equivalent to the old local ones, since many gesture and screenshot tests rely on their exact behavior.packages/web-platform/playwright-fixtures/src/playwright.common.ts (1)
42-123: Shared Playwright config is well-structured and suitable for reuseThe
playwrightConfigCommondefinition (timeouts,fullyParallel, CI-sensitiveworkers/retries/maxFailures, screenshotmaxDiffPixelRatio, browser projects, andwebServerpointing atnpm run serve) is a solid central config to spread into individual suites like web-tests. Once the minor path/workerLimit issues above are addressed, this should make Playwright behavior consistent across packages with minimal duplication.packages/web-platform/web-tests/playwright.config.ts (1)
5-6: Composing web-tests config fromplaywrightConfigCommonis a good simplificationImporting
playwrightConfigCommonand spreading it intodefineConfigkeeps this file minimal while inheriting all shared settings (projects, baseURL, retries, etc.). AddingtestIgnoreafterward correctly layers local behavior on top; if you later need web-tests–specificprojectsoruseoptions, adding them after the spread will override the shared ones as expected.Also applies to: 22-25
Web Explorer#6837 Bundle Size — 376.4KiB (0%).a4e5510(current) vs 491c5ef main#6831(baseline) Bundle metrics
Bundle size by type
|
| Current #6837 |
Baseline #6831 |
|
|---|---|---|
247.01KiB |
247.01KiB |
|
96.98KiB |
96.98KiB |
|
32.4KiB |
32.4KiB |
Bundle analysis report Branch PupilTong:p/hw/split-web-e2e-fix... Project dashboard
Generated by RelativeCI Documentation Report issue
React Example#6677 Bundle Size — 237.01KiB (0%).a4e5510(current) vs 491c5ef main#6671(baseline) Bundle metrics
|
| Current #6677 |
Baseline #6671 |
|
|---|---|---|
0B |
0B |
|
0B |
0B |
|
0% |
0% |
|
0 |
0 |
|
4 |
4 |
|
162 |
162 |
|
65 |
65 |
|
46.75% |
46.75% |
|
2 |
2 |
|
0 |
0 |
Bundle size by type no changes
| Current #6677 |
Baseline #6671 |
|
|---|---|---|
145.76KiB |
145.76KiB |
|
91.25KiB |
91.25KiB |
Bundle analysis report Branch PupilTong:p/hw/split-web-e2e-fix... Project dashboard
Generated by RelativeCI Documentation Report issue
CodSpeed Performance ReportMerging #2050 will improve performance by 5.93%Comparing Summary
Benchmarks breakdown
Footnotes
|
…utilities
Summary by CodeRabbit
New Features
Chores
✏️ Tip: You can customize this high-level summary in your review settings.
Checklist