remote

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddForkRemote = NewIntegrationTest(NewIntegrationTestArgs{
	Description:  "Use the 'Add fork remote' command to add a fork remote and check out a branch from it",
	ExtraCmdArgs: []string{},
	Skip:         false,
	SetupConfig:  func(config *config.AppConfig) {},
	SetupRepo: func(shell *Shell) {
		shell.EmptyCommit("commit")
		shell.CloneIntoRemote("origin")
		shell.NewBranch("feature")
		shell.Clone("fork")
		shell.Checkout("master")
		shell.RemoveBranch("feature")
	},
	Run: func(t *TestDriver, keys config.KeybindingConfig) {
		t.Views().Remotes().
			Focus().
			Lines(
				Contains("origin").IsSelected(),
			).
			Press(keys.Branches.AddForkRemote)

		t.ExpectPopup().Prompt().
			Title(Equals("Fork owner (username/org). Use username:branch to check out a branch")).
			Type("fork:feature").
			Confirm()

		t.Views().Remotes().
			Lines(
				Contains("origin"),
				Contains("fork").IsSelected(),
			)

		t.Views().Branches().
			IsFocused().
			Lines(
				Contains("feature ✓"),
				Contains("master"),
			)
	},
})

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