summaryrefslogtreecommitdiffstats
path: root/pkg/integration/tests/branch/unset_upstream.go
diff options
context:
space:
mode:
authorLuka Markušić <markusicluka@gmail.com>2023-11-04 17:48:31 +0100
committerLuka Markušić <markusicluka@gmail.com>2023-11-04 23:46:27 +0100
commitd145e818d04f5788ca29a5bb8d84f1ecad9c8f5b (patch)
tree5a3a7af1c22fbe30accfe27b536405eca3746d3a /pkg/integration/tests/branch/unset_upstream.go
parente0fc8fe25b9298b630b9de4558fbd698c8b33b6a (diff)
Fix unsetting upstream when it doesn't exist
Diffstat (limited to 'pkg/integration/tests/branch/unset_upstream.go')
-rw-r--r--pkg/integration/tests/branch/unset_upstream.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/pkg/integration/tests/branch/unset_upstream.go b/pkg/integration/tests/branch/unset_upstream.go
index 1d4746fd3..39454d2ac 100644
--- a/pkg/integration/tests/branch/unset_upstream.go
+++ b/pkg/integration/tests/branch/unset_upstream.go
@@ -51,13 +51,9 @@ var UnsetUpstream = NewIntegrationTest(NewIntegrationTestArgs{
Title(Equals("Upstream options")).
Select(Contains("Unset upstream of selected branch")).
Confirm()
- t.ExpectPopup().Alert().
- Title(Equals("Error")).
- Content(Equals("The selected branch has no upstream (or the upstream is not stored locally)")).
- Cancel()
}).
SelectedLines(
- Contains("branch_to_remove").Contains("origin branch_to_remove").Contains("upstream gone"),
+ Contains("branch_to_remove").DoesNotContain("origin branch_to_remove").DoesNotContain("upstream gone"),
)
},
})