package worktree import ( "github.com/jesseduffield/lazygit/pkg/config" . "github.com/jesseduffield/lazygit/pkg/integration/components" ) var WorktreeInsideRepo = NewIntegrationTest(NewIntegrationTestArgs{ Description: "A worktree that lives inside the repo's working tree is shown as a single item in the files panel", ExtraCmdArgs: []string{}, Skip: false, SetupConfig: func(config *config.AppConfig) { config.GetUserConfig().Gui.NerdFontsVersion = "3" }, SetupRepo: func(shell *Shell) { shell.NewBranch("mybranch") shell.CreateFileAndAdd("README.md", "hello world") shell.Commit("initial commit") shell.AddWorktree("mybranch", "nested-worktree", "newbranch") }, Run: func(t *TestDriver, keys config.KeybindingConfig) { t.Views().Files(). IsFocused(). Lines( Equals("?? 󰌹 nested-worktree").IsSelected(), ) }, })