...
Code Block | ||
---|---|---|
| ||
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.100102.001003 |Order limit exceeded |You have exceeded the number of attempts to place an order. Please try again later. | |
Scenario 11: [Analytics] Validate if the
...
attribute was removed on the existing modal appearance
...
and if an attribute is being sent as "null”
Code Block | ||
---|---|---|
| ||
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 attributesattribute removed on the existing Modal Appearance event to the Amplitude: ErrorMessage and Message 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.002100.001 | |2.102.003 | |
Scenario 12: [Analytics] Validate if the a new new custom event “Error” is being triggered when the modal is displayed
...