[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.001.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.001 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.001 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.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 |

 

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.001.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.001 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.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.payment.title| |2.001 |Translation for the error 2 Title | |2.001 |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.001 |error.payment.2.100.001 | |Translation for the error error.payment.default |Translation for the error 2 |Translation for the error 2.001 |Translation for the error 2.100.001 | |Translation for the error error.payment.default |Translation for the error 2 |Translation for the error 2.001 |Translation for the error 2.100.001 | |Translation for the error error.payment.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 |

 

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 button] Validate the different levels of error messages on the modal button when all the errors are mapped on the Lokalise file

 

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

 

Scenario 7: [Mapped errors] Validate title error, modal description and modal button 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 button on the modal redirects the user to the cart page and the order is not placed

 

Analytics

Scenario 10: [Analytics] Validate if the attributes were added on the existing modal appearance event

 

Scenario 11: [Analytics] Validate if the attributes were removed on the existing modal appearance event

 

Scenario 12: [Analytics] Validate if the attributes were removed on the existing modal appearance event