diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-12-27 15:07:11 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-12-27 21:26:18 +1100 |
commit | be30cbb37509f09c53265aa39d89cac1f6cd65c2 (patch) | |
tree | b4de7229344ed48c6a38201a13c4a0bce49bd8d4 /pkg/integration/tests/branch/reset.go | |
parent | b64f55518bc0f986662b54bbaaefecc692555100 (diff) |
add view asserter getter struct
Diffstat (limited to 'pkg/integration/tests/branch/reset.go')
-rw-r--r-- | pkg/integration/tests/branch/reset.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/integration/tests/branch/reset.go b/pkg/integration/tests/branch/reset.go index 821373934..fec6aea7a 100644 --- a/pkg/integration/tests/branch/reset.go +++ b/pkg/integration/tests/branch/reset.go @@ -21,14 +21,14 @@ var Reset = NewIntegrationTest(NewIntegrationTestArgs{ shell.EmptyCommit("current-branch commit") }, Run: func(shell *Shell, input *Input, assert *Assert, keys config.KeybindingConfig) { - assert.View("commits").Lines( + assert.Views().ByName("commits").Lines( Contains("current-branch commit"), Contains("root commit"), ) input.SwitchToBranchesView() - assert.CurrentView().Lines( + assert.Views().Current().Lines( Contains("current-branch"), Contains("other-branch"), ) @@ -39,11 +39,11 @@ var Reset = NewIntegrationTest(NewIntegrationTestArgs{ input.Menu().Title(Contains("reset to other-branch")).Select(Contains("hard reset")).Confirm() // ensure that we've returned from the menu before continuing - assert.CurrentView().Name("localBranches") + assert.Views().Current().Name("localBranches") // assert that we now have the expected commits in the commit panel input.SwitchToCommitsView() - assert.CurrentView().Lines( + assert.Views().Current().Lines( Contains("other-branch commit"), Contains("root commit"), ) |