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 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.001.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.001 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.001 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.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 an user I should see 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.001.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.001 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.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.PAYMENTpayment.title|
        |2.001          |Translation for the error 2 Title            |
        |2.001          |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 split logic on the message description when all the errors are 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 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.001              |error.PAYMENTpayment.2.100.001             |
    |Translation for the error error.PAYMENTpayment.default  |Translation for the error 2  |Translation for the error 2.001  |Translation for the error 2.100.001 |
    |Translation for the error error.PAYMENTpayment.default  |Translation for the error 2  |Translation for the error 2.001  |Translation for the error 2.100.001 |
    |Translation for the error error.PAYMENTpayment.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 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.PAYMENTpayment.default                            |error.PAYMENTpayment.2              |error.PAYMENTpayment.2.001              |error.PAYMENTpayment.2.100.001            |
    |Translation for the error error.PAYMENTpayment.default  |Translation for the error 2  |Translation for the error 2.001  |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.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.PAYMENTpayment.default|
        |2.001          |Translation for the error 2                    |
        |2.001          |Translation for the error error.PAYMENTpayment.default|
        |2              |Translation for the error error.PAYMENTpayment.default|

Scenario 5: [Split logic][Mapped errors][Modal button] Validate the split logic on the modal button when all the errors are 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 button when all the error are mapped on the Lokalise
    Given I have all the errors mapped on the Lokalise
    |error.PAYMENTpayment.button                           |error.PAYMENTpayment.2.button             |error.PAYMENTpayment.2.001.button             |error.PAYMENTpayment.2.100.001.button            |
    |Translation for the error error.PAYMENTpayment.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.PAYMENTpayment.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.PAYMENTpayment.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 an user I should see 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.PAYMENTpayment.button                           |error.PAYMENTpayment.2.button             |error.PAYMENTpayment.2.001.button             |error.PAYMENTpayment.2.100.001.button            |
    |Translation for the error error.PAYMENTpayment.button |Translation for the error 2 Button |Translation for the error 2.001 Button |null                                      |
    |Translation for the error error.PAYMENTpayment.button |Translation for the error 2 Button |null                                   |null                                      |
    |Translation for the error error.PAYMENTpayment.button |null                               |null                                   |null                                      |
    |Translation for the error error.PAYMENTpayment.button |Translation for the error 2 Button |null                                   |Translation for the error 2.100.001 Button|
    |Translation for the error error.PAYMENTpayment.button |null                               |null                                   |Translation for the error 2.100.001 Button|
    |Translation for the error error.PAYMENTpayment.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.PAYMENTpayment.button|
        |2.001          |Translation for the error 2 Button            |
        |2.001          |Translation for the error error.PAYMENTpayment.button|
        |2              |Translation for the error error.PAYMENTpayment.button|

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

...