From f7c07e4fc2094393115d93daa60bccbcc26d2bf8 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sat, 14 Nov 2026 14:07:49 +0100 Subject: [PATCH] Add a test showing that the new branch prompt shows the full hash of a detached HEAD Co-Authored-By: Claude Opus 5.5 --- pkg/integration/tests/branch/detached_head.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/integration/tests/branch/detached_head.go b/pkg/integration/tests/branch/detached_head.go index 9a419540b..06f77a15c 100644 --- a/pkg/integration/tests/branch/detached_head.go +++ b/pkg/integration/tests/branch/detached_head.go @@ -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()