jesseduffield.lazygit/pkg/integration/tests
Stefan Haller 19d0048cc4 More explicit test of status panel content
Use Equals instead of Contains for asserting the status view content. This
solves the problem that we might assert Contains("↓2 repo"), but what it really
shows is "↑1↓2 repo", and the test still succeeds. At best this is confusing.

Also, this way we don't have to use the awkward DoesNotContain to check that it
really doesn't show a checkmark.

To do this, we need to fix two whitespace problems:
- there was always a space at the end for no reason. Simply remove it. It was
  added in efb51eee96, but from looking at that diff it seems it was added
  accidentally.
- there was a space at the beginning if the branch status was empty. This is
  actually a cosmetic problem, for branches without a status the text was
  indented by once space. Change this so that the space is added conditionally.
  It's a bit awkward that we have to use Decolorise here, but this will go away
  again later in this branch.
2024-06-03 13:02:46 +02:00
..
bisect Deprecate git.log.showGraph and git.log.order config 2024-02-16 13:23:35 +01:00
branch More explicit test of status panel content 2024-06-03 13:02:46 +02:00
cherry_pick Deprecate git.log.showGraph and git.log.order config 2024-02-16 13:23:35 +01:00
commit Make "Find base commit for fixup" work with hunks with only added lines 2024-06-01 08:31:18 +02: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 Add property outputTitle to CustomCommand 2024-05-20 21:02:49 +02:00
demo Update interactive rebase demo 2024-03-23 20:45:51 +11:00
diff Add busy count for integration tests 2023-07-08 22:54:52 +10:00
file Support range select for staging/discarding files 2024-01-25 11:34:59 +11:00
filter_and_search Fix crash when filtering the keybindings menu 2024-03-28 09:58:45 +01:00
filter_by_author Add author filtering to commit view 2024-02-21 09:58:09 +01:00
filter_by_path Keep the same commit selected when exiting filtering mode 2024-03-28 12:23:46 +01:00
interactive_rebase Drop update-ref commands at the top of the rebase-todo file 2024-04-22 20:59:15 +02:00
misc Change CopiedToClipboard text to start lower-case 2024-03-22 09:59:46 +01:00
patch_building feat: focus on local commits view after moving code into new commit 2024-05-20 19:12:38 +02:00
reflog Deprecate git.log.showGraph and git.log.order config 2024-02-16 13:23:35 +01: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 Fix stashing partialy staged files for git version >= 2.35.0 2024-05-18 09:59:00 +02:00
status Add tests for clicking in status side panel 2024-05-15 13:21:17 +02:00
submodule Show all submodules recursively 2024-03-07 20:16:28 +01:00
sync More explicit test of status panel content 2024-06-03 13:02:46 +02:00
tag Make it possible to handle toasts in integration tests 2024-01-14 17:42:03 +01:00
ui Show mode-specific keybinding suggestions 2024-01-28 08:33:13 +11:00
undo Support range select in rebase actions 2024-01-23 17:23:56 +11:00
worktree pkg: fix some typos 2024-04-20 13:47:39 +02:00
test_list.go Make "Find base commit for fixup" work with hunks with only added lines 2024-06-01 08:31:18 +02: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