...
Code Block | ||
---|---|---|
| ||
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 error, modal description and modal cta 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_cta> Examples: |simulate_error |title_message |message_description |modal_cta | |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. |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 and try again. |Pay another way |Go back |2.003 | |2.101.002 |Something went wrong |Sorry, |Wewe hadare aunable problemto processingprocess this payment. withPlease use thisanother payment method. Please contact your bank support or try another payment method.|Pay another way | |2.100 |CardGo typeback 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.102.002 |Location Invalid |Sorry, we had a problem related to your location and this store. Please choose a nearest store and try again. |Choose another Store| |2.100102.001003 |Validation error |The payment transaction was declined. Please check the Card information, number, CVV, expire date and try again.Order limit exceeded |You have exceeded the number of attempts to place an order. Please try again later. |Check the informationGo back | |
Scenario 8: [Regression testing] Validate if the layout and responsive were kept on the existing error modal
...
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 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 | ||
---|---|---|
| ||
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_headername |modalresponse_messagetitle |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 |ValidationGeneral card error |The payment transaction was |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. | |
...
Code Block | ||
---|---|---|
| ||
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 see beon the title,modal appearance the attributes description and the ctaModalHeader and Modal Message with the values translated according to available on the Lokalise. And I should see on the Error event the attributes Response Title and Response Description being sent according to the values available on Lokalise translated. And I should see on the Error even the attribute Name being sent in English |