[Test Cases] Detailed payment error messages


Whitelabel

 

Scenario 1: [Split logic][Mapped errors][Title message] Validate the different levels of error messages on the title message when all the errors are mapped on the Lokalise file

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.payment.title |error.payment.2.title |error.payment.2.100.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.100 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.100 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.100 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.100 |Translation for the error 2.100 Title | |2 |Translation for the error 2 Title |

 

Scenario 2: [Split logic][Non-mapped errors][Title message] Validate the different levels of error messages on the title message when some errors are NOT mapped on the Lokalise file

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.payment.title |error.payment.2.title |error.payment.2.100.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.100 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.100 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 Title | |2.100.001 |Translation for the error 2 Title | |2.100.001 |Translation for the error error.payment.title| |2.100 |Translation for the error 2 Title | |2.100 |Translation for the error error.payment.title| |2 |Translation for the error error.payment.title|

 

Scenario 3: [Split logic][Mapped errors][Message description] Validate the different levels of error messages on the message description when all the errors are mapped on the Lokalise file

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.payment.default |error.payment.2 |error.payment.2.100 |error.payment.2.100.001 | |Translation for the error error.payment.default |Translation for the error 2 |Translation for the error 2.100 |Translation for the error 2.100.001 | |Translation for the error error.payment.default |Translation for the error 2 |Translation for the error 2.100 |Translation for the error 2.100.001 | |Translation for the error error.payment.default |Translation for the error 2 |Translation for the error 2.100 |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.100 |Translation for the error 2.100 | |2 |Translation for the error 2 |

 

Scenario 4: [Split logic][Non-mapped errors][Message description] Validate the different levels of error messages on the message description when some errors are NOT mapped on the Lokalise file

 

Scenario 5: [Split logic][Mapped errors][Modal cta] Validate the different levels of error messages on the modal cta when all the errors are mapped on the Lokalise file

 

Scenario 6: [Split logic][Non-mapped errors][Modal cta] Validate the different levels of error messages on the modal cta when some errors are NOT mapped on the Lokalise

 

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

 

Scenario 8: [Regression testing] Validate if the layout and responsive were kept on the existing error modal

 

Scenario 9: [Regression testing] Validate if the cta on the modal redirects the user to the cart page and the order is not placed

 

Scenario 10: [Mapped errors] Validate the modal using a different language according to the translation available on the Lokalise

 

Scenario 11: [Mapped errors] Validate the modal using a different language when the content is not available on the Lokalise

 

Analytics

Scenario 12: [Analytics] Validate if the attributes were added to the existing modal appearance event

 

Scenario 13: [Analytics] Validate if an attribute was removed on the existing modal appearance and if an attribute is being sent as "null”

 

Scenario 14: [Analytics] Validate if the new custom event “Error” is being triggered when the modal is displayed

 

Scenario 15: [Analytics] Validate analytics when the user set a different language from the default

 

 

Scenario 16: [Analytics] Validate the modal using a different language according to the translation available on the Lokalise