Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Start frontend server
working-directory: goodmap-frontend
run: |
make serve &
make serve-prod &
FRONTEND_PID=$!
echo $FRONTEND_PID > /tmp/frontend.pid
disown $FRONTEND_PID
Expand Down Expand Up @@ -103,6 +103,15 @@ jobs:
set -o pipefail
make e2e-tests | tee /tmp/e2e-tests-output.txt

- name: Upload test videos on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-failure-videos
path: e2e-tests/test-results/**/*.webm
retention-days: 7
if-no-files-found: ignore

- name: Stop backend for e2e tests
if: always()
shell: bash {0}
Expand Down
2 changes: 1 addition & 1 deletion e2e_stress_test_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ FEATURE_FLAGS:


#GOODMAP_FRONTEND_LIB_URL: "https://cdn.jsdelivr.net/npm/@problematy/goodmap@0.4.4"
GOODMAP_FRONTEND_LIB_URL: "http://localhost:8080/index.js"
GOODMAP_FRONTEND_LIB_URL: "http://localhost:8080/index.min.js"
2 changes: 1 addition & 1 deletion e2e_test_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ FEATURE_FLAGS:
SHOW_SUGGEST_NEW_POINT_BUTTON: True


GOODMAP_FRONTEND_LIB_URL: "http://localhost:8080/index.js"
GOODMAP_FRONTEND_LIB_URL: "http://localhost:8080/index.min.js"
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ python_functions = "test_*"
# Playwright-specific settings
base_url = "http://localhost:5000"
# Browser/headed/slowmo should be passed via CLI: --browser=chromium --headed --slowmo=100
# Video recording: retain-on-failure keeps videos only for failed tests
addopts = "--video=retain-on-failure --output=test-results"

[tool.ruff]
line-length = 100
Expand Down
Loading