status

package
v0.42.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2024 License: MIT Imports: 2 Imported by: 0

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"))
	},
})

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL