Skip to content

Commit d76abb1

Browse files
committed
fixup! Add runCommand function to Go template syntax
Improve the line wrapping a bit, and get rid of the branchName variable; I prefer literals in tests as much as possible.
1 parent 4fe49ba commit d76abb1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pkg/integration/tests/branch/new_branch_with_prefix_using_run_command.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ var NewBranchWithPrefixUsingRunCommand = NewIntegrationTest(NewIntegrationTestAr
2525
SelectNextItem().
2626
Press(keys.Universal.New).
2727
Tap(func() {
28-
branchName := "my-branch-name"
29-
t.ExpectPopup().Prompt().Title(Contains("New branch name")).Type(branchName).Confirm()
30-
t.Git().CurrentBranchName("myprefix/dynamic/" + branchName)
28+
t.ExpectPopup().Prompt().
29+
Title(Contains("New branch name")).
30+
InitialText(Equals("myprefix/dynamic/")).
31+
Type("my-branch").
32+
Confirm()
33+
t.Git().CurrentBranchName("myprefix/dynamic/my-branch")
3134
})
3235
},
3336
})

0 commit comments

Comments
 (0)