summaryrefslogtreecommitdiffstats
path: root/pkg/gui/gui_driver.go
AgeCommit message (Collapse)Author
2024-06-05Don't wait in integration tests when running in headless modeStefan Haller
There's no point in spending time waiting in this case, as nobody can see it.
2024-01-19Show unacknowledged toast message upon integration test failureJesse Duffield
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.
2024-01-14Make it mandatory to acknowledge toasts in testsStefan Haller
2024-01-14Make it possible to handle toasts in integration testsStefan Haller
Use it in two selected tests to demonstrate what it looks like.
2024-01-10Bump gocuiStefan Haller
... and switch back from stefanhaller's tcell fork to the official tcell. This basically reverts 7ccb871a459.
2023-08-07Add a Click() primitive to the integration test librarySimon Whitaker
2023-08-06Bump gocuiStefan Haller
... 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.
2023-07-31Add demo test variantJesse Duffield
We're piggybacking on our existing integration test framework to record demos that we can include in our docs
2023-07-08Add busy count for integration testsJesse Duffield
Integration tests need to be notified when Lazygit is idle so they can progress to the next assertion / user action.
2023-07-02Print entire panic messageJesse Duffield
For some reason, the panic message was being truncated. So here we're printing it first, and then calling panic
2023-05-16Rename CmdLog -> GuiLogJesse Duffield
We want to log both actions and commands for the sake of integration tests
2023-04-30lots more refactoringJesse Duffield
2023-02-25Improve staging panel integration testsJesse Duffield
2023-02-19show snapshot of lazygit when test fails for easier investigationJesse Duffield
2023-02-18Undo a change made in #2444 that we didn't end up needingstk
2023-02-15Make SelectedLine/SelectedLineIdx work in staging/stagingSecondary viewsstk
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.
2022-12-27remove dependency on modelJesse Duffield
2022-12-24discard changes integration testJesse Duffield
2022-09-09add bisect integration testJesse Duffield
2022-08-14a more complex custom command testJesse Duffield
2022-08-13refactor to ensure code doesn't depend on integration codeJesse Duffield