Versions Compared

Key

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

...

Whitelabel

Scenario 1: [Split logic][Mapped errors][Title message] Validate the

...

different levels of error messages on the title message 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 Validatean theuser splitI logicshould onsee the correct title message when all the errors are mapped on the Lokalise
    Given I have all the errors mapped on the Lokalise
    |error.PAYMENTpayment.title                            |error.PAYMENTpayment.2.title              |error.PAYMENTpayment.2.001100.title              |error.PAYMENTpayment.2.100.001.title            |
    |Translation for the error error.PAYMENTpayment.title  |Translation for the error 2 Title  |Translation for the error 2.001100 Title  |Translation for the error 2.100.001 Title|
    |Translation for the error error.PAYMENTpayment.title  |Translation for the error 2 Title  |Translation for the error 2.001100 Title  |Translation for the error 2.100.001 Title|
    |Translation for the error error.PAYMENTpayment.title  |Translation for the error 2 Title  |Translation for the error 2.001100 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>
    
    Examples:
        |simulate_error |title_message                            |
        |2.100.001      |Translation for the error 2.100.001 Title|
        |2.001100          |Translation for the error 2.001100 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 Homepage
    Given I have accessed Whitelabel's Home Page
  Scenario Outline: As Validatean theuser splitI logicshould onsee the correct title message when some errors are NOT mapped on the Lokalise
    Given I do not have all the errors mapped on the Lokalise
    |error.PAYMENTpayment.title                            |error.PAYMENTpayment.2.title              |error.PAYMENTpayment.2.001100.title              |error.PAYMENTpayment.2.100.001.title            |
    |Translation for the error error.PAYMENTpayment.title  |Translation for the error 2 Title  |Translation for the error 2.001100 Title  |null                                     |
    |Translation for the error error.PAYMENTpayment.title  |Translation for the error 2 Title  |null                                   |null                                     |
    |Translation for the error error.PAYMENTpayment.title  |null                               |null                                   |null                                     |
    |Translation for the error error.PAYMENTpayment.title  |Translation for the error 2 Title  |null                                   |Translation for the error 2.100.001 Title|
    |Translation for the error error.PAYMENTpayment.title  |null                               |null                                   |Translation for the error 2.100.001 Title|
    |Translation for the error error.PAYMENTpayment.title  |null                               |Translation for the error 2.001100 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>
    
    Examples:
        |simulate_error |title_message                                |
        |2.100.001      |Translation for the error 2.001100 Title        |
        |2.100.001      |Translation for the error 2 Title            |
        |2.100.001      |Translation for the error error.PAYMENTpayment.title|
        |2.001100          |Translation for the error 2 Title            |
        |2.001100          |Translation for the error error.PAYMENTpayment.title|
        |2              |Translation for the error error.PAYMENTpayment.title|

Scenario 3: [Split logic][Mapped errors][Message description] Validate the

...

different levels of error messages on the message description 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: ValidateAs an theuser splitI logicshould onsee the correct message description when all the errors are mapped on the Lokalise
    Given I have all the errors mapped on the Lokalise
    |error.PAYMENTpayment.default                            |error.PAYMENTpayment.2              |error.PAYMENTpayment.2.001100              |error.PAYMENTpayment.2.100.001             |
    |Translation for the error error.PAYMENTpayment.default  |Translation for the error 2  |Translation for the error 2.001100  |Translation for the error 2.100.001 |
    |Translation for the error error.PAYMENTpayment.default  |Translation for the error 2  |Translation for the error 2.001100  |Translation for the error 2.100.001 |
    |Translation for the error error.PAYMENTpayment.default  |Translation for the error 2  |Translation for the error 2.001100  |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.001100          |Translation for the error 2.001100    | 
        |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: ValidateAs an theuser splitI logicshould onsee 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.PAYMENTpayment.default                            |error.PAYMENTpayment.2              |error.PAYMENTpayment.2.001100              |error.PAYMENTpayment.2.100.001            |
    |Translation for the error error.PAYMENTpayment.default  |Translation for the error 2  |Translation for the error 2.001100  |null                               |
    |Translation for the error error.PAYMENTpayment.default  |Translation for the error 2  |null                             |null                               |
    |Translation for the error error.PAYMENTpayment.default  |null                         |null                             |null                               |
    |Translation for the error error.PAYMENTpayment.default  |Translation for the error 2  |null                             |Translation for the error 2.100.001|
    |Translation for the error error.PAYMENTpayment.default  |null                         |null                             |Translation for the error 2.100.001|
    |Translation for the error error.PAYMENTpayment.default  |null                         |Translation for the error 2.001100  |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.001100                |
        |2.100.001      |Translation for the error 2                    |
        |2.100.001      |Translation for the error error.PAYMENTpayment.default|
        |2.001100          |Translation for the error 2                    |
        |2.001100          |Translation for the error error.PAYMENTpayment.default|
        |2              |Translation for the error error.PAYMENTpayment.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: ValidateAs an theuser splitI logicshould onsee the correct modal buttoncta when all the error are mapped on the Lokalise
    Given I have all the errors mapped on the Lokalise
    |error.PAYMENTpayment.buttoncta                           |error.PAYMENTpayment.2.buttoncta             |error.PAYMENTpayment.2.001100.buttoncta             |error.PAYMENTpayment.2.100.001.buttoncta            |
    |Translation for the error error.PAYMENTpayment.buttoncta |Translation for the error 2 Buttoncta |Translation for the error 2.001100 Buttoncta |Translation for the error 2.100.001 Buttoncta|
    |Translation for the error error.PAYMENTpayment.buttoncta |Translation for the error 2 Buttoncta |Translation for the error 2.001100 Buttoncta |Translation for the error 2.100.001 Buttoncta|
    |Translation for the error error.PAYMENTpayment.buttoncta |Translation for the error 2 Buttoncta |Translation for the error 2.001100 Buttoncta |Translation for the error 2.100.001 Buttoncta|
    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_button>cta>
    
    Examples:
        |simulate_error |modal_button  cta                            |
        |2.100.001      |Translation for the error 2.100.001 Buttoncta|
        |2.001100          |Translation for the error 2.001100 Buttoncta    | 
        |2              |Translation for the error 2 Buttoncta        |

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: ValidateAs an theuser splitI logicshould onsee the correct modal buttoncta when some errors are NOT mapped on the Lokalise
    Given I do not have all the errors mapped on the Lokalise
    |error.PAYMENTpayment.buttoncta                           |error.PAYMENTpayment.2.buttoncta             |error.PAYMENTpayment.2.001100.buttoncta             |error.PAYMENTpayment.2.100.001.buttoncta            |
    |Translation for the error error.PAYMENTpayment.buttoncta |Translation for the error 2 Buttoncta |Translation for the error 2.001100 Buttoncta |null                                      |
    |Translation for the error error.PAYMENTpayment.buttoncta |Translation for the error 2 Buttoncta |null                                   |null                                      |
    |Translation for the error error.PAYMENTpayment.buttoncta |null                               |null                                   |null                                      |
    |Translation for the error error.PAYMENTpayment.buttoncta |Translation for the error 2 Buttoncta |null                                   |Translation for the error 2.100.001 Buttoncta|
    |Translation for the error error.PAYMENTpayment.buttoncta |null                               |null                                   |Translation for the error 2.100.001 Buttoncta|
    |Translation for the error error.PAYMENTpayment.buttoncta |null                               |Translation for the error 2.001100 Buttoncta |Translation for the error 2.100.001 Buttoncta|
    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_button>cta>
    
    Examples:
        |simulate_error |title_message                                 |
        |2.100.001      |Translation for the error 2.001100 Buttoncta        |
        |2.100.001      |Translation for the error 2 Buttoncta            |
        |2.100.001      |Translation for the error error.PAYMENTpayment.buttoncta|
        |2.001100          |Translation for the error 2 Buttoncta            |
        |2.001100          |Translation for the error error.PAYMENTpayment.buttoncta|
        |2              |Translation for the error error.PAYMENTpayment.buttoncta|

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: ValidateAs title an user I should see the correct title error, modal description and modal buttoncta 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_button>cta>
    
    Examples:
        |simulate_error |title_message         |message_description                                                                                                               |modal_buttoncta           |
        |2.001100          |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 payment |Payand anothertry wayagain.      |         |2.003          |SomethingGo wentback wrong  |We had a problem processing this payment with this payment method.|
Please contact your bank support or try another payment method.|Pay another way |2.101.002        |Something went wrong |Sorry, we are unable to process this |2payment.100 Please use another payment method.     |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.100102.001002      |ValidationLocation error Invalid     |TheSorry, paymentwe transactionhad wasa declined.problem Pleaserelated checkto theyour Cardlocation information,and number, CVV, expire datethis store. Please choose a nearest store and try again.          |Choose another Store|
      |Check the information|

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: Validate if the layout and responsive were kept on the existing error modal|2.102.003      |Order limit exceeded |You have exceeded the number of attempts to place an order. Please try again later.                    Given I have all the errors mapped on the Lokalise     And I simulate|Go theback error <simulate_error> on the platform <platform_browser>     When I attempt to place a new order
    Then I should be see the |

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 beingwere kept on the existing error modal
    Given Examples:I have all the errors mapped on the Lokalise
|simulate_error |platform   And I simulate |the error <simulate_error> on the platform <platform_browser>
  |2.001  When I attempt to place a new order
|Chrome desktop|   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: Validate ifAs an user I should see the buttoncta 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 errors mapped on the Lokalise 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
    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 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 removed 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 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      |
        |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                             |response_title         |response_description                                                                                                   |
        |2.100          |General external validation error|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      |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.                                    |

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

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 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 simulate have the content of the error <simulate_error>
    When I click"2.100" translated to another language, e.g. Portuguese available on the modalLokalise
error button Scenario Outline: As an Thenuser I should see bethe redirectcontent toof the cartmodal pagewith the correct translation according Andto Ithe shouldLokalise
not see my order beingGiven placedI set PT language on Whitelabel
Examples:    When I simulate  the |simulate_error |"2.100"
    Then I should see |2.001on the modal appearance the attributes ModalHeader and Modal Message |with the values translated according to available on the |2Lokalise.002
    And I should see on |the Error event the attributes Response Title and Response |2.003Description being sent according to the values translated.
  |  And I should see on the Error |2.100even the attribute Name being sent in English   |

...