Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »


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 big ammount 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 on Sanity for all the restaurants
    And I should see the inactivated payment method on Sanity for all the restaurants

Whitelabel

Scenario 12: 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 13: 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 14: 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 15: 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                  |
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.