<commit_before>@applying_promotion_rules
Feature: Reverting previously applied discount on cart
    In order to get discount only on specific case
    As a Customer
    I want to have previously applied promotion reverted

    Background:
        Given the store operates on a single channel in "United States"
        And the store has a product "PHP T-Shirt" priced at "$100.00"
        And the store has a product "PHP Mug" priced at "$20.00"
        And there is a promotion "Christmas promotion"

    @ui @javascript
    Scenario: Reverting discount applied from total item quantity based promotion
        Given this promotion gives "$10.00" discount to every order with quantity at least 2
        And I have product "PHP Mug" in the cart
        And I have product "PHP T-Shirt" in the cart
        When I remove product "PHP T-Shirt" from the cart
        Then my cart total should be "$20.00"
        And there should be no discount

    @ui
    Scenario: Reverting discount applied from total item cost based promotion
        Given this promotion gives "10%" off on every product when the item total is at least "$100.00"
        And I have 8 products "PHP Mug" in the cart
        When I change "PHP Mug" quantity to 4
        Then product "PHP Mug" price should not be decreased
        And my cart total should be "$80.00"

    @ui
    Scenario: Reverting discount applied from total item cost based promotion
        Given this promotion gives "10%" off on every product when the item total is at least "$100.00"
        And I have 8 products "PHP Mug" in the cart
        When I change "PHP Mug" quantity to 4
        Then product "PHP Mug" price should not be decreased
        And my cart total should be "$80.00"<commit_msg>Remove duplicate scenario<commit_after>@applying_promotion_rules
Feature: Reverting previously applied discount on cart
    In order to get discount only on specific case
    As a Customer
    I want to have previously applied promotion reverted

    Background:
        Given the store operates on a single channel in "United States"
        And the store has a product "PHP T-Shirt" priced at "$100.00"
        And the store has a product "PHP Mug" priced at "$20.00"
        And there is a promotion "Christmas promotion"

    @ui @javascript
    Scenario: Reverting discount applied from total item quantity based promotion
        Given this promotion gives "$10.00" discount to every order with quantity at least 2
        And I have product "PHP Mug" in the cart
        And I have product "PHP T-Shirt" in the cart
        When I remove product "PHP T-Shirt" from the cart
        Then my cart total should be "$20.00"
        And there should be no discount

    @ui
    Scenario: Reverting discount applied from total item cost based promotion
        Given this promotion gives "10%" off on every product when the item total is at least "$100.00"
        And I have 8 products "PHP Mug" in the cart
        When I change "PHP Mug" quantity to 4
        Then product "PHP Mug" price should not be decreased
        And my cart total should be "$80.00"
{'fraction_non_alphanumeric': 0.04541062801932367, 'fraction_numerical': 0.024154589371980676, 'mean_word_length': 2.715311004784689, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1699487', 'n_tokens_mistral': 836, 'n_tokens_neox': 761, 'n_words': 457}