mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-17 05:20:55 +00:00
* ⏱️ test: Let the Composer Palette Finish Closing Before the Tool Timer Freezes the Clock `tool-timer.spec.ts` closes the composer palette with Escape and then calls `page.clock.setFixedTime`, which installs Playwright's clock. From that point every timer the page starts is run by the clock, one callback per task, and the agent stream that follows queues a zero-delay timeout for each query-cache notification, so the clock runs seconds behind. The palette is still closing when the clock is installed. Its popover unmounts from a 123 ms leave timer that is started two animation frames after Escape. When the install lands inside those two frames the timer belongs to the clock and waits behind the notification backlog: the popover stays mounted at zero opacity over the transcript and takes the click meant for the tool disclosure for the five seconds the tool runs. The disclosure then leaves with the tool and the click waits out the test's 120 s timeout. Wait for the palette dialog to unmount before reading the start time and freezing the clock. * 🧲 test: Deliver a Hover Frame Before a Pinned Row Drag Is Released `dragRowOnto` sends its whole pointer path, release included, in about 25 ms. react-dnd's HTML5 backend delivers hover to drop targets once per animation frame, and a target's hover callback reads the pointer offset the previous hover recorded, so a release is judged against where the pointer was when a frame last ran. When no frame runs between the pointer crossing the hovered row's midpoint and the release, the last recorded offset is the one from entering the row, in its lower half: the swap is refused and the list keeps its order. Only the reorder in `a pinned chat cannot be dragged through a pinned model` depends on that reading. The other drags in the file end in a drop handler that reads no offset. Wait for an animation frame after each of the three settling moves, so the hover carrying the final position has been delivered before the release. |
||
|---|---|---|
| .. | ||
| deployed | ||
| mock | ||
| real | ||
| a11y.spec.ts | ||
| keys.spec.ts | ||
| landing.spec.ts | ||
| messages.spec.ts | ||
| nav.spec.ts | ||
| popup.spec.ts | ||