Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CliArg = NewIntegrationTest(NewIntegrationTestArgs{ Description: "Filter commits by file path, using CLI arg", ExtraCmdArgs: []string{"-f=filterFile"}, Skip: false, SetupConfig: func(config *config.AppConfig) { }, SetupRepo: func(shell *Shell) { commonSetup(shell) }, Run: func(t *TestDriver, keys config.KeybindingConfig) { postFilterTest(t) }, })
View Source
var SelectFile = NewIntegrationTest(NewIntegrationTestArgs{ Description: "Filter commits by file path, by finding file in UI and filtering on it", ExtraCmdArgs: []string{}, Skip: false, SetupConfig: func(config *config.AppConfig) { }, SetupRepo: func(shell *Shell) { commonSetup(shell) }, Run: func(t *TestDriver, keys config.KeybindingConfig) { t.Views().Commits(). Focus(). Lines( Contains(`none of the two`).IsSelected(), Contains(`only filterFile`), Contains(`only otherFile`), Contains(`both files`), ). NavigateToLine(Contains(`only filterFile`)). PressEnter() t.Views().CommitFiles(). IsFocused(). Lines( Contains(`filterFile`).IsSelected(), ). Press(keys.Universal.FilteringMenu) t.ExpectPopup().Menu().Title(Equals("Filtering")).Select(Contains("Filter by 'filterFile'")).Confirm() postFilterTest(t) }, })
View Source
var TypeFile = NewIntegrationTest(NewIntegrationTestArgs{ Description: "Filter commits by file path, by finding file in UI and filtering on it", ExtraCmdArgs: []string{}, Skip: false, SetupConfig: func(config *config.AppConfig) { }, SetupRepo: func(shell *Shell) { commonSetup(shell) }, Run: func(t *TestDriver, keys config.KeybindingConfig) { t.Views().Files(). IsFocused(). Press(keys.Universal.FilteringMenu) t.ExpectPopup().Menu(). Title(Equals("Filtering")). Select(Contains("Enter path to filter by")). Confirm() t.ExpectPopup().Prompt(). Title(Equals("Enter path:")). Type("filterF"). SuggestionLines(Equals("filterFile")). ConfirmFirstSuggestion() postFilterTest(t) }, })
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.