jesseduffield.lazygit/pkg/integration/tests
Jesse Duffield 51fb82d6bf Enforce single-item selection in various actions
We want to show an error when the user tries to invoke an action that expects only
a single item to be selected.

We're using the GetDisabledReason field to enforce this (as well as DisabledReason
on menu items).

I've created a ListControllerTrait to store some shared convenience functions for this.
2024-01-19 10:50:49 +11:00
..
bisect Make bisect/basic.go test more concrete 2023-07-31 08:34:01 +02:00
branch Use ErrorToast instead of error panel when invoking a disabled command 2024-01-14 17:45:35 +01:00
cherry_pick Support select range for cherry pick 2024-01-19 10:50:49 +11:00
commit Add range selection ability on list contexts 2024-01-19 10:47:21 +11:00
config Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
conflicts Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
custom_commands Allow checking for merge conflicts after running a custom command 2023-07-13 18:40:34 +10:00
demo Add range selection ability on list contexts 2024-01-19 10:47:21 +11:00
diff Add busy count for integration tests 2023-07-08 22:54:52 +10:00
file Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
filter_and_search When refreshing models, re-apply active filter for the corresponding view 2023-10-10 08:37:30 +02:00
filter_by_path Pass -f as single arg in integration test 2024-01-12 20:19:50 +11:00
interactive_rebase Allow showing Disabled errors as error panel instead of toast 2024-01-14 17:45:35 +01:00
misc Make it mandatory to acknowledge toasts in tests 2024-01-14 17:42:03 +01:00
patch_building Clear range select upon pressing 'escape' 2024-01-19 10:47:21 +11:00
reflog Don't show branch heads in reflog subcommits 2023-07-31 08:34:01 +02:00
shared Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
staging Add range selection ability on list contexts 2024-01-19 10:47:21 +11:00
stash feat: add age on stash lines 2023-12-27 11:21:49 +01:00
submodule Use sentence case everywhere 2023-05-25 23:52:19 +10:00
sync Show correct keybindings in force-push prompt 2023-07-31 11:38:52 +02:00
tag Make it possible to handle toasts in integration tests 2024-01-14 17:42:03 +01:00
ui Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
undo Use sentence case everywhere 2023-05-25 23:52:19 +10:00
worktree Set working directory in lazygit test command 2024-01-12 19:59:31 +11:00
test_list.go Support select range for cherry pick 2024-01-19 10:50:49 +11:00
test_list_generator.go Make test_list_generator.go print what it's doing 2023-09-29 20:40:15 +02:00
tests.go Set working directory in lazygit test command 2024-01-12 19:59:31 +11:00