Migrated Install SDK functional tests to Vitest+Playwright+MSW#1533
Migrated Install SDK functional tests to Vitest+Playwright+MSW#1533carterworks wants to merge 1 commit into
Conversation
🦋 Changeset detectedLatest commit: 945ac88 The changes in this PR will be included in the next version bump. This PR includes no changesetsWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
| Filename | Overview |
|---|---|
| packages/browser/test/integration/specs/Install SDK/installSdk.spec.js | New integration spec migrating three TestCafe tests (C2560 active, C2579 and C1338399 skipped with documented rationale) to the Vitest+Playwright+MSW harness — no logic defects found. |
Sequence Diagram
sequenceDiagram
participant Vitest
participant extend.js (auto fixtures)
participant MSW Worker
participant setupBaseCode
participant setupAlloy
participant Test (C2560)
Vitest->>extend.js (auto fixtures): run worker fixture (auto)
extend.js (auto fixtures)->>MSW Worker: worker.start() (once)
MSW Worker-->>extend.js (auto fixtures): started
Vitest->>extend.js (auto fixtures): run alloy fixture (auto)
extend.js (auto fixtures)->>extend.js (auto fixtures): clear kndctr_/AMCV_ cookies
extend.js (auto fixtures)->>setupBaseCode: setupBaseCode()
setupBaseCode-->>extend.js (auto fixtures): window.__alloyNS set
extend.js (auto fixtures)->>setupAlloy: setupAlloy()
setupAlloy-->>extend.js (auto fixtures): window.alloy (function)
extend.js (auto fixtures)->>Test (C2560): use(alloy)
Test (C2560)->>Test (C2560): expect(typeof window.alloy).toBe("function")
Test (C2560)->>Test (C2560): expect(alloy).toBeDefined()
Vitest->>extend.js (auto fixtures): teardown alloy fixture
extend.js (auto fixtures)->>extend.js (auto fixtures): cleanAlloy()
Vitest->>extend.js (auto fixtures): teardown worker fixture
extend.js (auto fixtures)->>MSW Worker: worker.resetHandlers()
Reviews (2): Last reviewed commit: "test(integration): migrate install sdk f..." | Re-trigger Greptile
ba71e37 to
ee32880
Compare
fd74e9f to
9b5328d
Compare
There was a problem hiding this comment.
carterworks has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.
2472155 to
168bd38
Compare
553e412 to
867f8ab
Compare
867f8ab to
68735d4
Compare
68735d4 to
945ac88
Compare
Changed Packages
Description
Migrates the Install SDK functional tests to the new Vitest+Playwright+MSW harness. C2579 (multi-instance) and C1338399 (NPM entry point) are preserved as documented test.skip with explanations.
Related Issue
Part of the functional test → integration test migration. See
packages/browser/test/FUNCTIONAL_MIGRATION_PLAN.md.Motivation and Context
The existing TestCafe functional test suite is being migrated to Vitest+Playwright+MSW to enable faster, more reliable CI testing without a running server. This PR is part of a stacked series — each PR migrates one test file.
Functional tests replaced:
packages/browser/test/functional/specs/Install SDK/C2560.jspackages/browser/test/functional/specs/Install SDK/C2579.jspackages/browser/test/functional/specs/Install SDK/C1338399.jsTypes of changes
Checklist:
Stack