From a9e3b9e2cfdaf4eed43b255a2d65c76792d3c3b8 Mon Sep 17 00:00:00 2001 From: Francis Hilaire Date: Thu, 26 Sep 2024 17:42:36 +0200 Subject: [PATCH] Move login to the scenario to get the driver started --- .../managing_payment_method.feature | 7 ++++--- features/admin/stripe_js/managing_payment_method.feature | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/features/admin/stripe_checkout_session/managing_payment_method.feature b/features/admin/stripe_checkout_session/managing_payment_method.feature index d1552b8..ff5cfc4 100644 --- a/features/admin/stripe_checkout_session/managing_payment_method.feature +++ b/features/admin/stripe_checkout_session/managing_payment_method.feature @@ -6,11 +6,11 @@ Feature: Adding a new Stripe Checkout Session payment method Background: Given the store operates on a single channel in "United States" - And I am logged in as an administrator @ui @javascript Scenario: Adding a new stripe payment method using authorize - Given I want to create a new Stripe Checkout Session payment method + Given I am logged in as an administrator + And I want to create a new Stripe Checkout Session payment method When I name it "Stripe Checkout Session" in "English (United States)" And I specify its code as "stripe_sca_test" And I configure it with test stripe gateway data "TEST", "TEST" @@ -23,7 +23,8 @@ Feature: Adding a new Stripe Checkout Session payment method @ui @javascript Scenario: Adding a new stripe payment method not using authorize - Given I want to create a new Stripe Checkout Session payment method + Given I am logged in as an administrator + And I want to create a new Stripe Checkout Session payment method When I name it "Stripe Checkout Session" in "English (United States)" And I specify its code as "stripe_sca_test" And I configure it with test stripe gateway data "TEST", "TEST" diff --git a/features/admin/stripe_js/managing_payment_method.feature b/features/admin/stripe_js/managing_payment_method.feature index 7ae29d8..b20d79a 100644 --- a/features/admin/stripe_js/managing_payment_method.feature +++ b/features/admin/stripe_js/managing_payment_method.feature @@ -6,11 +6,11 @@ Feature: Adding a new Stripe JS payment method Background: Given the store operates on a single channel in "United States" - And I am logged in as an administrator @ui @javascript Scenario: Adding a new stripe payment method using authorize - Given I want to create a new Stripe JS payment method + Given I am logged in as an administrator + And I want to create a new Stripe JS payment method When I name it "Stripe JS" in "English (United States)" And I specify its code as "stripe_sca_test" And I configure it with test stripe gateway data "TEST", "TEST" @@ -23,7 +23,8 @@ Feature: Adding a new Stripe JS payment method @ui @javascript Scenario: Adding a new stripe payment method not using authorize - Given I want to create a new Stripe JS payment method + Given I am logged in as an administrator + And I want to create a new Stripe JS payment method When I name it "Stripe JS" in "English (United States)" And I specify its code as "stripe_sca_test" And I configure it with test stripe gateway data "TEST", "TEST"