...
Code Block | ||
---|---|---|
| ||
Feature: Allow Payment methods by DOP Background: DOP Restaurants Given I have accessed DOP Restaurants Page Scenario: As an user I want to activate a payment method and inactivate another one for a large amount of restaurants Given I select a biglarge ammountamount of the restaurants And I access the Payment method edit page And I activate a payment method And I inactivate another payment method When I click on save Then I should see the activated payment method And I inactivate another payment method method on Sanity for all the restaurants And I should see the inactivated payment method on Sanity for all the restaurants |
Scenario 12: As a user I should see the new active/inactive controls on the Cash limitation forms
Code Block | ||
---|---|---|
| ||
Feature: Allow Payment methods by DOP
Background: DOP Restaurants
Given I have accessed DOP Restaurants Page
Scenario: As a user I should see the new active/inactive controls on the Cash limitation forms
Given I select a restaurant
When I access the Payment method edit page
Then I should see the new active/inactive controls on the Cash limitation forms |
Scenario 13: As a user I should see the new active/inactive controls on the Cash limitation forms as null
Code Block | ||
---|---|---|
| ||
Feature: Allow Payment methods by DOP
Background: DOP Restaurants
Given I have accessed DOP Restaurants Page
Scenario: As a user I should see the new active/inactive controls on the Cash limitation forms as null
Given I already had a restaurant as null
When I access the Payment method edit page
Then I should see the new active/inactive controls on the Cash limitation forms as null |
Scenario 14: As a user I should see the new active/inactive controls on the Cash limitation forms as active
Code Block | ||
---|---|---|
| ||
Feature: Allow Payment methods by DOP
Background: DOP Restaurants
Given I have accessed DOP Restaurants Page
Scenario: As a user I should see the new active/inactive controls on the Cash limitation forms as active
Given I already had a restaurant as active
When I access the Payment method edit page
Then I should see the new active/inactive controls on the Cash limitation forms as active |
Scenario 15: As a user I should see the new active/inactive controls on the Cash limitation forms as inactive
Code Block | ||
---|---|---|
| ||
Feature: Allow Payment methods by DOP
Background: DOP Restaurants
Given I have accessed DOP Restaurants Page
Scenario: As a user I should see the new active/inactive controls on the Cash limitation forms as inactive
Given I already had a restaurant as inactive
When I access the Payment method edit page
Then I should see the new active/inactive controls on the Cash limitation forms as inactive |
Scenario 16: As a user I should be able to edit the cash limitation information
Code Block | ||
---|---|---|
| ||
Feature: Allow Payment methods by DOP
Background: DOP Restaurants
Given I have accessed DOP Restaurants Page
Scenario: As a user I should be able to edit the cash limitation information
Given I select a restaurant
And I access the Payment method edit page
And I change the cash limitation information
When I click on save
Then I should see the values regarding the cash limitation on the Sanity restaurant page. |
Sanity
Scenario 1: As a user, I should see a new section to visualize the active and inactive payment methods - null
Code Block | ||
---|---|---|
| ||
Feature: Allow Payment methods by DOP
Background: Sanity Restaurants
Given I have accessed Sanity Restaurants Page
Scenario: As a user, I should see a new section to visualize the active and inactive payment methods - null
Given I access a restaurant page that have the payment methods as null
When I click on the new section
Then I should see the payment methods as null
And I should not be able to edit these fields |
Scenario 2: As a user, I should see a new section to visualize the active and inactive payment methods - active
Code Block | ||
---|---|---|
| ||
Feature: Allow Payment methods by DOP
Background: Sanity Restaurants
Given I have accessed Sanity Restaurants Page
Scenario: As a user, I should see a new section to visualize the active and inactive payment methods - active
Given I access a restaurant page that have the payment methods as active
When I click on the new section
Then I should see the payment methods as active
And I should not be able to edit these fields |
Scenario 3: As a user, I should see a new section to visualize the active and inactive payment methods - inactive
Code Block | ||
---|---|---|
| ||
Feature: Allow Payment methods by DOP Background: Sanity Restaurants Given I have accessed Sanity Restaurants Page Scenario: As a user, I should see a new section to visualize the active and inactive payment methods - inactive Given I access a restaurant page that have the payment methods as inactive When I click on savethe new section Then I should see the activated payment methodmethods on Sanity for all the restaurantsas inactive And I should seenot thebe inactivatedable paymentto methodedit on Sanity for all the restaurantsthese fields |
Whitelabel
Scenario
...
1: As a user I do NOT want to see the payment methods that are null for a restaurant on WL
Code Block | ||
---|---|---|
| ||
Feature: Allow Payment methods by DOP Background: DOP Restaurants Given I have accessed DOP Restaurants Page Scenario: As an user I do NOT want to see the payment methods that are null for a restaurant on WL Given I have the follow payment methods as null for a restaurant |activate-payment-methods| |Cash | |Ticket Restaurant | |Sodexo | And I go to the WL and select the restaurant that has the payment methods as null When I go to the payment screen Then I should NOT see the payment methods available on the dropdown |activate-payment-methods| |Cash | |Ticket Restaurant | |Sodexo | |
Scenario
...
2: As a user I want to see the payment methods that are activated for a restaurant on WL
Code Block | ||
---|---|---|
| ||
Feature: Allow Payment methods by DOP Background: DOP Restaurants Given I have accessed DOP Restaurants Page Scenario: As an user I want to see the payment methods that are activated for a restaurant on WL Given I have the follow activated payment methods for a restaurant |activate-payment-methods| |Cash | |Ticket Restaurant | |Sodexo | And I go to the WL and select the restaurant that has the activated payment methods When I go to the payment screen Then I should see the activated payment methods available on the dropdown |activate-payment-methods| |Cash | |Ticket Restaurant | |Sodexo | |
Scenario
...
3: As a user I do NOT want to see the payment methods that are inactivated for a restaurant on WL
Code Block | ||
---|---|---|
| ||
Feature: Allow Payment methods by DOP Background: DOP Restaurants Given I have accessed DOP Restaurants Page Scenario: As an user I do NOT want to see the payment methods that are inactivated for a restaurant on WL Given I have the follow inactivated payment methods for a restaurant |activate-payment-methods| |Cash | |Ticket Restaurant | |Sodexo | And I go to the WL and select the restaurant that has the inactivated payment methods When I go to the payment screen Then I should NOT see the inactivated payment methods available on the dropdown |activate-payment-methods| |Cash | |Ticket Restaurant | |Sodexo | |
Scenario
...
4: As a user I do NOT want to see the payment methods that are activated but the feature flags disabled for a restaurant on WL
Code Block | ||
---|---|---|
| ||
Feature: Allow Payment methods by DOP Background: DOP Restaurants Given I have accessed DOP Restaurants Page Scenario: As an user I do NOT want to see the payment methods that are activated but the feature flags disabled for a restaurant on WL Given I have the follow payment methods as activated for a restaurant |activate-payment-methods| |Cash | |Ticket Restaurant | |Sodexo | And I have the Features flags as disabled on the Launch Darkly And I go to the WL and select the restaurant that has the payment methods as activated When I go to the payment screen Then I should NOT see the payment methods available on the dropdown |activate-payment-methods| |Cash | |Ticket Restaurant | |Sodexo | |