Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.002001      |Validation  error  |Something went wrong  |WeThe hadpayment atransaction problem processing this paymentwas declined. Please trycheck anotherthe paymentcard method.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  |Pay another waypayment and try again.            |         |2.003Go back             |Something
     went wrong  |We had a problem processing this payment with this payment method. Please contact your bank support or try2.101.002      |Something went wrong |Sorry, we are unable to process this payment. Please use another payment method.|Pay another way      |         |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.  |Go back             |
        |2.102.002      |GoLocation Invalid back    |Sorry, we had a problem related to your location and |this store. Please choose a nearest store and try |2.100.001again.          |ValidationChoose erroranother Store|
    |The payment transaction was declined|2.102.003 Please check the Card information, number, CVV, expire date and|Order limit exceeded |You have exceeded the number of attempts to place an order. Please try again later.                                    |Check the informationGo 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 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          |

...

Scenario 10: [

...

Mapped errors] 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
  Scenario Outline: AsAnd analyticsI userhave Ithe shouldcontent seeof the attributes added error "2.100" translated to another language, e.g. Portuguese available on the existingLokalise
modal appearance eventScenario Outline: As an  Givenuser I haveshould allsee the errorscontent mappedof on the Lokalisemodal with the correct translation Andaccording I simulateto the errorLokalise
<simulate_error>    Given AndI Iset attemptPT tolanguage placeon aWhitelabel
new order   When I Whensimulate the modal error is displayed
    Then error "2.100"
    Then I should be the title, the description and the cta according to the values available on Lokalise

Scenario 11: [Mapped errors] Validate the modal using a different language when the content is not 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 do not have the content of the error "2.100" translated to another language available on the Lokalise
  Scenario Outline: As an user I should see the content of the modal with the default language (English)
    Given I set the ES language on Whitelabel
    When I simulate the error "2.100"
    Then I should be the title, the description and the cta according to the default language (English) available on the Lokalise

Analytics

Scenario 12: [Analytics] Validate if the attributes were added to the existing modal appearance event

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 the attributes added on the existing modal appearance event
    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 the attributes added on the existing Modal Appearance event to 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.                                    |

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 Homepage
    Given I have accessed Whitelabel's Home Page
  Scenario Outline: As analytics user I should see the attributes addedremoved on the existing Modalmodal Appearanceappearance event
to the Amplitude: custom_event_type: others, ModalHeader <modal_header>, ModalMessage <modal_message> and Source Page: /cart/payment
 Given I have all the errors mapped on the Lokalise
    And I simulate  Examples:
        |simulate_error |modal_headerthe error <simulate_error>
    And I attempt to |modal_messageplace a new order
    When the modal error            is displayed
    Then I should see the attribute removed on the existing Modal Appearance event to the Amplitude: Message
    Then I should see the attribute as null on the existing Modal Appearance event to the Amplitude: MessageErrorMessage

    
    Examples:
        |simulate_error |
        |2.100          |
        |2.100.001      |
     |Card type invalid   |2.102.003      |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.                       

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> 
    
      |

Scenario 11: [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 HomepageExamples:
        |simulate_error |name     Given I have accessed Whitelabel's Home Page
  Scenario Outline: As analytics user I should see the attributes removed on the existing modal appearance event  |response_title   Given I have all the errors mapped|response_description 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 the attribute removed on the existing Modal Appearance event to the Amplitude: Message     Then I should see the attribute as null on the existing Modal Appearance event to the Amplitude: MessageErrorMessage           Examples:         |simulate_error |
        |2.100          |General external validation       |2.100.001error|Card type invalid      |Your card is not enabled to allow this  |2.102.003      |

Scenario 12: [Analytics] Validate if the a new 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>payment at the moment. Please, contact your bank or try another payment method. |
        |2.100.001      |General card error               |Validation error       |The payment transaction was declined. Please check the card name, card number, CVV, expire date and try again.         |
        |2.102.003      |General payment restriction error|Order limit exceeded   |You have exceeded the number of attempts to place an order. Please try again later.                              Examples:      |

Scenario 15: [Analytics] Validate analytics when the user set a different language from the default

Code Block
breakoutModewide
Feature: Detailed payment |simulate_error |modal_headermessages feature
  Background: Whitelabel Homepage
  |modal_message  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 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
 |2.100   Given I have accessed Whitelabel's Home Page
|Card type invalid  And I |Yourhave cardthe iscontent notof enabledthe 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.                                    |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 English