1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2026-10-24 16:59:22 +03:00
Files
lazygit/pkg/integration/components
Stefan Haller 9e76ed7c03 Send the two clicks of a double click in tests without waiting between
The test enter_and_double_click_focus_file_diff fails occasionally on
CI. After it double-clicks a file, the files panel still has the focus
instead of the main view.

The test double-clicks by calling Click twice. Click waits for lazygit
to become idle after the press and again after the release, and the
first wait includes the git diff that the click starts for the main
view. gocui only counts the second click as a double click if it handles
it within 500ms of the first one. On a busy CI runner, where many
integration tests run in parallel, the waits can take longer than that,
and the second click counts as a single click.

Add DoubleClick to the test driver. It replays both clicks without
waiting in between, as a terminal reports a double click, and waits for
lazygit to become idle only after the second one.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-14 14:12:19 +02:00
..
2026-09-27 11:19:25 +02:00
2023-09-15 18:04:20 +02:00
2025-09-05 10:42:03 +02:00
2023-08-12 16:16:03 +10:00