1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

183 Commits

Author SHA1 Message Date
2b6a109e38 migrate stash tests 2023-02-20 21:52:27 +11:00
daf8176dd7 add tag checkout test 2023-02-20 19:01:08 +11:00
72a92d748f test: fix TagNamesAt
Co-authored-by: Jesse Duffield <jessedduffield@gmail.com>
2023-02-19 23:35:38 +09:00
36c2b00336 test: add an integration test for creating tag on branches 2023-02-19 23:35:38 +09:00
b5e325b0a4 migrate revert merge test 2023-02-19 15:48:09 +11:00
31d796ee75 migrate forcePush integration test 2023-02-19 13:38:15 +11:00
stk
4d39668743 Undo a change made in #2444 that we didn't end up needing 2023-02-18 09:53:31 +01:00
c517d1e0a2 update view cursor when selecting new line in patch explorer view 2023-02-18 10:19:34 +11:00
stk
ff2a799200 Make SelectedLine/SelectedLineIdx work in staging/stagingSecondary views
While we try to keep the view's cursor position in sync with the context state's
selectedLineIdx (at least when pressing up or down), there are enough situations
where the two run out of sync; for example when initially opening the view, or
after staging a hunk, or when scrolling the view using the wheel. While it would
be possible to fix these situations to keep them always in sync, it doesn't seem
worth it, because the view's cursor position isn't really used for anything
else. So we rather special-case the SelectedLine/SelectedLineIdx functions of
ViewDriver to query the context state's selectedLineIdx directly if it is a
patch explorer context.
2023-02-15 21:22:11 +01:00
d7956c481d migrate submodule enter test 2023-02-12 18:12:01 +11:00
7a3291a1f7 fix test 2023-02-12 18:12:01 +11:00
010f6d7f6e migrate submodule add test 2023-02-12 10:47:41 +11:00
stk
b243f30f48 Disable ~/.gitconfig when running integration tests
A global ~/.gitconfig file can have influence on how integration tests behave;
in my case, I had the option "merge.conflictStyle" set to "diff3", which made
the integration test "cherry_pick_conflict" fail because the diff was different
from what the test expected.

Make this more robust by telling git to ignore the global config file when
running tests.
2023-02-07 17:26:45 +01:00
f7f24dbfc1 better test 2023-01-26 13:25:56 +11:00
6f709456fe migrate test for rename branch and pull 2022-12-30 22:42:32 +11:00
277ca706eb migrate fetchPrune integration test 2022-12-30 22:42:32 +11:00
f770a6246b rename function 2022-12-28 14:19:56 +11:00
f2d0f362d4 migrate discard staged changes test 2022-12-28 13:24:23 +11:00
14a974742f rename from asserter to driver 2022-12-28 11:27:48 +11:00
9fef4447b6 move popup assertions into a struct 2022-12-28 11:00:22 +11:00
7aa843c75a create actions struct 2022-12-28 10:54:38 +11:00
a27092a7ad remove broken test 2022-12-28 10:43:14 +11:00
a3450dfdfc fix suggestions test 2022-12-28 10:41:42 +11:00
f495945b87 fix bug 2022-12-28 10:29:32 +11:00
06c878c051 minor changes 2022-12-28 10:23:54 +11:00
ed93e0a2b0 remove dependency on model 2022-12-27 22:52:20 +11:00
c5050ecabd move shell into test driver 2022-12-27 21:47:37 +11:00
78b495f50a rename input to t 2022-12-27 21:35:36 +11:00
53e06b71ae add tap function 2022-12-27 21:26:18 +11:00
b166b8f776 combine assert and input structs, clean up interface 2022-12-27 21:26:18 +11:00
c5c9f5bb94 rename 2022-12-27 21:26:18 +11:00
09e80e5f2a better namespacing for assertions 2022-12-27 21:26:18 +11:00
be30cbb375 add view asserter getter struct 2022-12-27 21:26:18 +11:00
b64f55518b refactor commit message stuff in integration tests 2022-12-27 21:26:18 +11:00
926ed7b9b2 more refactoring of popup stuff 2022-12-27 21:26:18 +11:00
8052ac4fd6 add prompt asserter 2022-12-27 21:26:18 +11:00
c976839a63 refactor prompt handling in integration tests 2022-12-27 21:26:17 +11:00
09db4c4397 allow checking if line is selected in Lines and TopLines methods 2022-12-26 17:45:10 +11:00
96310288ee allow chaining matchers 2022-12-26 17:15:33 +11:00
c841ba8237 add switch-to-view methods 2022-12-26 16:49:54 +11:00
9a6f21ce42 cleaner test assertions 2022-12-26 12:20:13 +11:00
fa0414777f rename SelectedLine to CurrentLine in tests 2022-12-26 10:42:19 +11:00
5d2584a188 introduce ViewLines functions 2022-12-25 11:38:00 +11:00
b623ecf898 add helper functions for popups in tests 2022-12-24 19:15:59 +11:00
aedfce2845 refactor to not have Match at the start of assert method names, because it reads better that way 2022-12-24 19:14:52 +11:00
13639ac924 faster test 2022-12-24 19:05:46 +11:00
5c11b1ecb7 discard changes integration test 2022-12-24 19:05:46 +11:00
7c7f7bf9b9 migrate diffing integration tests 2022-12-21 22:52:23 +11:00
dde70486a1 apply user config changes in sandbox mode 2022-12-20 23:07:43 +11:00
e3c6738535 remove snapshot approach for new integration tests 2022-12-20 22:45:03 +11:00