Age | Commit message (Collapse) | Author |
|
Often if a test fails and there's an unaknowledged toast message, that message will
explain why the test failed. Given that we don't display toast messages in
integration tests when they run (for reasons I can't recall right now), we need to
log it as part of the error message.
|
|
|
|
Use it in two selected tests to demonstrate what it looks like.
|
|
... and switch back from stefanhaller's tcell fork to the official tcell. This
basically reverts 7ccb871a459.
|
|
|
|
... and import stefanhaller's tcell fork for real rather than just replacing it
This solves the problem that people trying to
"go install github.com/jesseduffield/lazygit@latest" would get the error
go: github.com/jesseduffield/lazygit@latest (in github.com/jesseduffield/lazygit@v0.40.0):
The go.mod file for the module providing named packages contains one or
more replace directives. It must not contain directives that would cause
it to be interpreted differently than if it were the main module.
|
|
We're piggybacking on our existing integration test framework to record demos that we can include in our docs
|
|
Integration tests need to be notified when Lazygit is idle so they can progress to the next assertion / user action.
|
|
For some reason, the panic message was being truncated. So here we're printing it first, and then calling panic
|
|
We want to log both actions and commands for the sake of integration tests
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|