Table of Contents | ||
---|---|---|
|
...
Whitelabel
Scenario |
---|
...
Code Block | ||
---|---|---|
| ||
Feature: Detailed payment error messages feature - cancellation order
Background: Whitelabel Homepage
Given I have all the errors mapped on the Lokalise
And I have accessed Whitelabel's Home Page
Scenario Outline: As an user I should see an message about the cancellation order - Paypal
And I start a payment process with Paypal
When I cancel the order via Paypal modal
Then I should be see the modal with the <title_message>, the <message_description> and the <modal_cta>
|title_message |message_description |modal_cta |
|Purchase cancelled |Your purchase has been successfully cancelled. |Go Back to Checkout|
|
*Check if there will be specific content related to Paypal on the modal instead of a generic cancellation message.
Scenario 2: Validate the message when the user cancels the order via Bizum
Code Block | ||
---|---|---|
| ||
Feature: Detailed payment error messages feature - cancellation order
Background: Whitelabel Homepage
Given I have all the errors mapped on the Lokalise
And I have accessed Whitelabel's Home Page
Scenario Outline: As an user I should see an message about the cancellation order - Bizum
And I start a payment process with Bizum
When I cancel the order via Bizum modal
Then I should be see the modal with the <title_message>, the <message_description> and the <modal_cta>
|title_message |message_description |modal_cta |
|Purchase cancelled |Your purchase has been successfully cancelled. |Go Back to Checkout|
|
*Check if there will be specific content related to Bizum on the modal instead of a generic cancellation message.
Scenario 3: Validate the message when the user cancels the order via a PSP (credit cart)
Code Block | ||
---|---|---|
| ||
Feature: Detailed payment error messages feature - cancellation order
Background: Whitelabel Homepage
Given I have all the errors mapped on the Lokalise
And I have accessed Whitelabel's Home Page
Scenario Outline: As an user I should see an message about the cancellation order - PSP (credit cart)
And I start a payment process with any PSP (credit cart)
When I cancel the order via credit cart
Then I should be see the modal with the <title_message>, the <message_description> and the <modal_cta>
|title_message |message_description |modal_cta |
|Purchase cancelled |Your purchase has been successfully cancelled. |Go Back to Checkout|
|
*Check if there will be specific content related to Bizum on the modal instead of a generic cancellation message.
Scenario 4: Validate the message when the user cancels the order via Waylet
Code Block | ||
---|---|---|
| ||
Feature: Detailed payment error messages feature - cancellation order
Background: Whitelabel Homepage
Given I have all the errors mapped on the Lokalise
And I have accessed Whitelabel's Home Page
Scenario Outline: As an user I should see an message about the cancellation order - Waylet
And I start a payment process with Waylet
When I cancel the order via Waylet app
Then I should be see the modal with the <title_message>, the <message_description> and the <modal_cta>
|title_message |message_description |modal_cta |
|Purchase cancelled |Your purchase has been successfully cancelled. |Go Back to Checkout|
|
*Check if there will be specific content related to Paypal on the modal instead of a generic cancellation message.
Scenario 5: Validate the message when the user cancels the order via Apple pay
Code Block | ||
---|---|---|
| ||
Feature: Detailed payment error messages feature - cancellation order
Background: Whitelabel Homepage
Given I have all the errors mapped on the Lokalise
And I have accessed Whitelabel's Home Page
Scenario Outline: As an user I should see an message about the cancellation order - Apple pay
And I start a payment process with Apple pay
When I cancel the order via Apple pay app
Then I should be see the modal with the <title_message>, the <message_description> and the <modal_cta>
|title_message |message_description |modal_cta |
|Purchase cancelled |Your purchase has been successfully cancelled. |Go Back to Checkout|
|
*Check if there will be specific content related to Paypal on the modal instead of a generic cancellation message.
Scenario 6: [Regression testing] Validate if the existing errors still are working properly
Code Block | ||
---|---|---|
| ||
Feature: Detailed payment error messages feature - cancellation order
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.001 |Validation error |The payment transaction was declined. Please check the card name, card number, CVV, expire date and try again. |Review Informations |
|
Scenario 7: [Regression testing] Validate if the layout and responsive were kept on the existing error modal
Code Block | ||
---|---|---|
| ||
Feature: Detailed payment error messages feature - cancellation order
Background: Whitelabel Homepage
Given I have all the errors mapped on the Lokalise
And I have accessed Whitelabel's Home Page
Scenario Outline: As an user I should see that the correct layout and responsive were kept on the existing error modal
And I start a payment process with Paypal
When I cancel the order via Paypal modal
Then I should be see the layout and responsive being kept on the existing error modal in each platform <platform>
Examples:
|platform |
|Chrome desktop|
|Safari desktop|
|Android app |
|iPhone app | |
Scenario 8: Validate if the cta on the modal redirects the user to the cart page and the order is not placed
Code Block | ||
---|---|---|
| ||
Feature: Detailed payment error messages feature - cancellation order
Background: Whitelabel Homepage
Given I have all the errors mapped on the Lokalise
And I have accessed Whitelabel's Home Page
Scenario: As an user I should see the cta on the modal redirects the user to the cart page and the order is not placed
And I start a payment process with Paypal
And I cancel the order via Paypal modal
When I click on the modal error cta button
Then I should be redirect to the cart page
And I should not see my order being placed
|
Scenario 9: Validate the modal using a different language according to the translation available on the Lokalise
Code Block | ||
---|---|---|
| ||
Feature: Detailed payment error messages feature - cancellation order
Background: Whitelabel Homepage
Given I have accessed Whitelabel's Home Page
And I have the content of the error "2.005" 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.005"
Then I should be the title, the description and the cta according to the values available on Lokalise
|
Analytics
Scenario 10: [Analytics] Validate the attributes being sent on the modal appearance event
Code Block | ||
---|---|---|
| ||
Feature: Detailed payment error messages feature - cancellation order
Background: Whitelabel Homepage
Given I have all the errors mapped on the Lokalise
And I have accessed Whitelabel's Home Page
Scenario Outline: As analytics user I should see the attributes being sent on the existing modal appearance event
And I start a payment process with <payment_method>
And I cancel the order via <payment_method>
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
And I should be see the modal with the <title_message>, the <message_description> and the <modal_cta>
Examples:
|payment_method |modal_header |modal_message |
|Paypal |Purchase cancelled |Your purchase has been successfully cancelled. |
|Bizum |Purchase cancelled |Your purchase has been successfully cancelled. |
|Waylet |Purchase cancelled |Your purchase has been successfully cancelled. |
|Credit cart |Purchase cancelled |Your purchase has been successfully cancelled. |
|
*Check if there will be specific content related to Paypal on the modal instead of a generic cancellation message.
Scenario 11: [Analytics] Validate if an 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 - cancellation order
Background: Whitelabel Homepage
Given I have all the errors mapped on the Lokalise
And I have accessed Whitelabel's Home Page
Scenario Outline: As analytics user I should see the attributes removed on the existing modal appearance event
And I start a payment process with <payment_method>
And I cancel the order via <payment_method>
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:
|payment_method |
|Paypal |
|Waylet |
|Credit cart | |
Scenario 12: [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 all the errors mapped on the Lokalise
And I have accessed Whitelabel's Home Page
Scenario Outline: As analytics user I should see new custom event when the error modal is displayed
And I start a payment process with <payment_method>
And I cancel the order via <payment_method>
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:
|payment_method |name |response_title |response_description |
|Paypal |? |Purchase cancelled |Your purchase has been successfully cancelled. |
|Waylet |? |Purchase cancelled |Your purchase has been successfully cancelled. |
|Credit cart |? |Purchase cancelled |Your purchase has been successfully cancelled. | |
*Check if there will be specific content related to Paypal on the modal instead of a generic cancellation message.
Scenario 13: [Analytics] Validate analytics when the user set a different language from the default
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.005" 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.005"
Then I should be the title, the description and the cta according to the values available on Lokalise
|
Scenario 14: [Analytics] Validate the modal using a different language according to the translation available on the Lokalise
...
breakoutMode | wide |
---|
...
Test scenario | Precondition | How to execute(step-by-step) | Expect Result | Comments | |
---|---|---|---|---|---|
1 | [Non-Vauted card] Check if the fields are displayed below card details |
|
|
| |
2 | [Non-Vauted card] Check if the hide/display the address fields when the user check/uncheck the new checkbox |
|
|
| |
3 | Non-Vauted card] Check if the fields are required - asterisk |
|
|
| |
4 | Non-Vauted card] Check if the fields are required - required messages |
|
|
| Question: How will the message be displayed? Currently, the required messages are displayed one by one. |
5 | [Non-Vauted card] Check if the new fields L&F is following the Figma's design |
|
|
| Question: It missing Figma's link. |