Commit 30c7251
test: run part of the component test suite in vitest browser mode
Add a `browser` Vitest project that runs real-browser component tests via Playwright,
alongside the existing jsdom `web` and `node` projects.
- migrate the emotion, ui-a11y-content, ui-a11y-utils, ui-alerts, ui-avatar, ui-badge and
ui-dialog test suites to browser mode, and delete the Cypress specs they replace
- alias `@instructure/*` workspace packages to TypeScript source so browser tests run
without a prebuild, and alias bare `moment` to the all-locales build
- exclude the migrated packages from the `web` project so they do not run twice
- add `test:browser`, `test:browser-watch` and `test:browser-ui` scripts
- add a `Vitest browser tests` job to PR validation
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent b99dd57 commit 30c7251
31 files changed
Lines changed: 1316 additions & 1335 deletions
File tree
- .github/workflows
- cypress/component
- packages
- emotion/src
- InstUISettingsProvider/__tests__
- __tests__
- styleUtils/__tests__
- ui-a11y-content/src
- AccessibleContent/__tests__
- PresentationContent/__tests__
- ScreenReaderContent/__tests__
- ui-a11y-utils/src/__tests__
- ui-alerts/src/Alert/__tests__
- ui-avatar/src/Avatar/__tests__
- ui-badge/src/Badge/__tests__
- ui-dialog/src/Dialog/__tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
40 | 58 | | |
41 | 59 | | |
42 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments