Skip to content

fix(web-components): build package before running e2e tests#36257

Merged
radium-v merged 5 commits into
microsoft:masterfrom
radium-v:wc-build-before-e2e
May 27, 2026
Merged

fix(web-components): build package before running e2e tests#36257
radium-v merged 5 commits into
microsoft:masterfrom
radium-v:wc-build-before-e2e

Conversation

@radium-v

@radium-v radium-v commented May 27, 2026

Copy link
Copy Markdown
Contributor

Previous Behavior

The Nx e2e target for @fluentui/web-components had no dependsOn entry, so nx run web-components:e2e ran against whatever was already in dist/ from a prior build, or failed on a clean checkout. Token generation also ran in two places: scripts/compile.js runs generate-tokens during build, and scripts/e2e.js ran it again before invoking Playwright.

New Behavior

The Nx e2e target declares dependsOn: ["build"], so Playwright always runs against a freshly built package. The redundant generate-tokens call is removed from scripts/e2e.js since tokens are now produced once as a build artifact.

@github-actions

github-actions Bot commented May 27, 2026

Copy link
Copy Markdown

📊 Bundle size report

✅ No changes found

@github-actions

Copy link
Copy Markdown

Pull request demo site: URL

@radium-v radium-v force-pushed the wc-build-before-e2e branch from 27db0fc to 7b67b4d Compare May 27, 2026 16:11
@radium-v radium-v enabled auto-merge (squash) May 27, 2026 16:23
@radium-v radium-v self-assigned this May 27, 2026
@radium-v radium-v force-pushed the wc-build-before-e2e branch from b022c8c to a378d03 Compare May 27, 2026 17:36
@radium-v radium-v merged commit 0cab543 into microsoft:master May 27, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants