Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
breakoutModewide
Background: Whitelabel Homepage
    Given I have accessed the Whitelabel app
    And I have only the Delivery Fee configured on the Launch Darkly
        |tier    |Delivery Fee |Delivery Fee discount|
        |0,00€   |3,99€        |0,00€                |
        |>10,00€ |2,99€        |0,00€                |
        |>16,00€ |1,99€        |0,00€                |
        |>20,00€ |0,00€        |0,00€                |
  Scenario Outline: User sees only the Delivery Fee as Free on the cart page
    When I add a product to my cart via delivery that exceeds the value of the last tier >20,00€
    And I access the cart page
    Then I should see only the Delivery Fee as Free on the cart page <cart_elements> - Orders over 20

    Examples:
        |cart_elements              |
        |Cart fees	                |
        |Cart values	              |
        |Fees details modal	        |
        |Save up to - Progress bar	|

Delivery Fee and the Service Fee

Scenario 8:

...

User sees the Delivery fee and Service fee information on the cart page

Code Block
breakoutModewide
Feature: Detailed payment error messages feature
  Background: Whitelabel Homepage
    Given I have accessed the Whitelabel's Homeapp
Page   Scenario Outline:And AsI anhave userthe IDelivery shouldFee seeand that the correctService layoutFee andconfigured responsiveon werethe keptLaunch onDarkly
the existing error modal     Given|tier I have all the|Delivery errorsFee mapped|Delivery onFee thediscount|Service LokaliseFee |Service Fee discount|
 And I simulate the error <simulate_error> on the|0,00€ platform <platform_browser>
 |1,99€    When I attempt to place|0,00€ a new order     Then I should be see the layout and responsive|3,00€ being kept on the existing error modal|0,00€      Examples:         |simulate_error |platform
        |>10,00€ |1,99€        |2.0010,00€          |Chrome desktop|     |1,00€    |2.002     |0,00€     |Safari desktop|         |2.003
         |Android app   |>16,00€ |1,99€         |2.100|0,00€           |iPhone app    |

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

Code Block
breakoutModewide
Feature: Detailed payment error messages feature
  Background: Whitelabel Homepage1,00€       |0,00€        Given I have accessed Whitelabel's Home Page |
 Scenario Outline: As an user I should see the button on the modal redirects the user to the cart page and the order is not placed|>20,00€ |1,99€        |0,00€              Given I have|1,00€ all the errors mapped on the Lokalise|0,00€     And I simulate the error <simulate_error>     When|
I click onScenario theOutline: modalUser errorsees buttonthe Delivery fee and Service Thenfee I should be redirect toinformation on the cart page
    AndWhen I shouldadd a notproduct seeto my ordercart beingvia placeddelivery
    And Examples:I access the cart page
    |simulate_error |
        |2.001    Then I should see the Delivery fee and Service fee information on the cart page <cart_elements>

    |Examples:
        |2.002cart_elements          |    |
    |2.003    |Cart fees	       |         |2.100 
        |

Analytics

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

Code Block
breakoutModewide
Feature: Detailed payment error messages feature
  Background: Whitelabel HomepageCart values	              Given|
I have accessed Whitelabel's Home Page   Scenario|Fees Outline:details 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_headermodal	        |
        |Save up to - Progress bar	|

Delivery Fee + Delivery Fee Discounts and Service Fee + Service Fee Discounts

Scenario 9: User sees the Delivery Fee + Delivery Fee Discounts and Service Fee + Service Fee Discounts information on the cart page

Code Block
breakoutModewide
 Background: Whitelabel Homepage
    Given I have accessed the Whitelabel app
    And I have the Delivery Fee and the Service Fee with discounts configured on the Launch Darkly
        |tier    |Delivery Fee |Delivery Fee discount|Service Fee |Service Fee discount|
        |0,00€   |4,99€        |1,00€                |4,00€       |1,00€               |
        |>10,00€ |3,99€        |1,00€                |3,00€       |1,00€               |
        |>16,00€ |2,99€        |1,00€                |2,00€       |1,00€               |
        |>20,00€ |1,99€        |1,00€                |1,00€       |0,50€               |
  Scenario Outline: User sees the Delivery Fee + Delivery Fee Discounts and Service Fee + Service Fee Discounts information on the cart page
    When I add a product to my cart via delivery
    And I access the cart page
    Then I should see the Delivery Fee + Delivery Fee Discounts and Service Fee + Service Fee Discounts information on the cart page <cart_elements>

    Examples:
        |cart_elements              |
        |Cart fees	                |
        |Cart values	              |
        |Fees details modal	        |
        |Save up to - Progress bar	|

Delivery Fee and the Service Fee as Free - Promotional Free

Scenario 10: User sees the Delivery Fee and Service Fee information as Free on the cart page - Promotional Free

Code Block
breakoutModewide
 Background: Whitelabel Homepage
    Given I have accessed the Whitelabel app
    And I have the Delivery Fee and the Service Fee with discounts configured on the Launch Darkly
        |tier    |Delivery Fee |Delivery Fee discount|Service Fee |Service Fee discount|
        |0,00€   |1,99€        |1,99€             |modal_message   |3,00€       |3,00€               |
        |>10,00€ |1,99€        |1,99€                |1,00€       |1,00€               |
        |>16,00€ |1,99€        |1,99€       |         |2.0011,00€       |1,00€   |Card type invalid    |Your card is not enabled to allow|
this payment at the moment. Please, contact your bank or try another payment method. ||>20,00€ |1,99€        |1,99€      |2.002          |Something1,00€ went wrong |We had a problem processing|1,00€ this payment. Please try another payment method.        |
  Scenario Outline: User sees the Delivery Fee and Service Fee information as Free on the cart page - Promotional Free
    When I add a product to my cart |

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

Code Block
breakoutModewide
Feature: Detailed payment error messages feature
  Background: Whitelabel Homepagevia delivery
    And I access the cart page
    GivenThen I should havesee accessedthe Whitelabel'sDelivery HomeFee Pageand Service Fee Scenarioinformation Outline:on Asthe analyticscart userpage I<cart_elements> should- seePromotional theFree
attributes
removed on the existing modalExamples:
appearance event     Given I have|cart_elements all the errors mapped on the Lokalise     And I simulate|
the error <simulate_error>     And I|Cart attemptfees	 to place a new order     When the modal error is displayed |
   Then I should see the attributes|Cart removedvalues	 on the existing Modal Appearance event to the Amplitude: ErrorMessage and Message  |
        Examples:|Fees details modal	       |simulate_error |
        |2.001      Save up to - Progress bar	|

Delivery Fee and the Service Fee as Free - Orders over 20

Scenario 11: User sees the Delivery fee and Service fee information as Free on the cart page

Code Block
breakoutModewide
 Background: Whitelabel Homepage
   | Given I have accessed the Whitelabel app
 |2.002   And I have the Delivery Fee  |

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

Code Block
breakoutModewide
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 <modal_header>, Response Description <modal_message> 
  and the Service Fee as Free
        |tier    |Delivery Fee |Delivery Fee discount|Service Fee |Service Fee discount|
        |0,00€   |1,99€        |0,00€                |3,00€       |0,00€               |
        |>10,00€ |1,99€        |0,00€                |1,00€       |0,00€       Examples:         |simulate_error
|name        |>16,00€ |1,99€        |modal_header0,00€           |modal_message     |0,00€       |0,00€               |
        |>20,00€ |0,00€        |0,00€                |0,00€       |0,00€               |
  Scenario Outline: User sees the Delivery fee and Service fee information as Free on the cart page
    |When I add a product to my cart via |2.001delivery that exceeds the value of the last tier >20,00€
|    And I access the cart page
    Then I should see the Delivery fee |Cardand typeService invalidfee information on the |Yourcart cardpage is<cart_elements> not- enabledOrders toover allow20
this
payment at the moment. Please,Examples:
contact your bank or try another payment method. |cart_elements         |2.002     |
    |    |Cart fees	                |Something
went wrong |We had a problem processing this payment. Please try another payment method.|Cart values	              |
        |Fees details modal	        |
        |Save up to - Progress bar	|