From 99e8607a8ff6800683aa10875b0180d225e1a4fd Mon Sep 17 00:00:00 2001 From: John Mutuma Date: Thu, 21 Nov 2024 15:24:41 +0000 Subject: [PATCH] Update the test steps Navigating to select the current worktree's branch Refresh files to ensure updated state --- ...ard_worktree_branch_should_not_pollute_current_worktree.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/integration/tests/worktree/fast_forward_worktree_branch_should_not_pollute_current_worktree.go b/pkg/integration/tests/worktree/fast_forward_worktree_branch_should_not_pollute_current_worktree.go index 847dec9ecb5..cbe1ed94394 100644 --- a/pkg/integration/tests/worktree/fast_forward_worktree_branch_should_not_pollute_current_worktree.go +++ b/pkg/integration/tests/worktree/fast_forward_worktree_branch_should_not_pollute_current_worktree.go @@ -47,11 +47,13 @@ var FastForwardWorktreeBranchShouldNotPolluteCurrentWorktree = NewIntegrationTes Lines( Contains("mybranch").Contains("✓"), Contains("newbranch (worktree)").Contains("✓").IsSelected(), - ) + ). + NavigateToLine(Contains("mybranch")) // check the current worktree that it has no lines in the File changes pane t.Views().Files(). Focus(). + Press(keys.Files.RefreshFiles). LineCount(EqualsInt(0)) }, })