summaryrefslogtreecommitdiffstats
path: root/pkg/integration
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-03-24 19:13:00 +1100
committerGitHub <noreply@github.com>2023-03-24 19:13:00 +1100
commit4780953cef543bf506d3dc68547280dae2d1481b (patch)
tree21211912fb3919f6ece2c6b27f3927028376e939 /pkg/integration
parent11bc8b87faeba22b7afac550207cf54a66801641 (diff)
parentb7c61aa883a5eddc2db6147cff9d13341b0936a8 (diff)
Merge pull request #2377 from shinhs0506/clear-staging-after-commit
Diffstat (limited to 'pkg/integration')
-rw-r--r--pkg/integration/tests/commit/staged.go8
-rw-r--r--pkg/integration/tests/commit/staged_without_hooks.go8
2 files changed, 12 insertions, 4 deletions
diff --git a/pkg/integration/tests/commit/staged.go b/pkg/integration/tests/commit/staged.go
index 09bcf2815..f5e45995d 100644
--- a/pkg/integration/tests/commit/staged.go
+++ b/pkg/integration/tests/commit/staged.go
@@ -53,8 +53,12 @@ var Staged = NewIntegrationTest(NewIntegrationTestArgs{
Contains(commitMessage),
)
- t.Views().StagingSecondary().IsFocused()
+ t.Views().StagingSecondary().
+ IsEmpty()
- // TODO: assert that the staging panel has been refreshed (it currently does not get correctly refreshed)
+ t.Views().Staging().
+ IsFocused().
+ Content(Contains("+myfile content")).
+ Content(DoesNotContain("+with a second line"))
},
})
diff --git a/pkg/integration/tests/commit/staged_without_hooks.go b/pkg/integration/tests/commit/staged_without_hooks.go
index 620f712f9..dcf20d08d 100644
--- a/pkg/integration/tests/commit/staged_without_hooks.go
+++ b/pkg/integration/tests/commit/staged_without_hooks.go
@@ -53,8 +53,12 @@ var StagedWithoutHooks = NewIntegrationTest(NewIntegrationTestArgs{
Contains("WIP" + commitMessage),
)
- t.Views().StagingSecondary().IsFocused()
+ t.Views().StagingSecondary().
+ IsEmpty()
- // TODO: assert that the staging panel has been refreshed (it currently does not get correctly refreshed)
+ t.Views().Staging().
+ IsFocused().
+ Content(Contains("+myfile content")).
+ Content(DoesNotContain("+with a second line"))
},
})