test(components): restore web and html-reporter component tests#41889
Conversation
a3f8720 to
05859c6
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🔴 One failure is caused by this PR — a new
|
05859c6 to
afcddc9
Compare
| - uses: actions/checkout@v6 | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 20 |
| name: Web Components | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 |
Restores the component tests deleted in microsoft#38187 on top of the built-in mount fixture: each package hosts a story gallery page, stories live next to the components, and specs drive them via mount(storyId, props). Callback props are asserted with expect.fn() mocks, including a Chip body render prop served synchronously via mockReturnValue().
afcddc9 to
10c40c7
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Test results for "tests 1"5 flaky50043 passed, 1190 skipped Merge workflow run. |
Test results for "MCP"1 failed 7785 passed, 1249 skipped Merge workflow run. |
🟢 CI is clear — the one failure is a pre-existing MCP flakeHi, I'm the Playwright bot and I took a first look at the CI failures. The latest reports have DetailsThis PR restores html-reporter/web component tests, adds their stories, makes Pre-existing flake / infra
Safe to rerun. Triaged by the Playwright bot - agent run |
Summary
mountfixture and the story-gallery setup from the component-testing skill.toHaveValue(). Stories live next to the components; each package hosts aplaywright/gallerypage served by Vite.test-html-reporter/test-webnpm scripts and the Web Components CI job restored.mount()now returns a locator for the gallery root — tests scope their queries (component.getByRole(...)). The skill (SKILL.md, references, templates) is updated to both conventions.