summaryrefslogtreecommitdiffstats
path: root/pkg/integration/tests/branch/reset.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/reset.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/reset.go')
-rw-r--r--pkg/integration/tests/branch/reset.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkg/integration/tests/branch/reset.go b/pkg/integration/tests/branch/reset.go
index 344c1b821..605b7e76c 100644
--- a/pkg/integration/tests/branch/reset.go
+++ b/pkg/integration/tests/branch/reset.go
@@ -24,19 +24,19 @@ var Reset = NewIntegrationTest(NewIntegrationTestArgs{
input.SwitchToBranchesWindow()
assert.CurrentViewName("localBranches")
- assert.MatchSelectedLine(Contains("current-branch"))
+ assert.SelectedLine(Contains("current-branch"))
input.NextItem()
- assert.MatchSelectedLine(Contains("other-branch"))
+ assert.SelectedLine(Contains("other-branch"))
input.PressKeys(keys.Commits.ViewResetOptions)
assert.InMenu()
- assert.MatchCurrentViewTitle(Contains("reset to other-branch"))
+ assert.CurrentViewTitle(Contains("reset to other-branch"))
- assert.MatchSelectedLine(Contains("soft reset"))
+ assert.SelectedLine(Contains("soft reset"))
input.NextItem()
- assert.MatchSelectedLine(Contains("mixed reset"))
+ assert.SelectedLine(Contains("mixed reset"))
input.NextItem()
- assert.MatchSelectedLine(Contains("hard reset"))
+ assert.SelectedLine(Contains("hard reset"))
input.Confirm()
@@ -47,8 +47,8 @@ var Reset = NewIntegrationTest(NewIntegrationTestArgs{
input.SwitchToCommitsWindow()
assert.CurrentViewName("commits")
assert.CommitCount(2)
- assert.MatchSelectedLine(Contains("other-branch commit"))
+ assert.SelectedLine(Contains("other-branch commit"))
input.NextItem()
- assert.MatchSelectedLine(Contains("root commit"))
+ assert.SelectedLine(Contains("root commit"))
},
})