Skip to content

Commit

Permalink
test: update worktree-related tests to use the new branch deletion UI
Browse files Browse the repository at this point in the history
  • Loading branch information
AzraelSec committed Aug 2, 2023
1 parent e5ba520 commit eacdba6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/integration/tests/worktree/detach_worktree_from_branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ var DetachWorktreeFromBranch = NewIntegrationTest(NewIntegrationTestArgs{
).
NavigateToLine(Contains("newbranch")).
Press(keys.Universal.Remove).
Tap(func() {
t.ExpectPopup().
Menu().
Title(Equals("Delete branch 'newbranch'?")).
Select(Contains("Delete local branch")).
Confirm()
}).
Tap(func() {
t.ExpectPopup().Menu().
Title(Equals("Branch newbranch is checked out by worktree linked-worktree")).
Expand Down
7 changes: 7 additions & 0 deletions pkg/integration/tests/worktree/remove_worktree_from_branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ var RemoveWorktreeFromBranch = NewIntegrationTest(NewIntegrationTestArgs{
).
NavigateToLine(Contains("newbranch")).
Press(keys.Universal.Remove).
Tap(func() {
t.ExpectPopup().
Menu().
Title(Equals("Delete branch 'newbranch'?")).
Select(Contains("Delete local branch")).
Confirm()
}).
Tap(func() {
t.ExpectPopup().Menu().
Title(Equals("Branch newbranch is checked out by worktree linked-worktree")).
Expand Down

0 comments on commit eacdba6

Please sign in to comment.