Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
stylenone

...

DOP

Scenario 1:

...

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

Code Block
breakoutModewide
Feature: DetailedAllow paymentPayment errormethods messagesby featureDOP
  Background: WhitelabelDOP HomepageRestaurants
    Given I have accessed Whitelabel'sDOP HomeRestaurants Page
  Scenario Outline: As an user I should see the new correctEdit titlePayment messageMethod whenform allon the errorsPayment aremethod mapped on the Lokaliseedit page
    Given I haveselect alla therestaurant
errors mapped on the LokaliseWhen I access the  |error.payment.title  Payment method edit page
    Then I should see the new Edit Payment Method form on the left side following the      |error.payment.2.title              |error.payment.2.100.title              |error.payment.2.100.001.title            |
    |Translation for the error error.payment.title  |Translation for the error 2 Title  |Translation for the error 2.100 Title  |Translation for the error 2.100.001 Title|
    |Translation for the error error.payment.title  |Translation for the error 2 Title  |Translation for the error 2.100 Title  |Translation for the error 2.100.001 Title|
    |Translation for the error error.payment.title  |Translation for the error 2 Title  |Translation for the error 2.100 Title  |Translation for the error 2.100.001 Title|
    And I simulate the error <simulate_error>
    When I attempt to place a new order
    Then I should be see the modal with the <title_message>Figma's design.

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

Code Block
breakoutModewide
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                 Examples: |
    |Dolar sign  |simulate_error |title_message                            |         |2.100.001      |Translation for the error 2.100.001 Title|         |2.100        |
    |TranslationActivate or Desactivated Offline payment methods for thedelivery error 2.100 Titleorders. subtitle|
    |Payment methods title             |2                                    |Translation for the error 2 Title   |
    |

Scenario 2: [Split logic][Non-mapped errors][Title message] Validate the different levels of error messages on the title message when some errors are NOT mapped on the Lokalise file

Code Block
breakoutModewide
Feature: Detailed payment error messages feature
  Background: Whitelabel HomepagePayment methods activate and desactivate controls                Given I have accessed Whitelabel's Home Page   Scenario Outline: As an |

Scenario 3: As a user

...

I

...

should

...

see the default value as null on all the active/inactive payment methods listed

Code Block
breakoutModewide
Feature: Allow Payment methods by DOP
  Background: DOP Restaurants
    Given I have doaccessed notDOP haveRestaurants allPage
the errors mappedScenario: onAs thean Lokaliseuser I should see  |error.payment.title          the default value as null on all the active/inactive payment methods listed
    Given I select a restaurant
    When I access  |error.payment.2.title   the Payment method edit page
    Then I should see the  |error.payment.2.100.title              |error.payment.2.100.001.title     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

Code Block
breakoutModewide
Feature: Allow Payment methods by DOP
  Background: DOP Restaurants
    Given I |have accessed DOP Restaurants Page
|Translation for theScenario: error error.payment.title  |Translation for the error 2 Title  |Translation for the error 2.100 Title  |null    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 |Translationshould forsee the erroractivated error.payment.title methods |Translationon Sanity for the error 2 Title  |null      that restaurant

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

Code Block
breakoutModewide
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 |nullrestaurant
    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 |Translationsave
for the error error.payment.title Then |nullI 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

Code Block
breakoutModewide
Feature: Allow Payment methods by DOP
  Background: DOP Restaurants
    Given I have accessed DOP |nullRestaurants Page
  Scenario: As an user I want to inactivate a payment method for one restaurant
    Given I select a restaurant
    And I access the |nullPayment 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 |
    |Translation for the error error.payment.title  |Translation for the error 2 Title  |null                      that restaurant

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

Code Block
breakoutModewide
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
   |Translation forAnd theI error 2.100.001 Title|
    |Translation for the error error.payment.title  |null    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  |null   restaurant

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

Code Block
breakoutModewide
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 |Translationone for one therestaurant
 error 2.100.001 Title| Given I select a |Translationrestaurant
for the error error.payment.title And |nullI access the Payment method edit page
    And I activate a payment method
    And I inactivate another payment method
    |TranslationWhen forI theclick erroron 2.100save
Title  |Translation for theThen error 2.100.001 Title|
    And I simulate the error <simulate_error>I should see the activated payment method on Sanity for that restaurant
     WhenAnd I attemptshould tosee placethe ainactivated newpayment ordermethod on Sanity for  Then I should be see the modal with the <title_message>
that restaurant

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

Code Block
breakoutModewide
Feature: Allow Payment methods by DOP
  Background: DOP Restaurants
    Given I have accessed Examples:DOP Restaurants Page
  Scenario: As an user |simulate_error |title_message         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  |2.100.001payment method
    When |TranslationI forclick theon errorsave
2.100 Title   Then I should see the |activated payment methods on Sanity for all the  |2.100.001      |Translation for the error 2 Title            |
        |2.100.001      |Translation for the error error.payment.title|
        |2.100          |Translation for the error 2 Title            |
        |2.100          |Translation for the error error.payment.title|
        |2              |Translation for the error error.payment.title|

...

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

Code Block
breakoutModewide
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

Code Block
breakoutModewide
Feature: DetailedAllow paymentPayment errormethods messagesby featureDOP
  Background: WhitelabelDOP HomepageRestaurants
    Given I have accessed Whitelabel'sDOP HomeRestaurants Page
  Scenario Outline: As an user I shouldwant seeto theactivate correcta messagepayment descriptionmethod whenand allinactivate another theone errorsfor area mappedlarge onamount theof Lokaliserestaurants
    Given I haveselect alla thelarge errorsamount mappedof onrestaurants
the Lokalise   And  |error.payment.default     I access the Payment method edit page
    And I activate a payment method
    And I inactivate another payment method
  |error.payment.2  When I click on save
    Then I  |error.payment.2.100          should see the activated payment method on Sanity for all the restaurants
   |error.payment.2.100.001             |
    |Translation for the error error.payment.default  |Translation for the error 2  |Translation for the error 2.100  |Translation for the error 2.100.001 |
    |Translation for the error error.payment.default  |Translation for the error 2  |Translation for the error 2.100  |Translation for the error 2.100.001 |
    |Translation for the error error.payment.default  |Translation for the error 2  |Translation for the error 2.100  |Translation for the error 2.100.001 |
    And I simulate the error <simulate_error>
    When I attempt to place a new order
    Then I should be see the modal with the <message_description>
    
    Examples:
        |simulate_error |message_description                |
        |2.100.001      |Translation for the error 2.100.001|
        |2.100          |Translation for the error 2.100    | 
        |2              |Translation for the error 2        |
        

Scenario 4: [Split logic][Non-mapped errors][Message description] Validate the different levels of error messages on the message description when some errors are NOT mapped on the Lokalise file

Code Block
breakoutModewide
Feature: Detailed payment error messages feature
  Background: Whitelabel Homepage
    Given I have accessed Whitelabel's Home Page
  Scenario Outline: As an user I should see the correct message description when some errors are NOT mapped on the Lokalise
    Given I do not have all the errors mapped on the Lokalise
    |error.payment.default                            |error.payment.2              |error.payment.2.100              |error.payment.2.100.001            |
    |Translation for the error error.payment.default  |Translation for the error 2  |Translation for the error 2.100  |null                               |
    |Translation for the error error.payment.default  |Translation for the error 2  |null                             |null                               |
    |Translation for the error error.payment.default  |null                         |null                             |null                               |
    |Translation for the error error.payment.default  |Translation for the error 2  |null                             |Translation for the error 2.100.001|
    |Translation for the error error.payment.default  |null                         |null                             |Translation for the error 2.100.001|
    |Translation for the error error.payment.default  |null                         |Translation for the error 2.100  |Translation for the error 2.100.001|
    And I simulate the error <simulate_error>
    When I attempt to place a new order
    Then I should be see the modal with the <message_description>
    
    Examples:
        |simulate_error |message_description                            |
        |2.100.001      |Translation for the error 2.100                |
        |2.100.001      |Translation for the error 2                    |
        |2.100.001      |Translation for the error error.payment.default|
        |2.100          |Translation for the error 2                    |
        |2.100          |Translation for the error error.payment.default|
        |2              |Translation for the error error.payment.default|

Scenario 5: [Split logic][Mapped errors][Modal cta] Validate the different levels of error messages on the modal cta when all the errors are mapped on the Lokalise file

Code Block
breakoutModewide
Feature: Detailed payment error messages feature
  Background: Whitelabel Homepage
    Given I have accessed Whitelabel's Home Page
  Scenario Outline: As an user I should see the correct modal cta when all the error are mapped on the Lokalise
    Given I have all the errors mapped on the Lokalise
    |error.payment.cta                           |error.payment.2.cta             |error.payment.2.100.cta             |error.payment.2.100.001.cta            |
    |Translation for the error error.payment.cta |Translation for the error 2 cta |Translation for the error 2.100 cta |Translation for the error 2.100.001 cta|
    |Translation for the error error.payment.cta |Translation for the error 2 cta |Translation for the error 2.100 cta |Translation for the error 2.100.001 cta|
    |Translation for the error error.payment.cta |Translation for the error 2 cta |Translation for the error 2.100 cta |Translation for the error 2.100.001 cta|
    And I simulate the error <simulate_error>
    When I attempt to place a new order
    Then I should be see the modal with the <modal_cta>
    
    Examples:
        |simulate_error |modal_cta                           |
        |2.100.001      |Translation for the error 2.100.001 cta|
        |2.100          |Translation for the error 2.100 cta    | 
        |2              |Translation for the error 2 cta        |

Scenario 6: [Split logic][Non-mapped errors][Modal cta] Validate the different levels of error messages on the modal cta when some errors are NOT mapped on the Lokalise

Code Block
breakoutModewide
Feature: Detailed payment error messages feature
  Background: Whitelabel Homepage
    Given I have accessed Whitelabel's Home Page
  Scenario Outline: As an user I should see the correct modal cta when some errors are NOT mapped on the Lokalise
    Given I do not have all the errors mapped on the Lokalise
    |error.payment.cta                           |error.payment.2.cta             |error.payment.2.100.cta             |error.payment.2.100.001.cta            |
    |Translation for the error error.payment.cta |Translation for the error 2 cta |Translation for the error 2.100 cta |null                                   |
    |Translation for the error error.payment.cta |Translation for the error 2 cta |null                                |null                                   |
    |Translation for the error error.payment.cta |null                            |null                                |null                                   |
    |Translation for the error error.payment.cta |Translation for the error 2 cta |null                                |Translation for the error 2.100.001 cta|
    |Translation for the error error.payment.cta |null                            |null                                |Translation for the error 2.100.001 cta|
    |Translation for the error error.payment.cta |null                            |Translation for the error 2.100 cta |Translation for the error 2.100.001 cta|
    And I simulate the error <simulate_error>
    When I attempt to place a new order
    Then I should be see the modal with the <modal_cta>
    
    Examples:
        |simulate_error |title_message                              |
        |2.100.001      |Translation for the error 2.100 cta        |
        |2.100.001      |Translation for the error 2 cta            |
        |2.100.001      |Translation for the error error.payment.cta|
        |2.100          |Translation for the error 2 cta            |
        |2.100          |Translation for the error error.payment.cta|
        |2              |Translation for the error error.payment.cta|

Scenario 7: [Mapped errors] Validate title error, modal description and modal cta according to the mapped errors on the Lokalise

Code Block
breakoutModewide
Feature: Detailed payment error messages feature
  Background: Whitelabel Homepage
    Given I have accessed Whitelabel's Home Page
  Scenario Outline: As an user I should see the correct title error, modal description and modal cta according to the mapped errors on the Lokalise
    Given I have all the errors mapped on the Lokalise
    And I simulate the error <simulate_error>
    When I attempt to place a new order
    Then I should be see the modal with the <title_message>, the <message_description> and the <modal_cta>
    
    Examples:
        |simulate_error |title_message        |message_description                                                                                                    |modal_cta           |
        |2.100          |Card type invalid    |Your card is not enabled to allow this payment at the moment. Please, contact your bank or try another payment method. |Pay another way     |
        |2.100.001      |Validation error     |The payment transaction was declined. Please check the card name, card number, CVV, expire date and try again.         |Review Informations |
        |2.101.001      |Identity error       |Sorry, we were unable to verify the cardholder's identity. Please authorize payment and try again.                     |Go back             |
        |2.101.002      |Something went wrong |Sorry, we are unable to process this payment. Please use another payment method.                                       |Go back             |
        |2.102.002      |Location Invalid     |Sorry, we had a problem related to your location and this store. Please choose a nearest store and try again.          |Choose another Store|
        |2.102.003      |Order limit exceeded |You have exceeded the number of attempts to place an order. Please try again later.                                    |Go back             |

Scenario 8: [Regression testing] Validate if the layout and responsive were kept on the existing error modal

Code Block
breakoutModewide
Feature: Detailed payment error messages feature
  Background: Whitelabel Homepage
    Given I have accessed Whitelabel's Home Page
  Scenario Outline: As an user I should see that the correct layout and responsive were kept on the existing error modal
    Given I have all the errors mapped on the Lokalise
    And I simulate the error <simulate_error> on the platform <platform_browser>
    When I attempt to place a new order
    Then I should be see the layout and responsive being kept on the existing error modal

    Examples:
        |simulate_error |platform      |
        |2.100          |Chrome desktop|
        |2.002          |Safari desktop|
        |2.003          |Android app   |
        |2.100          |iPhone app    |

Scenario 9: [Regression testing] Validate if the cta on the modal redirects the user to the cart page and the order is not placed

Code Block
breakoutModewide
Feature: Detailed payment error messages feature
  Background: Whitelabel Homepage
    Given I have accessed Whitelabel's Home Page
  Scenario Outline: As an user I should see the cta on the modal redirects the user to the cart page and the order is not placed
    Given I have all the errors mapped on the Lokalise
    And I simulate the error <simulate_error>
    When I click on the modal error cta
    Then I should be redirect to the cart page
    And I should not see my order being placed

    Examples:
        |simulate_error |
        |2.100          |
        |2.002          |
        |2.003          |
        |2.100          |

...

 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
breakoutModewide
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
breakoutModewide
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
breakoutModewide
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
breakoutModewide
Feature: DetailedAllow paymentPayment errormethods messagesby featureDOP
  Background: WhitelabelDOP HomepageRestaurants
    Given I have accessed Whitelabel's Home Page
    And I have the content of the error "2.100" translated to another language, e.g. Portuguese available on the LokaliseDOP Restaurants Page
  Scenario Outline: As ana user I should see the contentnew ofactive/inactive thecontrols modalon with the correctCash translationlimitation accordingforms toas theinactive
Lokalise     Given I already sethad PTa languagerestaurant onas Whitelabelinactive
    When I simulateaccess the Payment method error "2.100"edit page
    Then I should besee the title, the description andnew active/inactive controls on the ctaCash accordinglimitation toforms the values available on Lokalise
as inactive

Scenario

...

16: As a user I should be able to edit the cash limitation information

Code Block
breakoutModewide
Feature: DetailedAllow paymentPayment errormethods messagesby featureDOP
  Background: WhitelabelDOP HomepageRestaurants
    Given I have accessed Whitelabel'sDOP HomeRestaurants Page
  Scenario: As Anda user I doshould notbe haveable theto content ofedit the error "2.100" translated to another language available on the Lokalisecash limitation information 
  Scenario Outline: AsGiven anI userselect Ia shouldrestaurant
see the content of theAnd modalI withaccess the Payment defaultmethod languageedit (English)page
    GivenAnd I setchange the EScash languagelimitation on Whitelabelinformation
    When I simulateclick the error "2.100"on save
    Then I should besee the title, the description andvalues regarding the ctacash accordinglimitation toon the default language (English) available on the Lokalise

Analytics

...

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
breakoutModewide
Feature: DetailedAllow paymentPayment errormethods messagesby featureDOP
  Background: WhitelabelSanity HomepageRestaurants
    Given I have accessed Whitelabel'sSanity HomeRestaurants Page
  Scenario Outline: As analyticsa user, I should see the attributes added on the existing modal appearance event
    Given I have alla new section to visualize the errorsactive mappedand oninactive thepayment Lokalisemethods - null
  And I simulateGiven theI erroraccess <simulate_error>a restaurant page that have Andthe Ipayment attemptmethods toas placenull
a new order  When I click Whenon the modal error is displayednew section
    Then I should see the attributespayment addedmethods onas thenull
existing Modal Appearance event toAnd the Amplitude: custom_event_type: others, ModalHeader <modal_header>, ModalMessage <modal_message> and Source Page: /cart/payment
    
    Examples:
        |simulate_error |modal_header         |modal_message                                                                                                          |
        |2.100          |Card type invalid    |Your card is not enabled to allow this payment at the moment. Please, contact your bank or try another payment method. |
        |2.100.001      |Validation error     |The payment transaction was declined. Please check the card name, card number, CVV, expire date and try again.         |
        |2.102.003      |Order limit exceeded |You have exceeded the number of attempts to place an order. Please try again later.         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
breakoutModewide
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
breakoutModewide
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

Code Block
breakoutModewide
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                    |
      |

Scenario 13: [Analytics] Validate if an attribute was removed on the existing modal appearance and if an attribute is being sent as "null”

Code Block
breakoutModewide
Feature: Detailed payment error messages feature
  Background: Whitelabel HomepageTicket Restaurant       |
      |Sodexo Given I have accessed Whitelabel's Home Page   Scenario Outline: As analytics user I should see the|
attributes removed on the existingAnd modalI appearancego eventto the WL and select Giventhe Irestaurant havethat allhas the errorspayment mappedmethods onas thenull
Lokalise    When AndI Igo simulateto the errorpayment <simulate_error>screen
    AndThen I attemptshould toNOT placesee athe newpayment ordermethods available  on  When the modal errordropdown
is displayed     Then I should see the attribute removed on the existing Modal Appearance event to the Amplitude: Message|activate-payment-methods|
      |Cash             Then I should see the attribute as null|
on the existing Modal Appearance event to|Ticket theRestaurant Amplitude: MessageErrorMessage     |
     Examples: |Sodexo        |simulate_error |         |2.100 

Scenario 2: As a user I want to see the payment methods that are activated for a restaurant on WL

Code Block
breakoutModewide
Feature: Allow Payment methods by DOP
  Background: DOP Restaurants
   | Given I have accessed DOP Restaurants Page
  |2.100.001      |
        |2.102.003      |

Scenario 14: [Analytics] Validate if the new custom event “Error” is being triggered when the modal is displayed

Code Block
breakoutModewide
Feature: Detailed payment error messages feature
  Background: Whitelabel Homepage
    Given I have accessed Whitelabel's Home Page
  Scenario Outline: As analytics user I should see new custom event when the error modal is displayed
    Given I have all the errors mapped on the Lokalise
    And I simulate the error <simulate_error>
    And I attempt to place a new order
    When the modal error is displayed
    Then I should see new custom event when the error modal is displayed to the Amplitude: event_name: Error, custom_event_type: others, Error Code <simulate_error> , Name <name>, Source Page: /cart/payment, Response Title <response_title>, Response Description <response_description> 
    
    Examples:
        |simulate_error |name  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                    |
      |response_titleTicket  Restaurant       |response_description
      |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
breakoutModewide
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          |2.100          |General
external validation error|Card type invalid  |Ticket Restaurant   |Your card is not enabled|
to allow this payment at the moment.|Sodexo Please, contact your bank or try another payment method. |         |2.100.001
    And |GeneralI cardgo errorto the WL and select the restaurant that has the inactivated payment methods
  |Validation error   When I go to |Thethe payment transactionscreen
was declined. Please check theThen cardI name,should cardNOT number,see CVV,the expireinactivated datepayment andmethods tryavailable again.on the dropdown
      |activate-payment-methods|
        |2.102.003  |Cash    |General payment restriction error|Order limit exceeded   |You have exceeded the number of attempts to place an order.|
Please try again later.   |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
breakoutModewide
Feature: DetailedAllow paymentPayment errormethods messagesby featureDOP
  Background: WhitelabelDOP HomepageRestaurants
    Given I have accessed Whitelabel'sDOP HomeRestaurants Page
  Scenario: As an Anduser I have the content of the error "2.100" translateddo NOT want to anothersee language, e.g. Portuguese available on the Lokalise
  Scenario Outline: As an user I should see the content of the modal with the correct translation according to the Lokalise
    Given I set PT language on Whitelabel
    When I simulate the error "2.100"
    Then I should be the title, the description and the cta according to the values available on Lokalise

Scenario 16: [Analytics] Validate the modal using a different language according to the translation available on the Lokalise

Code Block
breakoutModewide
Feature: Detailed payment error messages feature
  Background: Whitelabel Homepage
    Given I have accessed Whitelabel's Home Page
    And I have the content of the error "2.100" translated to another language, e.g. Portuguese available on the Lokalise
  Scenario Outline: As an user I should see the content of the modal with the correct translation according to the Lokalise
    Given I set PT language on Whitelabel
    When I simulate the error "2.100"
    Then I should see on the modal appearance the attributes ModalHeader and Modal Message with the values translated according to available on the Lokalise.
    And I should see on the Error event the attributes Response Title and Response Description being sent according to the values translated.
    And I should see on the Error even the attribute Name being sent in Englishthe 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                  |