summaryrefslogtreecommitdiffstats
path: root/pkg/integration/tests/branch/reset.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-12-26 16:49:54 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-12-26 16:49:54 +1100
commitc841ba82377a06b1ee562c377c2c7ac9319aa6e5 (patch)
tree83a02f84935fc416eeb1e2c452aeffe316ee1c6d /pkg/integration/tests/branch/reset.go
parent9a6f21ce429fedd949fdf9853c6ebf4892f858fd (diff)
add switch-to-view methods
Diffstat (limited to 'pkg/integration/tests/branch/reset.go')
-rw-r--r--pkg/integration/tests/branch/reset.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/integration/tests/branch/reset.go b/pkg/integration/tests/branch/reset.go
index d7b2db5a3..8be35e4ec 100644
--- a/pkg/integration/tests/branch/reset.go
+++ b/pkg/integration/tests/branch/reset.go
@@ -26,9 +26,9 @@ var Reset = NewIntegrationTest(NewIntegrationTestArgs{
Contains("root commit"),
)
- input.SwitchToBranchesWindow()
+ input.SwitchToBranchesView()
- assert.CurrentView().Name("localBranches").Lines(
+ assert.CurrentView().Lines(
Contains("current-branch"),
Contains("other-branch"),
)
@@ -42,8 +42,8 @@ var Reset = NewIntegrationTest(NewIntegrationTestArgs{
assert.CurrentView().Name("localBranches")
// assert that we now have the expected commits in the commit panel
- input.SwitchToCommitsWindow()
- assert.CurrentView().Name("commits").Lines(
+ input.SwitchToCommitsView()
+ assert.CurrentView().Lines(
Contains("other-branch commit"),
Contains("root commit"),
)