LibreChat/e2e/specs
Danny Avila 1469f5ad75
🧪 test: Stabilize the RTL Prompt Counter and Undocked Dock-Back Scenarios (#18052)
* 🧪 test: Measure the Prompt Counter After Its Dialog Settles

The RTL prompt counter scenario failed its first attempt in 9 of 64 recent
pull request runs and passed on retry. The Create Prompt dialog scales in
from 95% over 200ms, and the test measured during that animation with three
separate boundingBox() round trips: the field's x, the field's width, then
the counter's x. Each landed on a different frame, so an x from a smaller
scale was added to a width from a larger one and overshot the counter.

Wait for the dialog's own animations to finish, then read the field and the
counter in one evaluate so both rectangles describe the same frame. The
assertion and its 1px tolerance are unchanged; at rest the field ends 6.3px
before the counter.

* 🧪 test: Await the Window Close When Docking the Artifacts Pane

"docking back returns the pane to the side panel" failed its first attempt in
4 of 64 recent pull request runs with "locator.click: Target page, context or
browser has been closed". Docking closes the pane's window from inside the
Dock control's own click handler, so the click can lose its acknowledgement to
a page that is already gone: the CI trace shows "performing click action" and
the window's close 11ms apart.

Send every dock through one helper that awaits the window's close event and
tolerates a rejected press only once that window is closed. A press that fails
while the window is still open is rethrown, and a press that does not close
the window fails on the missing close. The code-tab scenario made the same
unguarded click, and the keyboard scenario swallowed every error; both now use
the helper.
2026-11-11 10:29:53 -05:00
..
deployed
email 📬 fix: Require a Click to Submit Email Verification Links (#17905) 2026-11-08 23:39:26 +01:00
mock 🧪 test: Stabilize the RTL Prompt Counter and Undocked Dock-Back Scenarios (#18052) 2026-11-11 10:29:53 -05:00
real
a11y.spec.ts
keys.spec.ts
landing.spec.ts
messages.spec.ts
nav.spec.ts
popup.spec.ts