From f4c188fa5b069a1d0714dc9508cecfa55eaddf46 Mon Sep 17 00:00:00 2001 From: Andrew Hynes Date: Thu, 6 Oct 2022 22:42:49 -0230 Subject: [PATCH] fix(test): add stash name --- pkg/integration/tests/stash/stash.go | 5 ++++- .../stash/expected/repo/.git_keep/COMMIT_EDITMSG | 1 + .../stash/expected/repo/.git_keep/FETCH_HEAD | 0 .../stash/stash/expected/repo/.git_keep/HEAD | 1 + .../stash/stash/expected/repo/.git_keep/ORIG_HEAD | 1 + .../stash/stash/expected/repo/.git_keep/config | 12 ++++++++++++ .../stash/expected/repo/.git_keep/description | 1 + .../stash/stash/expected/repo/.git_keep/index | Bin 0 -> 65 bytes .../stash/expected/repo/.git_keep/info/exclude | 6 ++++++ .../stash/stash/expected/repo/.git_keep/logs/HEAD | 2 ++ .../repo/.git_keep/logs/refs/heads/master | 1 + .../stash/expected/repo/.git_keep/logs/refs/stash | 1 + .../4b/825dc642cb6eb9a060e54bf8d69288fbee4904 | Bin 0 -> 15 bytes .../62/27ee90e6cf6047b510f13dc6cc976e2dd372dd | Bin 0 -> 122 bytes .../6b/584e8ece562ebffc15d38808cd6b98fc3d97ea | Bin 0 -> 22 bytes .../9c/a683cf1ae1a37fb25ec24646acc0dc1db376e7 | 1 + .../d9/1d06157bdc633d25f970b9cc54d0eb74fb850f | Bin 0 -> 49 bytes .../f3/30ace8ec625fc87fe24138f3c4d65e7e8d9b8c | Bin 0 -> 168 bytes .../expected/repo/.git_keep/refs/heads/master | 1 + .../stash/expected/repo/.git_keep/refs/stash | 1 + 20 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 test/integration_new/stash/stash/expected/repo/.git_keep/COMMIT_EDITMSG create mode 100644 test/integration_new/stash/stash/expected/repo/.git_keep/FETCH_HEAD create mode 100644 test/integration_new/stash/stash/expected/repo/.git_keep/HEAD create mode 100644 test/integration_new/stash/stash/expected/repo/.git_keep/ORIG_HEAD create mode 100644 test/integration_new/stash/stash/expected/repo/.git_keep/config create mode 100644 test/integration_new/stash/stash/expected/repo/.git_keep/description create mode 100644 test/integration_new/stash/stash/expected/repo/.git_keep/index create mode 100644 test/integration_new/stash/stash/expected/repo/.git_keep/info/exclude create mode 100644 test/integration_new/stash/stash/expected/repo/.git_keep/logs/HEAD create mode 100644 test/integration_new/stash/stash/expected/repo/.git_keep/logs/refs/heads/master create mode 100644 test/integration_new/stash/stash/expected/repo/.git_keep/logs/refs/stash create mode 100644 test/integration_new/stash/stash/expected/repo/.git_keep/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904 create mode 100644 test/integration_new/stash/stash/expected/repo/.git_keep/objects/62/27ee90e6cf6047b510f13dc6cc976e2dd372dd create mode 100644 test/integration_new/stash/stash/expected/repo/.git_keep/objects/6b/584e8ece562ebffc15d38808cd6b98fc3d97ea create mode 100644 test/integration_new/stash/stash/expected/repo/.git_keep/objects/9c/a683cf1ae1a37fb25ec24646acc0dc1db376e7 create mode 100644 test/integration_new/stash/stash/expected/repo/.git_keep/objects/d9/1d06157bdc633d25f970b9cc54d0eb74fb850f create mode 100644 test/integration_new/stash/stash/expected/repo/.git_keep/objects/f3/30ace8ec625fc87fe24138f3c4d65e7e8d9b8c create mode 100644 test/integration_new/stash/stash/expected/repo/.git_keep/refs/heads/master create mode 100644 test/integration_new/stash/stash/expected/repo/.git_keep/refs/stash diff --git a/pkg/integration/tests/stash/stash.go b/pkg/integration/tests/stash/stash.go index 55095e42d..db9e13b78 100644 --- a/pkg/integration/tests/stash/stash.go +++ b/pkg/integration/tests/stash/stash.go @@ -19,7 +19,10 @@ var Stash = NewIntegrationTest(NewIntegrationTestArgs{ assert.StashCount(0) input.PressKeys(keys.Files.ViewStashOptions) - input.Confirm() + assert.InMenu() + + input.PressKeys("a") + input.Type("stash name") input.Confirm() assert.StashCount(1) diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/COMMIT_EDITMSG b/test/integration_new/stash/stash/expected/repo/.git_keep/COMMIT_EDITMSG new file mode 100644 index 000000000..802607664 --- /dev/null +++ b/test/integration_new/stash/stash/expected/repo/.git_keep/COMMIT_EDITMSG @@ -0,0 +1 @@ +initial commit diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/FETCH_HEAD b/test/integration_new/stash/stash/expected/repo/.git_keep/FETCH_HEAD new file mode 100644 index 000000000..e69de29bb diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/HEAD b/test/integration_new/stash/stash/expected/repo/.git_keep/HEAD new file mode 100644 index 000000000..cb089cd89 --- /dev/null +++ b/test/integration_new/stash/stash/expected/repo/.git_keep/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/ORIG_HEAD b/test/integration_new/stash/stash/expected/repo/.git_keep/ORIG_HEAD new file mode 100644 index 000000000..bf1549f7e --- /dev/null +++ b/test/integration_new/stash/stash/expected/repo/.git_keep/ORIG_HEAD @@ -0,0 +1 @@ +6227ee90e6cf6047b510f13dc6cc976e2dd372dd diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/config b/test/integration_new/stash/stash/expected/repo/.git_keep/config new file mode 100644 index 000000000..8a748ce32 --- /dev/null +++ b/test/integration_new/stash/stash/expected/repo/.git_keep/config @@ -0,0 +1,12 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = false + logallrefupdates = true + ignorecase = true + precomposeunicode = true +[user] + email = CI@example.com + name = CI +[commit] + gpgSign = false diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/description b/test/integration_new/stash/stash/expected/repo/.git_keep/description new file mode 100644 index 000000000..498b267a8 --- /dev/null +++ b/test/integration_new/stash/stash/expected/repo/.git_keep/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/index b/test/integration_new/stash/stash/expected/repo/.git_keep/index new file mode 100644 index 0000000000000000000000000000000000000000..65d675154f23ffb2d0196e017d44a5e7017550f5 GIT binary patch literal 65 zcmZ?q402{*U|<4bhL9jvS0E+HV4z^Y<=qr}%;|LA&IJiiy? 1665104980 -0230 commit (initial): initial commit +6227ee90e6cf6047b510f13dc6cc976e2dd372dd 6227ee90e6cf6047b510f13dc6cc976e2dd372dd CI 1665104985 -0230 reset: moving to HEAD diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/logs/refs/heads/master b/test/integration_new/stash/stash/expected/repo/.git_keep/logs/refs/heads/master new file mode 100644 index 000000000..b4cda7b51 --- /dev/null +++ b/test/integration_new/stash/stash/expected/repo/.git_keep/logs/refs/heads/master @@ -0,0 +1 @@ +0000000000000000000000000000000000000000 6227ee90e6cf6047b510f13dc6cc976e2dd372dd CI 1665104980 -0230 commit (initial): initial commit diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/logs/refs/stash b/test/integration_new/stash/stash/expected/repo/.git_keep/logs/refs/stash new file mode 100644 index 000000000..080ed95ff --- /dev/null +++ b/test/integration_new/stash/stash/expected/repo/.git_keep/logs/refs/stash @@ -0,0 +1 @@ +0000000000000000000000000000000000000000 9ca683cf1ae1a37fb25ec24646acc0dc1db376e7 CI 1665104985 -0230 On master: stash name diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904 b/test/integration_new/stash/stash/expected/repo/.git_keep/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904 new file mode 100644 index 0000000000000000000000000000000000000000..adf64119a33d7621aeeaa505d30adb58afaa5559 GIT binary patch literal 15 Wcmb^n>|+@|><-_+ilTuX0vu*}{f c#eguN8_^u}n5g`zoBFC+(*|c}etoMixhRc2*Z=?k literal 0 HcmV?d00001 diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/objects/6b/584e8ece562ebffc15d38808cd6b98fc3d97ea b/test/integration_new/stash/stash/expected/repo/.git_keep/objects/6b/584e8ece562ebffc15d38808cd6b98fc3d97ea new file mode 100644 index 0000000000000000000000000000000000000000..ec9764eae7ae13711d9505390685b84b0bafd229 GIT binary patch literal 22 dcmb9VlXr?Ff%bxNXyJgWyp^3>pK^wxBrjm)vLZHH-w%QWBk?dxOVQ{3tmBvGdZHySvi(kOb{r5gV^7iCTShHZuF WpPf4Yte~u=6~DmuP<#Lq^hKmQJx_iB literal 0 HcmV?d00001 diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/refs/heads/master b/test/integration_new/stash/stash/expected/repo/.git_keep/refs/heads/master new file mode 100644 index 000000000..bf1549f7e --- /dev/null +++ b/test/integration_new/stash/stash/expected/repo/.git_keep/refs/heads/master @@ -0,0 +1 @@ +6227ee90e6cf6047b510f13dc6cc976e2dd372dd diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/refs/stash b/test/integration_new/stash/stash/expected/repo/.git_keep/refs/stash new file mode 100644 index 000000000..c03c37c76 --- /dev/null +++ b/test/integration_new/stash/stash/expected/repo/.git_keep/refs/stash @@ -0,0 +1 @@ +9ca683cf1ae1a37fb25ec24646acc0dc1db376e7