mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
Remove the "YOU ARE HERE" marker
Now that we have sections, it is no longer needed. Keep the "<-- CONFLICTS" marker though.
This commit is contained in:
@ -41,7 +41,6 @@ func NewLocalCommitsContext(c *ContextCommon) *LocalCommitsContext {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
showYouAreHereLabel := c.Model().WorkingTreeStateAtLastCommitRefresh.CanShowTodos()
|
|
||||||
hasRebaseUpdateRefsConfig := c.Git().Config.GetRebaseUpdateRefs()
|
hasRebaseUpdateRefsConfig := c.Git().Config.GetRebaseUpdateRefs()
|
||||||
|
|
||||||
return presentation.GetCommitListDisplayStrings(
|
return presentation.GetCommitListDisplayStrings(
|
||||||
@ -63,7 +62,6 @@ func NewLocalCommitsContext(c *ContextCommon) *LocalCommitsContext {
|
|||||||
endIdx,
|
endIdx,
|
||||||
shouldShowGraph(c),
|
shouldShowGraph(c),
|
||||||
c.Model().BisectInfo,
|
c.Model().BisectInfo,
|
||||||
showYouAreHereLabel,
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,7 +77,6 @@ func NewSubCommitsContext(
|
|||||||
endIdx,
|
endIdx,
|
||||||
shouldShowGraph(c),
|
shouldShowGraph(c),
|
||||||
git_commands.NewNullBisectInfo(),
|
git_commands.NewNullBisectInfo(),
|
||||||
false,
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +56,6 @@ func GetCommitListDisplayStrings(
|
|||||||
endIdx int,
|
endIdx int,
|
||||||
showGraph bool,
|
showGraph bool,
|
||||||
bisectInfo *git_commands.BisectInfo,
|
bisectInfo *git_commands.BisectInfo,
|
||||||
showYouAreHereLabel bool,
|
|
||||||
) [][]string {
|
) [][]string {
|
||||||
mutex.Lock()
|
mutex.Lock()
|
||||||
defer mutex.Unlock()
|
defer mutex.Unlock()
|
||||||
@ -185,11 +184,6 @@ func GetCommitListDisplayStrings(
|
|||||||
for i, commit := range filteredCommits {
|
for i, commit := range filteredCommits {
|
||||||
unfilteredIdx := i + startIdx
|
unfilteredIdx := i + startIdx
|
||||||
bisectStatus = getBisectStatus(unfilteredIdx, commit.Hash, bisectInfo, bisectBounds)
|
bisectStatus = getBisectStatus(unfilteredIdx, commit.Hash, bisectInfo, bisectBounds)
|
||||||
isYouAreHereCommit := false
|
|
||||||
if showYouAreHereLabel && (commit.Status == models.StatusConflicted || unfilteredIdx == rebaseOffset) {
|
|
||||||
isYouAreHereCommit = true
|
|
||||||
showYouAreHereLabel = false
|
|
||||||
}
|
|
||||||
isMarkedBaseCommit := commit.Hash != "" && commit.Hash == markedBaseCommit
|
isMarkedBaseCommit := commit.Hash != "" && commit.Hash == markedBaseCommit
|
||||||
if isMarkedBaseCommit {
|
if isMarkedBaseCommit {
|
||||||
willBeRebased = true
|
willBeRebased = true
|
||||||
@ -211,7 +205,6 @@ func GetCommitListDisplayStrings(
|
|||||||
fullDescription,
|
fullDescription,
|
||||||
bisectStatus,
|
bisectStatus,
|
||||||
bisectInfo,
|
bisectInfo,
|
||||||
isYouAreHereCommit,
|
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
return lines
|
return lines
|
||||||
@ -364,7 +357,6 @@ func displayCommit(
|
|||||||
fullDescription bool,
|
fullDescription bool,
|
||||||
bisectStatus BisectStatus,
|
bisectStatus BisectStatus,
|
||||||
bisectInfo *git_commands.BisectInfo,
|
bisectInfo *git_commands.BisectInfo,
|
||||||
isYouAreHereCommit bool,
|
|
||||||
) []string {
|
) []string {
|
||||||
bisectString := getBisectStatusText(bisectStatus, bisectInfo)
|
bisectString := getBisectStatusText(bisectStatus, bisectInfo)
|
||||||
|
|
||||||
@ -427,14 +419,8 @@ func displayCommit(
|
|||||||
}
|
}
|
||||||
|
|
||||||
mark := ""
|
mark := ""
|
||||||
if isYouAreHereCommit {
|
if commit.Status == models.StatusConflicted {
|
||||||
color := style.FgYellow
|
youAreHere := style.FgRed.Sprintf("<-- %s ---", common.Tr.ConflictLabel)
|
||||||
text := common.Tr.YouAreHere
|
|
||||||
if commit.Status == models.StatusConflicted {
|
|
||||||
color = style.FgRed
|
|
||||||
text = common.Tr.ConflictLabel
|
|
||||||
}
|
|
||||||
youAreHere := color.Sprintf("<-- %s ---", text)
|
|
||||||
mark = fmt.Sprintf("%s ", youAreHere)
|
mark = fmt.Sprintf("%s ", youAreHere)
|
||||||
} else if isMarkedBaseCommit {
|
} else if isMarkedBaseCommit {
|
||||||
rebaseFromHere := style.FgYellow.Sprint(common.Tr.MarkedCommitMarker)
|
rebaseFromHere := style.FgYellow.Sprint(common.Tr.MarkedCommitMarker)
|
||||||
|
@ -40,7 +40,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
|
|||||||
endIdx int
|
endIdx int
|
||||||
showGraph bool
|
showGraph bool
|
||||||
bisectInfo *git_commands.BisectInfo
|
bisectInfo *git_commands.BisectInfo
|
||||||
showYouAreHereLabel bool
|
|
||||||
expected string
|
expected string
|
||||||
focus bool
|
focus bool
|
||||||
}{
|
}{
|
||||||
@ -223,12 +222,11 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
|
|||||||
showGraph: true,
|
showGraph: true,
|
||||||
bisectInfo: git_commands.NewNullBisectInfo(),
|
bisectInfo: git_commands.NewNullBisectInfo(),
|
||||||
cherryPickedCommitHashSet: set.New[string](),
|
cherryPickedCommitHashSet: set.New[string](),
|
||||||
showYouAreHereLabel: true,
|
|
||||||
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
||||||
expected: formatExpected(`
|
expected: formatExpected(`
|
||||||
hash1 pick commit1
|
hash1 pick commit1
|
||||||
hash2 pick commit2
|
hash2 pick commit2
|
||||||
hash3 ◯ <-- YOU ARE HERE --- commit3
|
hash3 ◯ commit3
|
||||||
hash4 ◯ commit4
|
hash4 ◯ commit4
|
||||||
hash5 ◯ commit5
|
hash5 ◯ commit5
|
||||||
`),
|
`),
|
||||||
@ -247,11 +245,10 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
|
|||||||
showGraph: true,
|
showGraph: true,
|
||||||
bisectInfo: git_commands.NewNullBisectInfo(),
|
bisectInfo: git_commands.NewNullBisectInfo(),
|
||||||
cherryPickedCommitHashSet: set.New[string](),
|
cherryPickedCommitHashSet: set.New[string](),
|
||||||
showYouAreHereLabel: true,
|
|
||||||
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
||||||
expected: formatExpected(`
|
expected: formatExpected(`
|
||||||
hash2 pick commit2
|
hash2 pick commit2
|
||||||
hash3 ◯ <-- YOU ARE HERE --- commit3
|
hash3 ◯ commit3
|
||||||
hash4 ◯ commit4
|
hash4 ◯ commit4
|
||||||
hash5 ◯ commit5
|
hash5 ◯ commit5
|
||||||
`),
|
`),
|
||||||
@ -270,7 +267,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
|
|||||||
showGraph: true,
|
showGraph: true,
|
||||||
bisectInfo: git_commands.NewNullBisectInfo(),
|
bisectInfo: git_commands.NewNullBisectInfo(),
|
||||||
cherryPickedCommitHashSet: set.New[string](),
|
cherryPickedCommitHashSet: set.New[string](),
|
||||||
showYouAreHereLabel: true,
|
|
||||||
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
||||||
expected: formatExpected(`
|
expected: formatExpected(`
|
||||||
hash4 ◯ commit4
|
hash4 ◯ commit4
|
||||||
@ -291,7 +287,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
|
|||||||
showGraph: true,
|
showGraph: true,
|
||||||
bisectInfo: git_commands.NewNullBisectInfo(),
|
bisectInfo: git_commands.NewNullBisectInfo(),
|
||||||
cherryPickedCommitHashSet: set.New[string](),
|
cherryPickedCommitHashSet: set.New[string](),
|
||||||
showYouAreHereLabel: true,
|
|
||||||
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
||||||
expected: formatExpected(`
|
expected: formatExpected(`
|
||||||
hash1 pick commit1
|
hash1 pick commit1
|
||||||
@ -312,7 +307,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
|
|||||||
showGraph: true,
|
showGraph: true,
|
||||||
bisectInfo: git_commands.NewNullBisectInfo(),
|
bisectInfo: git_commands.NewNullBisectInfo(),
|
||||||
cherryPickedCommitHashSet: set.New[string](),
|
cherryPickedCommitHashSet: set.New[string](),
|
||||||
showYouAreHereLabel: true,
|
|
||||||
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
||||||
expected: formatExpected(`
|
expected: formatExpected(`
|
||||||
hash5 ◯ commit5
|
hash5 ◯ commit5
|
||||||
@ -332,33 +326,12 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
|
|||||||
showGraph: true,
|
showGraph: true,
|
||||||
bisectInfo: git_commands.NewNullBisectInfo(),
|
bisectInfo: git_commands.NewNullBisectInfo(),
|
||||||
cherryPickedCommitHashSet: set.New[string](),
|
cherryPickedCommitHashSet: set.New[string](),
|
||||||
showYouAreHereLabel: true,
|
|
||||||
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
||||||
expected: formatExpected(`
|
expected: formatExpected(`
|
||||||
hash1 pick commit1
|
hash1 pick commit1
|
||||||
hash2 pick commit2
|
hash2 pick commit2
|
||||||
`),
|
`),
|
||||||
},
|
},
|
||||||
{
|
|
||||||
testName: "don't show YOU ARE HERE label when not asked for (e.g. in branches panel)",
|
|
||||||
commits: []*models.Commit{
|
|
||||||
{Name: "commit1", Hash: "hash1", Parents: []string{"hash2"}, Action: todo.Pick},
|
|
||||||
{Name: "commit2", Hash: "hash2", Parents: []string{"hash3"}},
|
|
||||||
{Name: "commit3", Hash: "hash3", Parents: []string{"hash4"}},
|
|
||||||
},
|
|
||||||
startIdx: 0,
|
|
||||||
endIdx: 3,
|
|
||||||
showGraph: true,
|
|
||||||
bisectInfo: git_commands.NewNullBisectInfo(),
|
|
||||||
cherryPickedCommitHashSet: set.New[string](),
|
|
||||||
showYouAreHereLabel: false,
|
|
||||||
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
|
||||||
expected: formatExpected(`
|
|
||||||
hash1 pick commit1
|
|
||||||
hash2 ◯ commit2
|
|
||||||
hash3 ◯ commit3
|
|
||||||
`),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
testName: "graph in divergence view - all commits visible",
|
testName: "graph in divergence view - all commits visible",
|
||||||
commits: []*models.Commit{
|
commits: []*models.Commit{
|
||||||
@ -376,7 +349,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
|
|||||||
showGraph: true,
|
showGraph: true,
|
||||||
bisectInfo: git_commands.NewNullBisectInfo(),
|
bisectInfo: git_commands.NewNullBisectInfo(),
|
||||||
cherryPickedCommitHashSet: set.New[string](),
|
cherryPickedCommitHashSet: set.New[string](),
|
||||||
showYouAreHereLabel: false,
|
|
||||||
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
||||||
expected: formatExpected(`
|
expected: formatExpected(`
|
||||||
↓ hash1r ◯ commit1
|
↓ hash1r ◯ commit1
|
||||||
@ -406,7 +378,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
|
|||||||
showGraph: true,
|
showGraph: true,
|
||||||
bisectInfo: git_commands.NewNullBisectInfo(),
|
bisectInfo: git_commands.NewNullBisectInfo(),
|
||||||
cherryPickedCommitHashSet: set.New[string](),
|
cherryPickedCommitHashSet: set.New[string](),
|
||||||
showYouAreHereLabel: false,
|
|
||||||
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
||||||
expected: formatExpected(`
|
expected: formatExpected(`
|
||||||
↓ hash3r ◯ │ commit3
|
↓ hash3r ◯ │ commit3
|
||||||
@ -434,7 +405,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
|
|||||||
showGraph: true,
|
showGraph: true,
|
||||||
bisectInfo: git_commands.NewNullBisectInfo(),
|
bisectInfo: git_commands.NewNullBisectInfo(),
|
||||||
cherryPickedCommitHashSet: set.New[string](),
|
cherryPickedCommitHashSet: set.New[string](),
|
||||||
showYouAreHereLabel: false,
|
|
||||||
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
||||||
expected: formatExpected(`
|
expected: formatExpected(`
|
||||||
↓ hash1r ◯ commit1
|
↓ hash1r ◯ commit1
|
||||||
@ -461,7 +431,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
|
|||||||
showGraph: true,
|
showGraph: true,
|
||||||
bisectInfo: git_commands.NewNullBisectInfo(),
|
bisectInfo: git_commands.NewNullBisectInfo(),
|
||||||
cherryPickedCommitHashSet: set.New[string](),
|
cherryPickedCommitHashSet: set.New[string](),
|
||||||
showYouAreHereLabel: false,
|
|
||||||
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
||||||
expected: formatExpected(`
|
expected: formatExpected(`
|
||||||
↑ hash2l ⏣─╮ commit2
|
↑ hash2l ⏣─╮ commit2
|
||||||
@ -487,7 +456,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
|
|||||||
showGraph: true,
|
showGraph: true,
|
||||||
bisectInfo: git_commands.NewNullBisectInfo(),
|
bisectInfo: git_commands.NewNullBisectInfo(),
|
||||||
cherryPickedCommitHashSet: set.New[string](),
|
cherryPickedCommitHashSet: set.New[string](),
|
||||||
showYouAreHereLabel: false,
|
|
||||||
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
||||||
expected: formatExpected(`
|
expected: formatExpected(`
|
||||||
↓ hash1r ◯ commit1
|
↓ hash1r ◯ commit1
|
||||||
@ -508,7 +476,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
|
|||||||
showGraph: true,
|
showGraph: true,
|
||||||
bisectInfo: git_commands.NewNullBisectInfo(),
|
bisectInfo: git_commands.NewNullBisectInfo(),
|
||||||
cherryPickedCommitHashSet: set.New[string](),
|
cherryPickedCommitHashSet: set.New[string](),
|
||||||
showYouAreHereLabel: false,
|
|
||||||
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
||||||
expected: formatExpected(`
|
expected: formatExpected(`
|
||||||
↑ hash1l ◯ commit1
|
↑ hash1l ◯ commit1
|
||||||
@ -530,7 +497,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
|
|||||||
showGraph: true,
|
showGraph: true,
|
||||||
bisectInfo: git_commands.NewNullBisectInfo(),
|
bisectInfo: git_commands.NewNullBisectInfo(),
|
||||||
cherryPickedCommitHashSet: set.New[string](),
|
cherryPickedCommitHashSet: set.New[string](),
|
||||||
showYouAreHereLabel: false,
|
|
||||||
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
|
||||||
expected: formatExpected(`
|
expected: formatExpected(`
|
||||||
↓ hash1r ◯ commit1
|
↓ hash1r ◯ commit1
|
||||||
@ -596,7 +562,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
|
|||||||
s.endIdx,
|
s.endIdx,
|
||||||
s.showGraph,
|
s.showGraph,
|
||||||
s.bisectInfo,
|
s.bisectInfo,
|
||||||
s.showYouAreHereLabel,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
renderedLines, _ := utils.RenderDisplayStrings(result, nil)
|
renderedLines, _ := utils.RenderDisplayStrings(result, nil)
|
||||||
|
@ -348,7 +348,6 @@ type TranslationSet struct {
|
|||||||
PullRequestNoUpstream string
|
PullRequestNoUpstream string
|
||||||
ErrorOccurred string
|
ErrorOccurred string
|
||||||
NoRoom string
|
NoRoom string
|
||||||
YouAreHere string
|
|
||||||
ConflictLabel string
|
ConflictLabel string
|
||||||
PendingRebaseTodosSectionHeader string
|
PendingRebaseTodosSectionHeader string
|
||||||
PendingCherryPicksSectionHeader string
|
PendingCherryPicksSectionHeader string
|
||||||
@ -1421,7 +1420,6 @@ func EnglishTranslationSet() *TranslationSet {
|
|||||||
PullRequestNoUpstream: "Cannot open a pull request for a branch with no upstream",
|
PullRequestNoUpstream: "Cannot open a pull request for a branch with no upstream",
|
||||||
ErrorOccurred: "An error occurred! Please create an issue at",
|
ErrorOccurred: "An error occurred! Please create an issue at",
|
||||||
NoRoom: "Not enough room",
|
NoRoom: "Not enough room",
|
||||||
YouAreHere: "YOU ARE HERE",
|
|
||||||
ConflictLabel: "CONFLICT",
|
ConflictLabel: "CONFLICT",
|
||||||
PendingRebaseTodosSectionHeader: "Pending rebase todos",
|
PendingRebaseTodosSectionHeader: "Pending rebase todos",
|
||||||
PendingCherryPicksSectionHeader: "Pending cherry-picks",
|
PendingCherryPicksSectionHeader: "Pending cherry-picks",
|
||||||
|
@ -62,7 +62,7 @@ var CherryPickDuringRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains("pick CI two"),
|
Contains("pick CI two"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains(" CI <-- YOU ARE HERE --- one").IsSelected(),
|
Contains(" CI one").IsSelected(),
|
||||||
Contains(" CI base"),
|
Contains(" CI base"),
|
||||||
).
|
).
|
||||||
Press(keys.Commits.PasteCommits).
|
Press(keys.Commits.PasteCommits).
|
||||||
@ -79,7 +79,7 @@ var CherryPickDuringRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains("pick CI two"),
|
Contains("pick CI two"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains(" CI <-- YOU ARE HERE --- three"),
|
Contains(" CI three"),
|
||||||
Contains(" CI one"),
|
Contains(" CI one"),
|
||||||
Contains(" CI base"),
|
Contains(" CI base"),
|
||||||
).
|
).
|
||||||
|
@ -48,7 +48,7 @@ var AdvancedInteractiveRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains(TOP_COMMIT),
|
Contains(TOP_COMMIT),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains(BASE_COMMIT).Contains("YOU ARE HERE"),
|
Contains(BASE_COMMIT),
|
||||||
).
|
).
|
||||||
NavigateToLine(Contains(TOP_COMMIT)).
|
NavigateToLine(Contains(TOP_COMMIT)).
|
||||||
Press(keys.Universal.Edit).
|
Press(keys.Universal.Edit).
|
||||||
@ -56,7 +56,7 @@ var AdvancedInteractiveRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains(TOP_COMMIT).Contains("edit"),
|
Contains(TOP_COMMIT).Contains("edit"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains(BASE_COMMIT).Contains("YOU ARE HERE"),
|
Contains(BASE_COMMIT),
|
||||||
).
|
).
|
||||||
Tap(func() {
|
Tap(func() {
|
||||||
t.Common().ContinueRebase()
|
t.Common().ContinueRebase()
|
||||||
@ -64,7 +64,7 @@ var AdvancedInteractiveRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Lines(
|
Lines(
|
||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains(TOP_COMMIT).Contains("YOU ARE HERE"),
|
Contains(TOP_COMMIT),
|
||||||
Contains(BASE_COMMIT),
|
Contains(BASE_COMMIT),
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
@ -27,7 +27,7 @@ var AmendHeadCommitDuringRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains("commit 03"),
|
Contains("commit 03"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 02").IsSelected(),
|
Contains("commit 02").IsSelected(),
|
||||||
Contains("commit 01"),
|
Contains("commit 01"),
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ var AmendHeadCommitDuringRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains("commit 03"),
|
Contains("commit 03"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 02").IsSelected(),
|
Contains("commit 02").IsSelected(),
|
||||||
Contains("commit 01"),
|
Contains("commit 01"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ var AmendNonHeadCommitDuringRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains("commit 03"),
|
Contains("commit 03"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 02"),
|
Contains("commit 02"),
|
||||||
Contains("commit 01"),
|
Contains("commit 01"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ var DeleteUpdateRefTodo = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("pick").Contains("CI commit 03"),
|
Contains("pick").Contains("CI commit 03"),
|
||||||
Contains("pick").Contains("CI commit 02"),
|
Contains("pick").Contains("CI commit 02"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("CI ◯ <-- YOU ARE HERE --- commit 01"),
|
Contains("CI ◯ commit 01"),
|
||||||
).
|
).
|
||||||
NavigateToLine(Contains("update-ref")).
|
NavigateToLine(Contains("update-ref")).
|
||||||
Press(keys.Universal.Remove).
|
Press(keys.Universal.Remove).
|
||||||
@ -52,7 +52,7 @@ var DeleteUpdateRefTodo = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("pick").Contains("CI commit 03").IsSelected(),
|
Contains("pick").Contains("CI commit 03").IsSelected(),
|
||||||
Contains("pick").Contains("CI commit 02"),
|
Contains("pick").Contains("CI commit 02"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("CI ◯ <-- YOU ARE HERE --- commit 01"),
|
Contains("CI ◯ commit 01"),
|
||||||
).
|
).
|
||||||
NavigateToLine(Contains("commit 02")).
|
NavigateToLine(Contains("commit 02")).
|
||||||
Press(keys.Universal.Remove).
|
Press(keys.Universal.Remove).
|
||||||
|
@ -49,7 +49,7 @@ var DontShowBranchHeadsForTodoItems = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("pick").Contains("CI commit 06"), // no star on this entry, even though branch2 points to it
|
Contains("pick").Contains("CI commit 06"), // no star on this entry, even though branch2 points to it
|
||||||
Contains("pick").Contains("CI commit 05"),
|
Contains("pick").Contains("CI commit 05"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("CI <-- YOU ARE HERE --- commit 04"),
|
Contains("CI commit 04"),
|
||||||
Contains("CI commit 03"),
|
Contains("CI commit 03"),
|
||||||
Contains("CI * commit 02"), // this star is fine though
|
Contains("CI * commit 02"), // this star is fine though
|
||||||
Contains("CI commit 01"),
|
Contains("CI commit 01"),
|
||||||
|
@ -47,7 +47,7 @@ var DropTodoCommitWithUpdateRef = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("pick").Contains("CI commit 04"),
|
Contains("pick").Contains("CI commit 04"),
|
||||||
Contains("pick").Contains("CI commit 03"),
|
Contains("pick").Contains("CI commit 03"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 02").IsSelected(),
|
Contains("CI commit 02").IsSelected(),
|
||||||
Contains("CI commit 01"),
|
Contains("CI commit 01"),
|
||||||
).
|
).
|
||||||
Tap(func() {
|
Tap(func() {
|
||||||
|
@ -28,7 +28,7 @@ var EditAndAutoAmend = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains("commit 03"),
|
Contains("commit 03"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
MatchesRegexp("YOU ARE HERE.*commit 02").IsSelected(),
|
Contains("commit 02").IsSelected(),
|
||||||
Contains("commit 01"),
|
Contains("commit 01"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ var EditFirstCommit = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains("commit 02"),
|
Contains("commit 02"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
MatchesRegexp("YOU ARE HERE.*commit 01").IsSelected(),
|
Contains("commit 01").IsSelected(),
|
||||||
).
|
).
|
||||||
Tap(func() {
|
Tap(func() {
|
||||||
t.Common().ContinueRebase()
|
t.Common().ContinueRebase()
|
||||||
|
@ -42,7 +42,7 @@ var EditLastCommitOfStackedBranch = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("pick").Contains("CI commit 04"),
|
Contains("pick").Contains("CI commit 04"),
|
||||||
Contains("update-ref").Contains("branch1"),
|
Contains("update-ref").Contains("branch1"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- * commit 03").IsSelected(),
|
Contains("CI * commit 03").IsSelected(),
|
||||||
Contains("CI commit 02"),
|
Contains("CI commit 02"),
|
||||||
Contains("CI commit 01"),
|
Contains("CI commit 01"),
|
||||||
)
|
)
|
||||||
|
@ -25,7 +25,7 @@ var EditNonTodoCommitDuringRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Lines(
|
Lines(
|
||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 02"),
|
Contains("commit 02"),
|
||||||
Contains("commit 01"),
|
Contains("commit 01"),
|
||||||
).
|
).
|
||||||
NavigateToLine(Contains("commit 01")).
|
NavigateToLine(Contains("commit 01")).
|
||||||
|
@ -31,7 +31,7 @@ var EditRangeSelectDownToMergeOutsideRebase = NewIntegrationTest(NewIntegrationT
|
|||||||
Contains("edit CI commit 02").IsSelected(),
|
Contains("edit CI commit 02").IsSelected(),
|
||||||
Contains("edit CI commit 01").IsSelected(),
|
Contains("edit CI commit 01").IsSelected(),
|
||||||
Contains("--- Commits ---").IsSelected(),
|
Contains("--- Commits ---").IsSelected(),
|
||||||
Contains(" CI ⏣─╮ <-- YOU ARE HERE --- Merge branch 'second-change-branch' into first-change-branch").IsSelected(),
|
Contains(" CI ⏣─╮ Merge branch 'second-change-branch' into first-change-branch").IsSelected(),
|
||||||
Contains(" CI │ ◯ * second-change-branch unrelated change"),
|
Contains(" CI │ ◯ * second-change-branch unrelated change"),
|
||||||
Contains(" CI │ ◯ second change"),
|
Contains(" CI │ ◯ second change"),
|
||||||
Contains(" CI ◯ │ first change"),
|
Contains(" CI ◯ │ first change"),
|
||||||
|
@ -44,7 +44,7 @@ var EditRangeSelectOutsideRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("edit CI second change").IsSelected(),
|
Contains("edit CI second change").IsSelected(),
|
||||||
Contains("edit CI * original").IsSelected(),
|
Contains("edit CI * original").IsSelected(),
|
||||||
Contains("--- Commits ---").IsSelected(),
|
Contains("--- Commits ---").IsSelected(),
|
||||||
Contains(" CI ◯ <-- YOU ARE HERE --- three").IsSelected(),
|
Contains(" CI ◯ three").IsSelected(),
|
||||||
Contains(" CI ◯ two"),
|
Contains(" CI ◯ two"),
|
||||||
Contains(" CI ◯ one"),
|
Contains(" CI ◯ one"),
|
||||||
)
|
)
|
||||||
|
@ -37,7 +37,7 @@ var InteractiveRebaseOfCopiedBranch = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("pick").Contains("CI commit 03"),
|
Contains("pick").Contains("CI commit 03"),
|
||||||
Contains("pick").Contains("CI commit 02"),
|
Contains("pick").Contains("CI commit 02"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("CI <-- YOU ARE HERE --- commit 01"),
|
Contains("CI commit 01"),
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -31,7 +31,7 @@ var MidRebaseRangeSelect = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("pick").Contains("commit 07"),
|
Contains("pick").Contains("commit 07"),
|
||||||
Contains("pick").Contains("commit 06"),
|
Contains("pick").Contains("commit 06"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 05").IsSelected(),
|
Contains("commit 05").IsSelected(),
|
||||||
Contains("commit 04"),
|
Contains("commit 04"),
|
||||||
).
|
).
|
||||||
SelectPreviousItem().
|
SelectPreviousItem().
|
||||||
@ -45,7 +45,7 @@ var MidRebaseRangeSelect = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("pick").Contains("commit 07").IsSelected(),
|
Contains("pick").Contains("commit 07").IsSelected(),
|
||||||
Contains("pick").Contains("commit 06").IsSelected(),
|
Contains("pick").Contains("commit 06").IsSelected(),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 05"),
|
Contains("commit 05"),
|
||||||
Contains("commit 04"),
|
Contains("commit 04"),
|
||||||
).
|
).
|
||||||
Press(keys.Commits.MarkCommitAsFixup).
|
Press(keys.Commits.MarkCommitAsFixup).
|
||||||
@ -57,7 +57,7 @@ var MidRebaseRangeSelect = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("fixup").Contains("commit 07").IsSelected(),
|
Contains("fixup").Contains("commit 07").IsSelected(),
|
||||||
Contains("fixup").Contains("commit 06").IsSelected(),
|
Contains("fixup").Contains("commit 06").IsSelected(),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 05"),
|
Contains("commit 05"),
|
||||||
Contains("commit 04"),
|
Contains("commit 04"),
|
||||||
).
|
).
|
||||||
Press(keys.Commits.PickCommit).
|
Press(keys.Commits.PickCommit).
|
||||||
@ -69,7 +69,7 @@ var MidRebaseRangeSelect = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("pick").Contains("commit 07").IsSelected(),
|
Contains("pick").Contains("commit 07").IsSelected(),
|
||||||
Contains("pick").Contains("commit 06").IsSelected(),
|
Contains("pick").Contains("commit 06").IsSelected(),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 05"),
|
Contains("commit 05"),
|
||||||
Contains("commit 04"),
|
Contains("commit 04"),
|
||||||
).
|
).
|
||||||
Press(keys.Universal.Edit).
|
Press(keys.Universal.Edit).
|
||||||
@ -81,7 +81,7 @@ var MidRebaseRangeSelect = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("edit").Contains("commit 07").IsSelected(),
|
Contains("edit").Contains("commit 07").IsSelected(),
|
||||||
Contains("edit").Contains("commit 06").IsSelected(),
|
Contains("edit").Contains("commit 06").IsSelected(),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 05"),
|
Contains("commit 05"),
|
||||||
Contains("commit 04"),
|
Contains("commit 04"),
|
||||||
).
|
).
|
||||||
Press(keys.Commits.SquashDown).
|
Press(keys.Commits.SquashDown).
|
||||||
@ -93,7 +93,7 @@ var MidRebaseRangeSelect = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("squash").Contains("commit 07").IsSelected(),
|
Contains("squash").Contains("commit 07").IsSelected(),
|
||||||
Contains("squash").Contains("commit 06").IsSelected(),
|
Contains("squash").Contains("commit 06").IsSelected(),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 05"),
|
Contains("commit 05"),
|
||||||
Contains("commit 04"),
|
Contains("commit 04"),
|
||||||
).
|
).
|
||||||
Press(keys.Commits.MoveDownCommit).
|
Press(keys.Commits.MoveDownCommit).
|
||||||
@ -105,7 +105,7 @@ var MidRebaseRangeSelect = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("squash").Contains("commit 07").IsSelected(),
|
Contains("squash").Contains("commit 07").IsSelected(),
|
||||||
Contains("squash").Contains("commit 06").IsSelected(),
|
Contains("squash").Contains("commit 06").IsSelected(),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 05"),
|
Contains("commit 05"),
|
||||||
Contains("commit 04"),
|
Contains("commit 04"),
|
||||||
).
|
).
|
||||||
Tap(func() {
|
Tap(func() {
|
||||||
@ -120,7 +120,7 @@ var MidRebaseRangeSelect = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("squash").Contains("commit 06").IsSelected(),
|
Contains("squash").Contains("commit 06").IsSelected(),
|
||||||
Contains("pick").Contains("commit 08"),
|
Contains("pick").Contains("commit 08"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 05"),
|
Contains("commit 05"),
|
||||||
Contains("commit 04"),
|
Contains("commit 04"),
|
||||||
).
|
).
|
||||||
Press(keys.Commits.MoveUpCommit).
|
Press(keys.Commits.MoveUpCommit).
|
||||||
@ -132,7 +132,7 @@ var MidRebaseRangeSelect = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("pick").Contains("commit 09"),
|
Contains("pick").Contains("commit 09"),
|
||||||
Contains("pick").Contains("commit 08"),
|
Contains("pick").Contains("commit 08"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 05"),
|
Contains("commit 05"),
|
||||||
Contains("commit 04"),
|
Contains("commit 04"),
|
||||||
).
|
).
|
||||||
Press(keys.Commits.MoveUpCommit).
|
Press(keys.Commits.MoveUpCommit).
|
||||||
@ -144,7 +144,7 @@ var MidRebaseRangeSelect = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("pick").Contains("commit 09"),
|
Contains("pick").Contains("commit 09"),
|
||||||
Contains("pick").Contains("commit 08"),
|
Contains("pick").Contains("commit 08"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 05"),
|
Contains("commit 05"),
|
||||||
Contains("commit 04"),
|
Contains("commit 04"),
|
||||||
).
|
).
|
||||||
Press(keys.Commits.MoveUpCommit).
|
Press(keys.Commits.MoveUpCommit).
|
||||||
@ -159,7 +159,7 @@ var MidRebaseRangeSelect = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("pick").Contains("commit 09"),
|
Contains("pick").Contains("commit 09"),
|
||||||
Contains("pick").Contains("commit 08"),
|
Contains("pick").Contains("commit 08"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 05"),
|
Contains("commit 05"),
|
||||||
Contains("commit 04"),
|
Contains("commit 04"),
|
||||||
).
|
).
|
||||||
// Verify we can't perform an action on a range that includes both
|
// Verify we can't perform an action on a range that includes both
|
||||||
@ -174,7 +174,7 @@ var MidRebaseRangeSelect = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("pick").Contains("commit 09"),
|
Contains("pick").Contains("commit 09"),
|
||||||
Contains("pick").Contains("commit 08").IsSelected(),
|
Contains("pick").Contains("commit 08").IsSelected(),
|
||||||
Contains("--- Commits ---").IsSelected(),
|
Contains("--- Commits ---").IsSelected(),
|
||||||
Contains("<-- YOU ARE HERE --- commit 05").IsSelected(),
|
Contains("commit 05").IsSelected(),
|
||||||
Contains("commit 04"),
|
Contains("commit 04"),
|
||||||
).
|
).
|
||||||
Press(keys.Commits.MarkCommitAsFixup).
|
Press(keys.Commits.MarkCommitAsFixup).
|
||||||
@ -189,7 +189,7 @@ var MidRebaseRangeSelect = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("pick").Contains("commit 09"),
|
Contains("pick").Contains("commit 09"),
|
||||||
Contains("pick").Contains("commit 08").IsSelected(),
|
Contains("pick").Contains("commit 08").IsSelected(),
|
||||||
Contains("--- Commits ---").IsSelected(),
|
Contains("--- Commits ---").IsSelected(),
|
||||||
Contains("<-- YOU ARE HERE --- commit 05").IsSelected(),
|
Contains("commit 05").IsSelected(),
|
||||||
Contains("commit 04"),
|
Contains("commit 04"),
|
||||||
).
|
).
|
||||||
// continue the rebase
|
// continue the rebase
|
||||||
|
@ -30,7 +30,7 @@ var MoveInRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("commit 03"),
|
Contains("commit 03"),
|
||||||
Contains("commit 02"),
|
Contains("commit 02"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("YOU ARE HERE").Contains("commit 01").IsSelected(),
|
Contains("commit 01").IsSelected(),
|
||||||
).
|
).
|
||||||
SelectPreviousItem().
|
SelectPreviousItem().
|
||||||
Press(keys.Commits.MoveUpCommit).
|
Press(keys.Commits.MoveUpCommit).
|
||||||
@ -40,7 +40,7 @@ var MoveInRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("commit 02").IsSelected(),
|
Contains("commit 02").IsSelected(),
|
||||||
Contains("commit 03"),
|
Contains("commit 03"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("YOU ARE HERE").Contains("commit 01"),
|
Contains("commit 01"),
|
||||||
).
|
).
|
||||||
Press(keys.Commits.MoveUpCommit).
|
Press(keys.Commits.MoveUpCommit).
|
||||||
Lines(
|
Lines(
|
||||||
@ -49,7 +49,7 @@ var MoveInRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("commit 04"),
|
Contains("commit 04"),
|
||||||
Contains("commit 03"),
|
Contains("commit 03"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("YOU ARE HERE").Contains("commit 01"),
|
Contains("commit 01"),
|
||||||
).
|
).
|
||||||
// assert we can't move past the top
|
// assert we can't move past the top
|
||||||
Press(keys.Commits.MoveUpCommit).
|
Press(keys.Commits.MoveUpCommit).
|
||||||
@ -62,7 +62,7 @@ var MoveInRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("commit 04"),
|
Contains("commit 04"),
|
||||||
Contains("commit 03"),
|
Contains("commit 03"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("YOU ARE HERE").Contains("commit 01"),
|
Contains("commit 01"),
|
||||||
).
|
).
|
||||||
Press(keys.Commits.MoveDownCommit).
|
Press(keys.Commits.MoveDownCommit).
|
||||||
Lines(
|
Lines(
|
||||||
@ -71,7 +71,7 @@ var MoveInRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("commit 02").IsSelected(),
|
Contains("commit 02").IsSelected(),
|
||||||
Contains("commit 03"),
|
Contains("commit 03"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("YOU ARE HERE").Contains("commit 01"),
|
Contains("commit 01"),
|
||||||
).
|
).
|
||||||
Press(keys.Commits.MoveDownCommit).
|
Press(keys.Commits.MoveDownCommit).
|
||||||
Lines(
|
Lines(
|
||||||
@ -80,7 +80,7 @@ var MoveInRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("commit 03"),
|
Contains("commit 03"),
|
||||||
Contains("commit 02").IsSelected(),
|
Contains("commit 02").IsSelected(),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("YOU ARE HERE").Contains("commit 01"),
|
Contains("commit 01"),
|
||||||
).
|
).
|
||||||
// assert we can't move past the bottom
|
// assert we can't move past the bottom
|
||||||
Press(keys.Commits.MoveDownCommit).
|
Press(keys.Commits.MoveDownCommit).
|
||||||
@ -93,7 +93,7 @@ var MoveInRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("commit 03"),
|
Contains("commit 03"),
|
||||||
Contains("commit 02").IsSelected(),
|
Contains("commit 02").IsSelected(),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("YOU ARE HERE").Contains("commit 01"),
|
Contains("commit 01"),
|
||||||
).
|
).
|
||||||
// move it back up one so that we land in a different order than we started with
|
// move it back up one so that we land in a different order than we started with
|
||||||
Press(keys.Commits.MoveUpCommit).
|
Press(keys.Commits.MoveUpCommit).
|
||||||
@ -103,7 +103,7 @@ var MoveInRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("commit 02").IsSelected(),
|
Contains("commit 02").IsSelected(),
|
||||||
Contains("commit 03"),
|
Contains("commit 03"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("YOU ARE HERE").Contains("commit 01"),
|
Contains("commit 01"),
|
||||||
).
|
).
|
||||||
Tap(func() {
|
Tap(func() {
|
||||||
t.Common().ContinueRebase()
|
t.Common().ContinueRebase()
|
||||||
@ -112,7 +112,7 @@ var MoveInRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("commit 04"),
|
Contains("commit 04"),
|
||||||
Contains("commit 02").IsSelected(),
|
Contains("commit 02").IsSelected(),
|
||||||
Contains("commit 03"),
|
Contains("commit 03"),
|
||||||
DoesNotContain("YOU ARE HERE").Contains("commit 01"),
|
Contains("commit 01"),
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -34,7 +34,7 @@ var MoveUpdateRefTodo = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("pick").Contains("CI commit 03"),
|
Contains("pick").Contains("CI commit 03"),
|
||||||
Contains("pick").Contains("CI commit 02"),
|
Contains("pick").Contains("CI commit 02"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("CI ◯ <-- YOU ARE HERE --- commit 01"),
|
Contains("CI ◯ commit 01"),
|
||||||
).
|
).
|
||||||
NavigateToLine(Contains("update-ref")).
|
NavigateToLine(Contains("update-ref")).
|
||||||
Press(keys.Commits.MoveUpCommit).
|
Press(keys.Commits.MoveUpCommit).
|
||||||
@ -48,7 +48,7 @@ var MoveUpdateRefTodo = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("pick").Contains("CI commit 03"),
|
Contains("pick").Contains("CI commit 03"),
|
||||||
Contains("pick").Contains("CI commit 02"),
|
Contains("pick").Contains("CI commit 02"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("CI ◯ <-- YOU ARE HERE --- commit 01"),
|
Contains("CI ◯ commit 01"),
|
||||||
).
|
).
|
||||||
Tap(func() {
|
Tap(func() {
|
||||||
t.Common().ContinueRebase()
|
t.Common().ContinueRebase()
|
||||||
|
@ -30,7 +30,7 @@ var PickRescheduled = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("pick").Contains("three"),
|
Contains("pick").Contains("three"),
|
||||||
Contains("pick").Contains("two"),
|
Contains("pick").Contains("two"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- one").IsSelected(),
|
Contains("one").IsSelected(),
|
||||||
).
|
).
|
||||||
Tap(func() {
|
Tap(func() {
|
||||||
t.Shell().CreateFile("file3", "other content\n")
|
t.Shell().CreateFile("file3", "other content\n")
|
||||||
@ -44,7 +44,7 @@ var PickRescheduled = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains("pick").Contains("three"),
|
Contains("pick").Contains("three"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- two"),
|
Contains("two"),
|
||||||
Contains("one"),
|
Contains("one"),
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
@ -77,7 +77,7 @@ var QuickStart = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("feature-branch two").IsSelected(),
|
Contains("feature-branch two").IsSelected(),
|
||||||
Contains("feature-branch one"),
|
Contains("feature-branch one"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("last main commit").Contains("YOU ARE HERE"),
|
Contains("last main commit"),
|
||||||
Contains("initial commit"),
|
Contains("initial commit"),
|
||||||
).
|
).
|
||||||
// Try again, verify we fail because we're already rebasing
|
// Try again, verify we fail because we're already rebasing
|
||||||
@ -109,7 +109,7 @@ var QuickStart = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains("branch-with-merge three").IsSelected(),
|
Contains("branch-with-merge three").IsSelected(),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("Merge branch 'branch-to-merge'").Contains("YOU ARE HERE"),
|
Contains("Merge branch 'branch-to-merge'"),
|
||||||
Contains("branch-to-merge two"),
|
Contains("branch-to-merge two"),
|
||||||
Contains("branch-to-merge one"),
|
Contains("branch-to-merge one"),
|
||||||
Contains("branch-with-merge two"),
|
Contains("branch-with-merge two"),
|
||||||
|
@ -48,7 +48,7 @@ var QuickStartKeepSelection = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("pick").Contains("CI commit 03"),
|
Contains("pick").Contains("CI commit 03"),
|
||||||
Contains("CI commit 02").IsSelected(),
|
Contains("CI commit 02").IsSelected(),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("CI <-- YOU ARE HERE --- commit 01"),
|
Contains("CI commit 01"),
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -53,7 +53,7 @@ var QuickStartKeepSelectionRange = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("CI commit 03").IsSelected(),
|
Contains("CI commit 03").IsSelected(),
|
||||||
Contains("CI commit 02").IsSelected(),
|
Contains("CI commit 02").IsSelected(),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("CI <-- YOU ARE HERE --- commit 01"),
|
Contains("CI commit 01"),
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -40,7 +40,7 @@ var Rebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
MatchesRegexp("pick.*second commit to edit"),
|
MatchesRegexp("pick.*second commit to edit"),
|
||||||
MatchesRegexp("pick.*commit to squash"),
|
MatchesRegexp("pick.*commit to squash"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
MatchesRegexp("YOU ARE HERE.*first commit to edit").IsSelected(),
|
Contains("first commit to edit").IsSelected(),
|
||||||
Contains("initial commit"),
|
Contains("initial commit"),
|
||||||
).
|
).
|
||||||
SelectPreviousItem().
|
SelectPreviousItem().
|
||||||
@ -52,7 +52,7 @@ var Rebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
MatchesRegexp("pick.*second commit to edit"),
|
MatchesRegexp("pick.*second commit to edit"),
|
||||||
MatchesRegexp("squash.*commit to squash").IsSelected(),
|
MatchesRegexp("squash.*commit to squash").IsSelected(),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
MatchesRegexp("YOU ARE HERE.*first commit to edit"),
|
Contains("first commit to edit"),
|
||||||
Contains("initial commit"),
|
Contains("initial commit"),
|
||||||
).
|
).
|
||||||
SelectPreviousItem().
|
SelectPreviousItem().
|
||||||
@ -64,7 +64,7 @@ var Rebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
MatchesRegexp("edit.*second commit to edit").IsSelected(),
|
MatchesRegexp("edit.*second commit to edit").IsSelected(),
|
||||||
MatchesRegexp("squash.*commit to squash"),
|
MatchesRegexp("squash.*commit to squash"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
MatchesRegexp("YOU ARE HERE.*first commit to edit"),
|
Contains("first commit to edit"),
|
||||||
Contains("initial commit"),
|
Contains("initial commit"),
|
||||||
).
|
).
|
||||||
SelectPreviousItem().
|
SelectPreviousItem().
|
||||||
@ -76,7 +76,7 @@ var Rebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
MatchesRegexp("edit.*second commit to edit"),
|
MatchesRegexp("edit.*second commit to edit"),
|
||||||
MatchesRegexp("squash.*commit to squash"),
|
MatchesRegexp("squash.*commit to squash"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
MatchesRegexp("YOU ARE HERE.*first commit to edit"),
|
Contains("first commit to edit"),
|
||||||
Contains("initial commit"),
|
Contains("initial commit"),
|
||||||
).
|
).
|
||||||
SelectPreviousItem().
|
SelectPreviousItem().
|
||||||
@ -88,7 +88,7 @@ var Rebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
MatchesRegexp("edit.*second commit to edit"),
|
MatchesRegexp("edit.*second commit to edit"),
|
||||||
MatchesRegexp("squash.*commit to squash"),
|
MatchesRegexp("squash.*commit to squash"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
MatchesRegexp("YOU ARE HERE.*first commit to edit"),
|
Contains("first commit to edit"),
|
||||||
Contains("initial commit"),
|
Contains("initial commit"),
|
||||||
).
|
).
|
||||||
Tap(func() {
|
Tap(func() {
|
||||||
@ -99,7 +99,7 @@ var Rebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
MatchesRegexp("fixup.*commit to fixup").IsSelected(),
|
MatchesRegexp("fixup.*commit to fixup").IsSelected(),
|
||||||
MatchesRegexp("drop.*commit to drop"),
|
MatchesRegexp("drop.*commit to drop"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
MatchesRegexp("YOU ARE HERE.*second commit to edit"),
|
Contains("second commit to edit"),
|
||||||
MatchesRegexp("first commit to edit"),
|
MatchesRegexp("first commit to edit"),
|
||||||
Contains("initial commit"),
|
Contains("initial commit"),
|
||||||
).
|
).
|
||||||
|
@ -33,7 +33,7 @@ var RevertDuringRebaseWhenStoppedOnEdit = NewIntegrationTest(NewIntegrationTestA
|
|||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains("pick").Contains("commit 04"),
|
Contains("pick").Contains("commit 04"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 03").IsSelected(),
|
Contains("commit 03").IsSelected(),
|
||||||
Contains("commit 02"),
|
Contains("commit 02"),
|
||||||
Contains("commit 01"),
|
Contains("commit 01"),
|
||||||
Contains("master commit 2"),
|
Contains("master commit 2"),
|
||||||
@ -52,7 +52,7 @@ var RevertDuringRebaseWhenStoppedOnEdit = NewIntegrationTest(NewIntegrationTestA
|
|||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains("pick").Contains("commit 04"),
|
Contains("pick").Contains("commit 04"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains(`<-- YOU ARE HERE --- Revert "commit 01"`),
|
Contains(`Revert "commit 01"`),
|
||||||
Contains(`Revert "commit 02"`),
|
Contains(`Revert "commit 02"`),
|
||||||
Contains("commit 03"),
|
Contains("commit 03"),
|
||||||
Contains("commit 02").IsSelected(),
|
Contains("commit 02").IsSelected(),
|
||||||
|
@ -87,7 +87,7 @@ var RevertMultipleCommitsInInteractiveRebase = NewIntegrationTest(NewIntegration
|
|||||||
Contains("pick").Contains("CI unrelated change 3"),
|
Contains("pick").Contains("CI unrelated change 3"),
|
||||||
Contains("pick").Contains("CI unrelated change 2"),
|
Contains("pick").Contains("CI unrelated change 2"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains(`CI ◯ <-- YOU ARE HERE --- Revert "unrelated change 1"`),
|
Contains(`CI ◯ Revert "unrelated change 1"`),
|
||||||
Contains(`CI ◯ Revert "add first line"`),
|
Contains(`CI ◯ Revert "add first line"`),
|
||||||
Contains("CI ◯ add second line"),
|
Contains("CI ◯ add second line"),
|
||||||
Contains("CI ◯ add first line"),
|
Contains("CI ◯ add first line"),
|
||||||
|
@ -88,7 +88,7 @@ var RevertSingleCommitInInteractiveRebase = NewIntegrationTest(NewIntegrationTes
|
|||||||
Contains("pick").Contains("CI unrelated change 2"),
|
Contains("pick").Contains("CI unrelated change 2"),
|
||||||
Contains("pick").Contains("CI unrelated change 1"),
|
Contains("pick").Contains("CI unrelated change 1"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains(`CI ◯ <-- YOU ARE HERE --- Revert "add first line"`),
|
Contains(`CI ◯ Revert "add first line"`),
|
||||||
Contains("CI ◯ add second line"),
|
Contains("CI ◯ add second line"),
|
||||||
Contains("CI ◯ add first line"),
|
Contains("CI ◯ add first line"),
|
||||||
Contains("CI ◯ add empty file"),
|
Contains("CI ◯ add empty file"),
|
||||||
|
@ -36,7 +36,7 @@ var RewordCommitWithEditorAndFail = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains("commit 03"),
|
Contains("commit 03"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 02").IsSelected(),
|
Contains("commit 02").IsSelected(),
|
||||||
Contains("commit 01"),
|
Contains("commit 01"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ var RewordYouAreHereCommit = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains("commit 03"),
|
Contains("commit 03"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 02").IsSelected(),
|
Contains("commit 02").IsSelected(),
|
||||||
Contains("commit 01"),
|
Contains("commit 01"),
|
||||||
).
|
).
|
||||||
Press(keys.Commits.RenameCommit).
|
Press(keys.Commits.RenameCommit).
|
||||||
@ -44,7 +44,7 @@ var RewordYouAreHereCommit = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains("commit 03"),
|
Contains("commit 03"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- renamed 02").IsSelected(),
|
Contains("renamed 02").IsSelected(),
|
||||||
Contains("commit 01"),
|
Contains("commit 01"),
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
@ -30,7 +30,7 @@ var RewordYouAreHereCommitWithEditor = NewIntegrationTest(NewIntegrationTestArgs
|
|||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains("commit 03"),
|
Contains("commit 03"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 02").IsSelected(),
|
Contains("commit 02").IsSelected(),
|
||||||
Contains("commit 01"),
|
Contains("commit 01"),
|
||||||
).
|
).
|
||||||
Press(keys.Commits.RenameCommitWithEditor).
|
Press(keys.Commits.RenameCommitWithEditor).
|
||||||
@ -44,7 +44,7 @@ var RewordYouAreHereCommitWithEditor = NewIntegrationTest(NewIntegrationTestArgs
|
|||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains("commit 03"),
|
Contains("commit 03"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- renamed 02").IsSelected(),
|
Contains("renamed 02").IsSelected(),
|
||||||
Contains("commit 01"),
|
Contains("commit 01"),
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
@ -35,7 +35,7 @@ var ShowExecTodos = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("exec").Contains("false"),
|
Contains("exec").Contains("false"),
|
||||||
Contains("pick").Contains("CI commit 03"),
|
Contains("pick").Contains("CI commit 03"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("CI ◯ <-- YOU ARE HERE --- commit 02"),
|
Contains("CI ◯ commit 02"),
|
||||||
Contains("CI ◯ commit 01"),
|
Contains("CI ◯ commit 01"),
|
||||||
).
|
).
|
||||||
Tap(func() {
|
Tap(func() {
|
||||||
@ -45,7 +45,7 @@ var ShowExecTodos = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Lines(
|
Lines(
|
||||||
Contains("--- Pending rebase todos ---"),
|
Contains("--- Pending rebase todos ---"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("CI ◯ <-- YOU ARE HERE --- commit 03"),
|
Contains("CI ◯ commit 03"),
|
||||||
Contains("CI ◯ commit 02"),
|
Contains("CI ◯ commit 02"),
|
||||||
Contains("CI ◯ commit 01"),
|
Contains("CI ◯ commit 01"),
|
||||||
).
|
).
|
||||||
|
@ -33,7 +33,7 @@ var SwapInRebaseWithConflict = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("commit three"),
|
Contains("commit three"),
|
||||||
Contains("commit two"),
|
Contains("commit two"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("YOU ARE HERE").Contains("commit one").IsSelected(),
|
Contains("commit one").IsSelected(),
|
||||||
).
|
).
|
||||||
SelectPreviousItem().
|
SelectPreviousItem().
|
||||||
Press(keys.Commits.MoveUpCommit).
|
Press(keys.Commits.MoveUpCommit).
|
||||||
@ -42,7 +42,7 @@ var SwapInRebaseWithConflict = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("commit two").IsSelected(),
|
Contains("commit two").IsSelected(),
|
||||||
Contains("commit three"),
|
Contains("commit three"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("YOU ARE HERE").Contains("commit one"),
|
Contains("commit one"),
|
||||||
).
|
).
|
||||||
Tap(func() {
|
Tap(func() {
|
||||||
t.Common().ContinueRebase()
|
t.Common().ContinueRebase()
|
||||||
|
@ -33,7 +33,7 @@ var SwapInRebaseWithConflictAndEdit = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("commit three"),
|
Contains("commit three"),
|
||||||
Contains("commit two"),
|
Contains("commit two"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit one").IsSelected(),
|
Contains("commit one").IsSelected(),
|
||||||
).
|
).
|
||||||
NavigateToLine(Contains("commit two")).
|
NavigateToLine(Contains("commit two")).
|
||||||
Press(keys.Commits.MoveUpCommit).
|
Press(keys.Commits.MoveUpCommit).
|
||||||
@ -42,7 +42,7 @@ var SwapInRebaseWithConflictAndEdit = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("commit two").IsSelected(),
|
Contains("commit two").IsSelected(),
|
||||||
Contains("commit three"),
|
Contains("commit three"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("<-- YOU ARE HERE --- commit one"),
|
Contains("commit one"),
|
||||||
).
|
).
|
||||||
NavigateToLine(Contains("commit three")).
|
NavigateToLine(Contains("commit three")).
|
||||||
Press(keys.Universal.Edit).
|
Press(keys.Universal.Edit).
|
||||||
|
@ -33,7 +33,7 @@ var ViewFilesOfTodoEntries = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Contains("update-ref").Contains("branch1"),
|
Contains("update-ref").Contains("branch1"),
|
||||||
Contains("pick").Contains("CI commit 02"),
|
Contains("pick").Contains("CI commit 02"),
|
||||||
Contains("--- Commits ---"),
|
Contains("--- Commits ---"),
|
||||||
Contains("CI <-- YOU ARE HERE --- commit 01"),
|
Contains("CI commit 01"),
|
||||||
).
|
).
|
||||||
Press(keys.Universal.GoInto)
|
Press(keys.Universal.GoInto)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user