mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-07-25 19:13:49 +00:00
The test was failing intermittently in CI with "Element is not attached to the DOM" at selectText(). The long text typed by writeToPad triggers DOM re-renders in Etherpad, and on slower CI runners the div locator could detach between resolve and action. Switch to keyboard-based selection (Ctrl+A) via the existing selectAllText helper, which doesn't depend on a specific DOM element staying attached. Verified stable across 10 repeated runs on chromium. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| backend | ||
| backend-new | ||
| container | ||
| frontend | ||
| frontend-new | ||
| ratelimit | ||
| README.md | ||
| settings.json | ||
About this folder: Tests
Before running the tests, start an Etherpad instance on your machine.
Frontend
To run the frontend tests, point your browser to <yourdomainhere>/tests/frontend
Backend
To run the backend tests, run cd src and then npm test