Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


Whitelabel

Only Delivery Fee

Scenario 1: User sees only the Delivery Fee information on the cart page

  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€   |4,99€        |0,00€                |
        |>10,00€ |3,99€        |0,00€                |
        |>16,00€ |2,99€        |0,00€                |
        |>20,00€ |1,99€        |0,00€                |
  Scenario Outline: User sees only the Delivery Fee information on the cart page
    When I add a product to my cart via delivery
    And I access the cart page
    Then I should not sees the Service Fee information on the cart page <cart_elements>
    But I should see the Delivery Fee information on the cart page <cart_elements>

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

Scenario 2: User sees only the Delivery Fee information on the receipts

  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€   |4,99€        |0,00€                |
        |>10,00€ |3,99€        |0,00€                |
        |>16,00€ |2,99€        |0,00€                |
        |>20,00€ |1,99€        |0,00€                |
  Scenario Outline: User sees only the Delivery Fee information on the receipts
    When I add a product to my cart via delivery
    And I access the cart page
    Then I should not see the Service Fee information on the receipts on the pages: <pages>
    But I should see the Delivery Fee information on the receipts on the pages: <pages>

    Examples:
        |pages                |
        |Confirmation order	  |
        |Recent order details	|
        |Email confirmation	  |

Scenario 3: User sees only the Delivery Fee information being sent to the Delivery Partner - Airtouch

 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€   |4,99€        |0,00€                |
        |>10,00€ |3,99€        |0,00€                |
        |>16,00€ |2,99€        |0,00€                |
        |>20,00€ |1,99€        |0,00€                |
  Scenario Outline: User sees only the Delivery Fee information being sent to the Delivery Partner - Airtouch
    When I place an order via delivery
    Then I should not see the Service Fee information on the Delivery Partner - Airtouch
    But I should see the Delivery Fee information on the Delivery Partner - Airtouch
        

Scenario 4: User sees only the Delivery Fee information being sent to the Delivery Partner - Homeria

 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€   |4,99€        |0,00€                |
        |>10,00€ |3,99€        |0,00€                |
        |>16,00€ |2,99€        |0,00€                |
        |>20,00€ |1,99€        |0,00€                |
  Scenario Outline: User sees only the Delivery Fee information being sent to the Delivery Partner - Homeria
    When I place an order via delivery
    Then I should not see the Service Fee information on the Delivery Partner - Homeria
    But I should see the Delivery Fee information on the Delivery Partner - Homeria

Scenario 5: User sees only the Delivery Fee information being sent to the POS

  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€   |4,99€        |0,00€                |
        |>10,00€ |3,99€        |0,00€                |
        |>16,00€ |2,99€        |0,00€                |
        |>20,00€ |1,99€        |0,00€                |
  Scenario Outline: User sees only the Delivery Fee information being sent to the POS
    When I place an order via delivery
    Then I should not see the Service Fee information on the POS
    But I should see the Delivery Fee information on the POS

Only Delivery Fee + Delivery Fee Discounts

Scenario 6: User sees only the Delivery Fee + Delivery Fee Discounts on the cart page

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

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

Delivery Fee as Free - Orders over 20

Scenario 7: User sees only the Delivery Fee as Free on the cart page

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	|

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

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 that the correct layout and responsive were kept on the existing error modal
    Given I have all the errors mapped on the Lokalise
    And I simulate the error <simulate_error> on the platform <platform_browser>
    When I attempt to place a new order
    Then I should be see the layout and responsive being kept on the existing error modal

    Examples:
        |simulate_error |platform      |
        |2.001          |Chrome desktop|
        |2.002          |Safari desktop|
        |2.003          |Android app   |
        |2.100          |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

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 button on the modal redirects the user to the cart page and the order is not placed
    Given I have all the errors mapped on the Lokalise
    And I simulate the error <simulate_error>
    When I click on the modal error button
    Then I should be redirect to the cart page
    And I should not see my order being placed

    Examples:
        |simulate_error |
        |2.001          |
        |2.002          |
        |2.003          |
        |2.100          |

Analytics

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

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 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_header         |modal_message                                                                                                          |
        |2.001          |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.002          |Something went wrong |We had a problem processing this payment. Please try another payment method.                                           |

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

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 attributes removed on the existing Modal Appearance event to the Amplitude: ErrorMessage and Message

    
    Examples:
        |simulate_error |
        |2.001          |
        |2.002          |

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

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> 
    
    Examples:
        |simulate_error |name                 |modal_header         |modal_message                                                                                                          |
        |2.001          |                     |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.002          |                     |Something went wrong |We had a problem processing this payment. Please try another payment method.                                           |
  • No labels