Skip to content

Commit

Permalink
upload screenshots to see what's wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
NoxHarmonium committed Oct 11, 2024
1 parent 4808663 commit d0c627f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ RUN sh /uv-installer.sh && rm /uv-installer.sh
# Ensure the installed binary is on the `PATH`
ENV PATH="/root/.cargo/bin/:$PATH"

# Extra things needed to run e2e tests in CI
# Ignore this for local/prod development
FROM python_base AS python_e2e

ENV UV_PROJECT_ENVIRONMENT=/root/.cache/uv
Expand Down
4 changes: 4 additions & 0 deletions .devcontainer/docker-compose.e2e.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Overrides to run e2e tests in CI
# Shouldn't be needed for normal development
# E.g. docker compose -f docker-compose.yml -f docker-compose.e2e.yml up

services:
app:
build:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,10 @@ jobs:
uses: cypress-io/github-action@v6
with:
working-directory: ./e2e

- name: Upload screenshots
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-snapshots
path: ./e2e/cypress/snapshots
8 changes: 8 additions & 0 deletions e2e/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# E2E Tests

## Running

1. Have node installed
2. Have the fast API server running on port 8000 (see parent README)
3. `npm install`
4. `npm run cy:open`

0 comments on commit d0c627f

Please sign in to comment.