[WC-3329] do not apply fix in vertical layouts, there flex dir is dif… #537
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: Atlas Visual Comparison Tests | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| playwright: | |
| name: '🧪 Tests - ${{ matrix.project }} - Shard ${{ matrix.shardIndex }} of ${{ matrix.shardTotal }}' | |
| runs-on: ubuntu-22.04 | |
| defaults: | |
| run: | |
| working-directory: ./packages/atlas | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| project: [chromium] | |
| shardIndex: [1, 2, 3] | |
| shardTotal: [3] | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
| with: | |
| node-version: 18 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install Playwright Browsers | |
| run: | | |
| sudo rm /etc/apt/sources.list.d/microsoft-prod.list | |
| npx playwright install --with-deps chromium | |
| - name: Run Atlas test project | |
| run: npm run e2e | |
| - name: Run visual comparison tests | |
| run: npx playwright test --project=${{ matrix.project }} --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} | |
| - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
| if: failure() | |
| with: | |
| name: playwright-report-${{ matrix.shardIndex }}_${{ matrix.shardTotal }} | |
| path: ${{ github.workspace }}/packages/atlas/test-results | |
| retention-days: 30 |