Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ClickRepoNameToOpenReposMenu = NewIntegrationTest(NewIntegrationTestArgs{ Description: "Click on the repo name in the status side panel to open the recent repositories menu", ExtraCmdArgs: []string{}, Skip: false, SetupConfig: func(config *config.AppConfig) {}, SetupRepo: func(shell *Shell) {}, Run: func(t *TestDriver, keys config.KeybindingConfig) { t.Views().Status().Click(1, 0) t.ExpectPopup().Menu().Title(Equals("Recent repositories")) }, })
View Source
var ClickToFocus = NewIntegrationTest(NewIntegrationTestArgs{ Description: "Click in the status side panel to activate it", ExtraCmdArgs: []string{}, Skip: false, SetupConfig: func(config *config.AppConfig) {}, SetupRepo: func(shell *Shell) {}, Run: func(t *TestDriver, keys config.KeybindingConfig) { t.Views().Files().Focus() t.Views().Main().Lines( Contains("No changed files"), ) t.Views().Status().Click(0, 0) t.Views().Status().IsFocused() t.Views().Main().ContainsLines( Contains(` _`), Contains(` | | (_) |`), Contains(` | | __ _ _____ _ __ _ _| |_`), Contains(" | |/ _` |_ / | | |/ _` | | __|"), Contains(` | | (_| |/ /| |_| | (_| | | |_`), Contains(` |_|\__,_/___|\__, |\__, |_|\__|`), Contains(` __/ | __/ |`), Contains(` |___/ |___/`), Contains(``), Contains(`Copyright `), ) }, })
View Source
var ClickWorkingTreeStateToOpenRebaseOptionsMenu = NewIntegrationTest(NewIntegrationTestArgs{ Description: "Click on the working tree state in the status side panel to open the rebase options menu", ExtraCmdArgs: []string{}, Skip: false, SetupConfig: func(config *config.AppConfig) {}, SetupRepo: func(shell *Shell) { shell.CreateNCommits(2) }, Run: func(t *TestDriver, keys config.KeybindingConfig) { t.Views().Commits(). Focus(). Press(keys.Universal.Edit) t.Views().Status(). Content(Contains("(rebasing) repo")). Click(1, 0) t.ExpectPopup().Menu().Title(Equals("Rebase options")) }, })
View Source
var LogCmd = NewIntegrationTest(NewIntegrationTestArgs{ Description: "Cycle between two different log commands in the Status view", ExtraCmdArgs: []string{}, Skip: false, SetupConfig: func(config *config.AppConfig) { config.GetUserConfig().Git.AllBranchesLogCmd = `echo "view1"` config.GetUserConfig().Git.AllBranchesLogCmds = []string{`echo "view2"`} }, SetupRepo: func(shell *Shell) {}, Run: func(t *TestDriver, keys config.KeybindingConfig) { t.Views().Status(). Focus(). Press(keys.Status.AllBranchesLogGraph) t.Views().Main().Content(Contains("view1")) t.Views().Status(). Focus(). Press(keys.Status.AllBranchesLogGraph) t.Views().Main().Content(Contains("view2").DoesNotContain("view1")) t.Views().Status(). Focus(). Press(keys.Status.AllBranchesLogGraph) t.Views().Main().Content(Contains("view1").DoesNotContain("view2")) }, })
View Source
var ShowDivergenceFromBaseBranch = NewIntegrationTest(NewIntegrationTestArgs{ Description: "Show divergence from base branch in the status panel", ExtraCmdArgs: []string{}, Skip: false, SetupConfig: func(config *config.AppConfig) { config.GetUserConfig().Gui.ShowDivergenceFromBaseBranch = "arrowAndNumber" }, SetupRepo: func(shell *Shell) { shell.CreateNCommits(2) shell.CloneIntoRemote("origin") shell.NewBranch("feature") shell.HardReset("HEAD^") }, Run: func(t *TestDriver, keys config.KeybindingConfig) { t.GlobalPress(keys.Universal.NextBlock) t.Views().Status(). Content(Equals("↓1 repo → feature")) }, })
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.