ecamp / ecamp/ecamp3

Playwright e2e tests running flaky on my machine

Open
#9,643 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
156
Forks
72
Avg merge
12h 43m
Merged PRs (30d)
203

Description

Anyone has similar issue?

I ran the test suite 3x. None of them was fully successful, but the failed tests were different each time.

What I did:
- shut down all containers
- removed all volumed
- `docker compose build`
- `docker compose up -d`
- `docker compose --profile e2e run --rm e2e npm ci`
- `docker compose --profile e2e run --rm e2e npx playwright test`

# Run 1
```
7 failed
[chromium] › tests/httpCache/activities.spec.js:181:7 › cache test: /camps/{campId}/activities › invalidates /camps/{campId}/activities when patching a progress label
[chromium] › tests/persistDashboardFilter.spec.js:21:7 › The filters in the dashboard › can be shared via url
[firefox] › tests/nuxtPrint.spec.js:79:9 › Nuxt print test › downloads PDF › for whole camp ────
[firefox] › tests/persistDashboardFilter.spec.js:21:7 › The filters in the dashboard › can be shared via url
[webkit] › tests/httpCache/categories.spec.js:220:9 › cache test: /camps/{campId}/categories › invalidates /camps/{campId}/categories › when preferredContentTypes are removed
[webkit] › tests/nuxtPrint.spec.js:79:9 › Nuxt print test › downloads PDF › for whole camp ─────
[webkit] › tests/persistDashboardFilter.spec.js:21:7 › The filters in the dashboard › can be shared via url
6 skipped
4 did not run
91 passed (10.5m)
```

# Run 2
```
1 failed
[firefox] › tests/httpCache/scheduleEntries.spec.js:91:7 › cache test: /periods/{periodId}/scheduleEntries › invalidates /periods/{periodId}/schedule_entries for new scheduleEntry
6 skipped
2 did not run
99 passed (6.3m)
```

# Run 3
```
3 failed
[chromium] › tests/httpCache/scheduleEntries.spec.js:162:7 › cache test: /periods/{periodId}/scheduleEntries › invalidates /periods/{periodId}/schedule_entries when changing the period dates
[chromium] › tests/nuxtPrint.spec.js:13:7 › Nuxt print test › shows print preview ──────────────
[chromium] › tests/nuxtPrint.spec.js:79:9 › Nuxt print test › downloads PDF › for whole camp ───
6 skipped
99 passed (8.1m)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.