From 3422b1e21875461ecf76309df66b0f5b2cd929ba Mon Sep 17 00:00:00 2001 From: AzraelSec Date: Wed, 29 Mar 2023 15:45:06 +0200 Subject: [PATCH] test: update the UI to follow the new rebase type selection instead of confirm the previous popup --- pkg/integration/tests/branch/rebase.go | 6 +++--- pkg/integration/tests/branch/rebase_and_drop.go | 6 +++--- pkg/integration/tests/branch/rebase_does_not_autosquash.go | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pkg/integration/tests/branch/rebase.go b/pkg/integration/tests/branch/rebase.go index 07b9037a3..f2c0e3287 100644 --- a/pkg/integration/tests/branch/rebase.go +++ b/pkg/integration/tests/branch/rebase.go @@ -30,9 +30,9 @@ var Rebase = NewIntegrationTest(NewIntegrationTestArgs{ SelectNextItem(). Press(keys.Branches.RebaseBranch) - t.ExpectPopup().Confirmation(). - Title(Equals("Rebasing")). - Content(Contains("Are you sure you want to rebase 'first-change-branch' on top of 'second-change-branch'?")). + t.ExpectPopup().Menu(). + Title(Equals("Rebase 'first-change-branch' onto 'second-change-branch'")). + Select(Contains("Simple rebase")). Confirm() t.Common().AcknowledgeConflicts() diff --git a/pkg/integration/tests/branch/rebase_and_drop.go b/pkg/integration/tests/branch/rebase_and_drop.go index 298636c59..c1fc6ab2f 100644 --- a/pkg/integration/tests/branch/rebase_and_drop.go +++ b/pkg/integration/tests/branch/rebase_and_drop.go @@ -36,9 +36,9 @@ var RebaseAndDrop = NewIntegrationTest(NewIntegrationTestArgs{ SelectNextItem(). Press(keys.Branches.RebaseBranch) - t.ExpectPopup().Confirmation(). - Title(Equals("Rebasing")). - Content(Contains("Are you sure you want to rebase 'first-change-branch' on top of 'second-change-branch'?")). + t.ExpectPopup().Menu(). + Title(Equals("Rebase 'first-change-branch' onto 'second-change-branch'")). + Select(Contains("Simple rebase")). Confirm() t.Views().Information().Content(Contains("rebasing")) diff --git a/pkg/integration/tests/branch/rebase_does_not_autosquash.go b/pkg/integration/tests/branch/rebase_does_not_autosquash.go index 78c957a13..4465bc93b 100644 --- a/pkg/integration/tests/branch/rebase_does_not_autosquash.go +++ b/pkg/integration/tests/branch/rebase_does_not_autosquash.go @@ -39,9 +39,9 @@ var RebaseDoesNotAutosquash = NewIntegrationTest(NewIntegrationTestArgs{ SelectNextItem(). Press(keys.Branches.RebaseBranch) - t.ExpectPopup().Confirmation(). - Title(Equals("Rebasing")). - Content(Contains("Are you sure you want to rebase 'my-branch' on top of 'master'?")). + t.ExpectPopup().Menu(). + Title(Equals("Rebase 'my-branch' onto 'master'")). + Select(Contains("Simple rebase")). Confirm() t.Views().Commits().Lines(