summaryrefslogtreecommitdiffstats
path: root/pkg/integration/tests/stash
diff options
context:
space:
mode:
authorAzraelSec <me@azraelsec.sh>2023-12-20 20:51:39 +0100
committerStefan Haller <stefan@haller-berlin.de>2023-12-27 11:21:49 +0100
commitbc330b8ff3ef7533bc1f96c7d2b309eaf94adf61 (patch)
treea55d85c53fae10731c34e5d9ea16945d5ef948f6 /pkg/integration/tests/stash
parent7f36494eb2710588dc08b2dd110608f90764fd87 (diff)
feat: add age on stash lines
Diffstat (limited to 'pkg/integration/tests/stash')
-rw-r--r--pkg/integration/tests/stash/rename.go6
-rw-r--r--pkg/integration/tests/stash/stash.go2
2 files changed, 4 insertions, 4 deletions
diff --git a/pkg/integration/tests/stash/rename.go b/pkg/integration/tests/stash/rename.go
index eb57fa654..4122b3aa8 100644
--- a/pkg/integration/tests/stash/rename.go
+++ b/pkg/integration/tests/stash/rename.go
@@ -22,14 +22,14 @@ var Rename = NewIntegrationTest(NewIntegrationTestArgs{
t.Views().Stash().
Focus().
Lines(
- Equals("On master: bar"),
- Equals("On master: foo"),
+ Contains("On master: bar"),
+ Contains("On master: foo"),
).
SelectNextItem().
Press(keys.Stash.RenameStash).
Tap(func() {
t.ExpectPopup().Prompt().Title(Equals("Rename stash: stash@{1}")).Type(" baz").Confirm()
}).
- SelectedLine(Equals("On master: foo baz"))
+ SelectedLine(Contains("On master: foo baz"))
},
})
diff --git a/pkg/integration/tests/stash/stash.go b/pkg/integration/tests/stash/stash.go
index d5fc3e92e..9f8292156 100644
--- a/pkg/integration/tests/stash/stash.go
+++ b/pkg/integration/tests/stash/stash.go
@@ -29,7 +29,7 @@ var Stash = NewIntegrationTest(NewIntegrationTestArgs{
t.Views().Stash().
Lines(
- Contains("my stashed file"),
+ MatchesRegexp(`\ds .* my stashed file`),
)
t.Views().Files().