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: ValidateAs an 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.PAYMENT.title                            |error.PAYMENT.2.title              |error.PAYMENT.2.001.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.001 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.001 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.001 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.001          |Translation for the error 2.001 Title    | 
        |2              |Translation for the error 2 Title        |

...

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.PAYMENT.title                            |error.PAYMENT.2.title              |error.PAYMENT.2.001.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.001 Title  |null                                     |
    |Translation for the error error.PAYMENT.title  |Translation for the error 2 Title  |null                                   |null                                     |
    |Translation for the error error.PAYMENT.title  |null                               |null                                   |null                                     |
    |Translation for the error error.PAYMENT.title  |Translation for the error 2 Title  |null                                   |Translation for the error 2.100.001 Title|
    |Translation for the error error.PAYMENT.title  |null                               |null                                   |Translation for the error 2.100.001 Title|
    |Translation for the error error.PAYMENT.title  |null                               |Translation for the error 2.001 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.001 Title        |
        |2.100.001      |Translation for the error 2 Title            |
        |2.100.001      |Translation for the error error.PAYMENT.title|
        |2.001          |Translation for the error 2 Title            |
        |2.001          |Translation for the error error.PAYMENT.title|
        |2              |Translation for the error error.PAYMENT.title|

...

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 message description when all the errors are mapped on the Lokalise
    Given I have all the errors mapped on the Lokalise
    |error.PAYMENT.default                            |error.PAYMENT.2              |error.PAYMENT.2.001              |error.PAYMENT.2.100.001             |
    |Translation for the error error.PAYMENT.default  |Translation for the error 2  |Translation for the error 2.001  |Translation for the error 2.100.001 |
    |Translation for the error error.PAYMENT.default  |Translation for the error 2  |Translation for the error 2.001  |Translation for the error 2.100.001 |
    |Translation for the error error.PAYMENT.default  |Translation for the error 2  |Translation for the error 2.001  |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.001          |Translation for the error 2.001    | 
        |2              |Translation for the error 2        |
        

...

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 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.001              |error.PAYMENT.2.100.001            |
    |Translation for the error error.PAYMENT.default  |Translation for the error 2  |Translation for the error 2.001  |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.001  |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.001                |
        |2.100.001      |Translation for the error 2                    |
        |2.100.001      |Translation for the error error.PAYMENT.default|
        |2.001          |Translation for the error 2                    |
        |2.001          |Translation for the error error.PAYMENT.default|
        |2              |Translation for the error error.PAYMENT.default|

...

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 modal button when all the error are mapped on the Lokalise
    Given I have all the errors mapped on the Lokalise
    |error.PAYMENT.button                           |error.PAYMENT.2.button             |error.PAYMENT.2.001.button             |error.PAYMENT.2.100.001.button            |
    |Translation for the error error.PAYMENT.button |Translation for the error 2 Button |Translation for the error 2.001 Button |Translation for the error 2.100.001 Button|
    |Translation for the error error.PAYMENT.button |Translation for the error 2 Button |Translation for the error 2.001 Button |Translation for the error 2.100.001 Button|
    |Translation for the error error.PAYMENT.button |Translation for the error 2 Button |Translation for the error 2.001 Button |Translation for the error 2.100.001 Button|
    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>
    
    Examples:
        |simulate_error |modal_button                              |
        |2.100.001      |Translation for the error 2.100.001 Button|
        |2.001          |Translation for the error 2.001 Button    | 
        |2              |Translation for the error 2 Button        |

...

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 modal button when some errors are NOT mapped on the Lokalise
    Given I do not have all the errors mapped on the Lokalise
    |error.PAYMENT.button                           |error.PAYMENT.2.button             |error.PAYMENT.2.001.button             |error.PAYMENT.2.100.001.button            |
    |Translation for the error error.PAYMENT.button |Translation for the error 2 Button |Translation for the error 2.001 Button |null                                      |
    |Translation for the error error.PAYMENT.button |Translation for the error 2 Button |null                                   |null                                      |
    |Translation for the error error.PAYMENT.button |null                               |null                                   |null                                      |
    |Translation for the error error.PAYMENT.button |Translation for the error 2 Button |null                                   |Translation for the error 2.100.001 Button|
    |Translation for the error error.PAYMENT.button |null                               |null                                   |Translation for the error 2.100.001 Button|
    |Translation for the error error.PAYMENT.button |null                               |Translation for the error 2.001 Button |Translation for the error 2.100.001 Button|
    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>
    
    Examples:
        |simulate_error |title_message                                 |
        |2.100.001      |Translation for the error 2.001 Button        |
        |2.100.001      |Translation for the error 2 Button            |
        |2.100.001      |Translation for the error error.PAYMENT.button|
        |2.001          |Translation for the error 2 Button            |
        |2.001          |Translation for the error error.PAYMENT.button|
        |2              |Translation for the error error.PAYMENT.button|

...

Code Block
breakoutModewide
Feature: Detailed payment error messages feature
  Background: Whitelabel Homepage
    Given I have accessed Whitelabel's Home Page
  Scenario Outline: Validate As an user I should see the correct title error, modal description and modal button 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>
    
    Examples:
        |simulate_error |title_message         |message_description                                                                                                               |modal_button         |
        |2.001          |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.002          |Something went wrong  |We had a problem processing this payment. Please try another payment method.                                                      |Pay another way      |
        |2.003          |Something went 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.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.100.001      |Validation error      |The payment transaction was declined. Please check the Card information, number, CVV, expire date and try again.                  |Check the information|

...

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 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.001          |Chrome desktop|
        |2.002          |Safari desktop|
        |2.003          |Android app   |
        |2.100          |iPhone app    |

...

Code Block
breakoutModewide
Feature: Detailed payment error messages feature
  Background: Whitelabel Homepage
    Given I have accessed Whitelabel's Home Page
  Scenario Outline: Validate if As an user I should see the button 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 button
    Then I should be redirect to the cart page
    And I should not see my order being placed

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

...