From 54f79d718f0278c18f74a655b80d4d04747390e6 Mon Sep 17 00:00:00 2001 From: Mathijs de Bruin Date: Mon, 9 Sep 2024 23:25:18 +0100 Subject: [PATCH] Test fixups for path traversal/server tests. * Must build frontend for backend tests... (for now). * Follow ISO spec on Klingon matters. --- .github/workflows/pytest.yaml | 8 ++++++++ cypress/e2e/readme/spec.cy.ts | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index ef2a99b646..7a335d99d6 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -23,6 +23,14 @@ jobs: - name: Install fastapi ${{ matrix.fastapi-version }} run: poetry add fastapi@^${{ matrix.fastapi-version}} working-directory: ${{ env.BACKEND_DIR }} + - uses: ./.github/actions/pnpm-node-install + name: Install Node, pnpm and dependencies. + with: + node-version: 22.7.0 + pnpm-version: 9.7.0 + pnpm-install-args: --no-frozen-lockfile + - name: Build UI + run: pnpm run buildUi - name: Run Pytest run: poetry run pytest --cov=chainlit/ working-directory: ${{ env.BACKEND_DIR }} diff --git a/cypress/e2e/readme/spec.cy.ts b/cypress/e2e/readme/spec.cy.ts index ad8c2fac6b..1dda4512a4 100644 --- a/cypress/e2e/readme/spec.cy.ts +++ b/cypress/e2e/readme/spec.cy.ts @@ -31,7 +31,7 @@ describe('readme_language', () => { cy.visit('/', { onBeforeLoad(win) { Object.defineProperty(win.navigator, 'language', { - value: 'Klingon' + value: 'tlh' }); } });