- Add waitForBackendDownloadReady helper to tests/export.spec.ts to wait for backend chapter metadata and enabled full-download UI before attempting combines/downloads. Use it in two export tests to reduce flakiness related to eventual backend storage visibility. - Improve uploadAndDisplay helper in tests/helpers.ts to retry link click when transient "intercepts pointer events" errors occur, ensuring test clicks succeed under flaky UI conditions. Add dismissSettingsModalIfVisible to detect and close the Settings dialog before interacting with page links (click Save or press Escape, wait for dialog to hide). - Update SettingsModal.tsx useEffect dependencies to avoid referencing checkFirstVist in the local state sync effect and add separate effect for checkFirstVist for clearer lifecycle. Why: Reduce end-to-end test flakiness by waiting for backend readiness and making UI interactions more robust; simplify SettingsModal effect dependencies to prevent unnecessary re-runs. Breaking changes: none. |
||
|---|---|---|
| .. | ||
| files | ||
| unit | ||
| accessibility.spec.ts | ||
| delete.spec.ts | ||
| export.spec.ts | ||
| folders.spec.ts | ||
| global-teardown.ts | ||
| helpers.ts | ||
| landing-routing.spec.ts | ||
| navigation.spec.ts | ||
| play.spec.ts | ||
| upload.spec.ts | ||