summaryrefslogtreecommitdiffstats
path: root/pkg/integration/tests/branch/delete.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-12-24 17:01:26 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-12-24 19:14:52 +1100
commitaedfce28459bc59865b516dba2ee480a5d0972f1 (patch)
tree6bc47a03cce14f5daeeeb27534b326bce939b553 /pkg/integration/tests/branch/delete.go
parentc19f52255c1d5496713e4f4caba47382fd10c9fc (diff)
refactor to not have Match at the start of assert method names, because it reads better that way
Diffstat (limited to 'pkg/integration/tests/branch/delete.go')
-rw-r--r--pkg/integration/tests/branch/delete.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/integration/tests/branch/delete.go b/pkg/integration/tests/branch/delete.go
index 46df9a457..148544563 100644
--- a/pkg/integration/tests/branch/delete.go
+++ b/pkg/integration/tests/branch/delete.go
@@ -20,21 +20,21 @@ var Delete = NewIntegrationTest(NewIntegrationTestArgs{
input.SwitchToBranchesWindow()
assert.CurrentViewName("localBranches")
- assert.MatchSelectedLine(Contains("branch-two"))
+ assert.SelectedLine(Contains("branch-two"))
input.PressKeys(keys.Universal.Remove)
assert.InAlert()
- assert.MatchCurrentViewContent(Contains("You cannot delete the checked out branch!"))
+ assert.CurrentViewContent(Contains("You cannot delete the checked out branch!"))
input.Confirm()
input.NextItem()
- assert.MatchSelectedLine(Contains("branch-one"))
+ assert.SelectedLine(Contains("branch-one"))
input.PressKeys(keys.Universal.Remove)
assert.InConfirm()
- assert.MatchCurrentViewContent(Contains("Are you sure you want to delete the branch 'branch-one'?"))
+ assert.CurrentViewContent(Contains("Are you sure you want to delete the branch 'branch-one'?"))
input.Confirm()
assert.CurrentViewName("localBranches")
- assert.MatchSelectedLine(Contains("master"))
- assert.MatchCurrentViewContent(NotContains("branch-one"))
+ assert.SelectedLine(Contains("master"))
+ assert.CurrentViewContent(NotContains("branch-one"))
},
})