[Test Cases] Allow Payment methods by DOP

[Test Cases] Allow Payment methods by DOP


DOP

Scenario 1: As a user, I should see the new Edit Payment Method form on the Payment method edit page

Feature: Allow Payment methods by DOP Background: DOP Restaurants Given I have accessed DOP Restaurants Page Scenario: As an user I should see the new Edit Payment Method form on the Payment method edit page Given I select a restaurant When I access the Payment method edit page Then I should see the new Edit Payment Method form on the left side following the Figma's design.

 

Scenario 2: As a user I should see the elements on the Edit Payment Method form

Feature: Allow Payment methods by DOP Background: DOP Restaurants Given I have accessed DOP Restaurants Page Scenario: As an user I should see the elements on the Edit Payment Method form Given I select a restaurant When I access the Payment method edit page Then I should I should see the <lements> on the Edit Payment Method form |elements | |Activate/Desactivated Delivery Offline Payment Methods title | |Dolar sign | |Activate or Desactivated Offline payment methods for delivery orders. subtitle| |Payment methods title | |Payment methods activate and desactivate controls |

 

Scenario 3: As a user I should see the default value as null on all the active/inactive payment methods listed

Feature: Allow Payment methods by DOP Background: DOP Restaurants Given I have accessed DOP Restaurants Page Scenario: As an user I should see the default value as null on all the active/inactive payment methods listed Given I select a restaurant When I access the Payment method edit page Then I should see the default value as null on all the active/inactive payment methods listed

 

Scenario 4: As a user I want to activate a payment method for one restaurant

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 for one restaurant Given I select a restaurant And I access the Payment method edit page And I activate a payment method When I click on save Then I should see the activated payment methods on Sanity for that restaurant

 

Scenario 5: As a user I want to activate two or more payment methods for one restaurant

Feature: Allow Payment methods by DOP Background: DOP Restaurants Given I have accessed DOP Restaurants Page Scenario: As an user I want to activate two or more payment methods for one restaurant Given I select a restaurant And I access the Payment method edit page And I activate two or more payment method When I click on save Then I should see the activated payment methods on Sanity for that restaurant

 

Scenario 6: As a user I want to inactivate a payment method for one restaurant

Feature: Allow Payment methods by DOP Background: DOP Restaurants Given I have accessed DOP Restaurants Page Scenario: As an user I want to inactivate a payment method for one restaurant Given I select a restaurant And I access the Payment method edit page And I inactivate a payment method When I click on save Then I should see the inactivated payment methods on Sanity for that restaurant

 

Scenario 7: As a user I want to inactivate two or more payment methods for one restaurant

Feature: Allow Payment methods by DOP Background: DOP Restaurants Given I have accessed DOP Restaurants Page Scenario: As an user I want to inactivate two or more payment methods for one restaurant Given I select a restaurant And I access the Payment method edit page And I inactivate two or more payment method When I click on save Then I should see the inactivated payment methods on Sanity for that restaurant

 

Scenario 8: As a user I want to activate a payment method and inactivate another one for one restaurant

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 one restaurant Given I select a restaurant 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 on Sanity for that restaurant And I should see the inactivated payment method on Sanity for that restaurant

 

Scenario 9: As a user I want to activate a payment method for a restaurant group

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 for a restaurant group Given I select a restaurant group And I access the Payment method edit page And I activate a payment method When I click on save Then I should see the activated payment methods on Sanity for all the restaurants that are related to the group

 

Scenario 10: As a user I want to activate a payment method for a large amount of restaurants

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 for a large amount of restaurants Given I select a a large amount of restaurants And I access the Payment method edit page And I activate a payment method When I click on save Then I should see the activated payment methods on Sanity for all the restaurants

 

Scenario 11: As a user I want to activate a payment method and inactivate another one for a large amount of restaurants

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 large amount of 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 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

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

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

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

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

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

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

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

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 the new section Then I should see the payment methods as inactive And I should not be able to edit these fields

Whitelabel

Scenario 1: As a user I do NOT want to see the payment methods that are null for a restaurant on WL

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

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

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

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 |