diff options
Diffstat (limited to 'pkg/integration/tests/status/click_working_tree_state_to_open_rebase_options_menu.go')
-rw-r--r-- | pkg/integration/tests/status/click_working_tree_state_to_open_rebase_options_menu.go | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkg/integration/tests/status/click_working_tree_state_to_open_rebase_options_menu.go b/pkg/integration/tests/status/click_working_tree_state_to_open_rebase_options_menu.go new file mode 100644 index 000000000..42f221c54 --- /dev/null +++ b/pkg/integration/tests/status/click_working_tree_state_to_open_rebase_options_menu.go @@ -0,0 +1,27 @@ +package status + +import ( + "github.com/jesseduffield/lazygit/pkg/config" + . "github.com/jesseduffield/lazygit/pkg/integration/components" +) + +var ClickWorkingTreeStateToOpenRebaseOptionsMenu = NewIntegrationTest(NewIntegrationTestArgs{ + Description: "Click on the working tree state in the status side panel to open the rebase options menu", + ExtraCmdArgs: []string{}, + Skip: false, + SetupConfig: func(config *config.AppConfig) {}, + SetupRepo: func(shell *Shell) { + shell.CreateNCommits(2) + }, + Run: func(t *TestDriver, keys config.KeybindingConfig) { + t.Views().Commits(). + Focus(). + Press(keys.Universal.Edit) + + t.Views().Status(). + Content(Contains("(rebasing) repo")). + Click(1, 0) + + t.ExpectPopup().Menu().Title(Equals("Rebase options")) + }, +}) |