Skip to content

Commit cac6246

Browse files
authored
ci: e2e mock api fixtures (#318)
* test(e2e): mock API responses with cypress fixtures so tests work on fork PRs * test(e2e): drop .prettierignore; let oxfmt format fixtures * test(e2e): format cypress fixtures with oxfmt and have capture script match * test(e2e): keep full reliability fixture so date-range filter test stays deterministic * test(e2e): sample concurrency points in benchmark fixtures (5 per config, 3 per config-date for history) * test(e2e): server-side fixtures mode (E2E_FIXTURES=1) replaces cy.intercept
1 parent dc0c47b commit cac6246

28 files changed

Lines changed: 129185 additions & 16 deletions

.github/workflows/tests-e2e.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@ jobs:
5353
- name: Build app
5454
run: pnpm build
5555
env:
56-
BLOB_CACHE_PREFIX: ci-cache
57-
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
58-
DATABASE_READONLY_URL: ${{ secrets.DATABASE_READONLY_URL }}
59-
GITHUB_TOKEN: ${{ secrets.INFX_MAIN_PAT }}
56+
E2E_FIXTURES: '1'
6057
- name: Run component tests
6158
working-directory: packages/app
6259
run: pnpm exec cypress run --component
@@ -71,11 +68,8 @@ jobs:
7168
wait-on: 'http://localhost:3000'
7269
browser: ${{ matrix.browser }}
7370
env:
74-
BLOB_CACHE_PREFIX: ci-cache
75-
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
7671
CI: true
77-
DATABASE_READONLY_URL: ${{ secrets.DATABASE_READONLY_URL }}
78-
GITHUB_TOKEN: ${{ secrets.INFX_MAIN_PAT }}
72+
E2E_FIXTURES: '1'
7973
- name: Upload Cypress artifacts
8074
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
8175
if: ${{ !cancelled() }}

0 commit comments

Comments
 (0)