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:
Stefan HallerandClaude Opus 5.5 committed 2026-11-14 15:34:44 +01:00
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()