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