4f6d3fb592
Don't wait in integration tests when running in headless mode
...
There's no point in spending time waiting in this case, as nobody can see it.
2024-06-05 14:44:02 +02:00
8ca8a43968
Make it mandatory to acknowledge toasts in tests
2024-01-14 17:42:03 +01:00
9fa43394fe
Make it possible to handle toasts in integration tests
...
Use it in two selected tests to demonstrate what it looks like.
2024-01-14 17:42:03 +01:00
ed1547e0cb
Add a Click() primitive to the integration test library
2023-08-07 15:10:28 +01:00
9cc1d65280
Add demo test variant
...
We're piggybacking on our existing integration test framework to record demos that we can include in our docs
2023-07-31 22:33:04 +10:00
c8f26aca68
Rename From to AtLeast
2023-05-02 16:27:32 +02:00
a304fed68c
Add GitVersion field to NewIntegrationTestArgs
...
It can be used to specify which git versions a given test should or should not run on.
2023-04-15 08:36:03 +02:00
f7e8b2dd71
cleanup integration test code
2023-02-26 12:54:13 +11:00
db011d8e34
Improve staging panel integration tests
2023-02-25 11:35:41 +11:00
4d39668743
Undo a change made in #2444 that we didn't end up needing
2023-02-18 09:53:31 +01:00
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
a27092a7ad
remove broken test
2022-12-28 10:43:14 +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
b166b8f776
combine assert and input structs, clean up interface
2022-12-27 21:26:18 +11:00
09e80e5f2a
better namespacing for assertions
2022-12-27 21:26:18 +11:00
b623ecf898
add helper functions for popups in tests
2022-12-24 19:15:59 +11:00
7af7af27c6
various changes to improve integration tests
2022-09-16 08:42:39 -07:00
53979f7cec
a more complex custom command test
2022-08-14 20:49:20 +10:00
d1b093e703
no need for this
2022-08-13 19:30:51 +10:00
5e475355bf
add tests for my tests
2022-08-13 13:56:50 +10:00