Fix Select Storybook tests: query portaled content, wait for triggers, and stabilize assertions #518
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: ["**"] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '22.9.0' | |
| - name: Setup Yarn Corepack | |
| run: corepack enable | |
| - name: Install dependencies | |
| run: yarn install | |
| - uses: dtinth/setup-github-actions-caching-for-turbo@v1 | |
| - name: Install Playwright Chromium | |
| run: npx playwright install chromium | |
| - name: Run tests | |
| run: yarn test | |
| - name: Upload artifacts on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-failure | |
| path: packages/components/storybook-static | |
| retention-days: 2 | |