mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-18 03:49:50 -06:00
Add a test showing that the new branch prompt shows the full hash of a detached HEAD
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6348e8a6af
commit
f7c07e4fc2
1 file changed
+4
-1
@@ -25,7 +25,10 @@ var DetachedHead = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Press(keys.Universal.New)
|
||||
|
||||
t.ExpectPopup().Prompt().
|
||||
Title(MatchesRegexp(`^New branch name \(branch is off of '[0-9a-f]+'\)$`)).
|
||||
/* EXPECTED:
|
||||
Title(MatchesRegexp(`^New branch name \(branch is off of '[0-9a-f]{7} commit-09'\)$`)).
|
||||
ACTUAL: */
|
||||
Title(MatchesRegexp(`^New branch name \(branch is off of '[0-9a-f]{40}'\)$`)).
|
||||
Type("new-branch").
|
||||
Confirm()
|
||||
|
||||
|
||||
Reference in new issue
Block a user