<commit_before>@checkout
Feature: Prevent skipping checkout steps
    In order to get back to the right checkout step after leaving
    As a Customer
    I want to be able to finish checkout process

    Background:
        Given the store operates on a single channel in "United States"
        And the store has a product "PHP T-Shirt" priced at "$19.99"
        And the store has a product "Paganini T-Shirt" priced at "$10.00"
        And there is a promotion "Holiday promotion"
        And the promotion gives "$29.99" discount to every order with quantity at least 2
        And the store ships everywhere for free
        And the store allows paying offline
        And I am a logged in customer

    @ui @no-api
    Scenario: Skipping shipping checkout step
        Given I have product "PHP T-Shirt" in the cart
        And I specified the billing address as "<NAME>", "Frost Alley", "90210", "United States" for "<NAME>"
        When I want to complete checkout
        Then I should be on the checkout shipping step

    @ui
    Scenario: Skipping payment checkout step
        Given I have product "PHP T-Shirt" in the cart
        And I specified the billing address as "<NAME>", "Frost Alley", "90210", "United States" for "<NAME>"
        And I have selected "Free" shipping method
        And I complete the shipping step
        When I want to complete checkout
        Then I should be on the checkout payment step

    @ui
    Scenario: Skipping addressing checkout step
        Given I have product "PHP T-Shirt" in the cart
        And I am at the checkout addressing step
        When I want to complete checkout
        Then I should be on the checkout addressing step

    @ui
    Scenario: Skipping addressing checkout step when order total is zero
        Given I have product "PHP T-Shirt" in the cart
        And I have product "Paganini T-Shirt" in the cart
        And I am at the checkout addressing step
        When I want to complete checkout
        Then I should be on the checkout addressing step

    @ui
    Scenario: Not being able to skip the checkout shipping selection step when order total is zero
        Given I have product "PHP T-Shirt" in the cart
        And I have product "Paganini T-Shirt" in the cart
        And I specified the billing address as "<NAME>", "Frost Alley", "90210", "United States" for "<NAME>"
        When I want to complete checkout
        Then I should be on the checkout shipping step

    @ui
    Scenario: Not being able go to payment checkout step when order total is zero and payments not exists
        Given I have product "PHP T-Shirt" in the cart
        And I have product "Paganini T-Shirt" in the cart
        And I specified the billing address as "<NAME>", "Frost Alley", "90210", "United States" for "<NAME>"
        And I have selected "Free" shipping method
        And I complete the shipping step
        When I want to pay for order
        Then I should be on the checkout complete step<commit_msg>add tag to more scenarios<commit_after>@checkout
Feature: Prevent skipping checkout steps
    In order to get back to the right checkout step after leaving
    As a Customer
    I want to be able to finish checkout process

    Background:
        Given the store operates on a single channel in "United States"
        And the store has a product "PHP T-Shirt" priced at "$19.99"
        And the store has a product "Paganini T-Shirt" priced at "$10.00"
        And there is a promotion "Holiday promotion"
        And the promotion gives "$29.99" discount to every order with quantity at least 2
        And the store ships everywhere for free
        And the store allows paying offline
        And I am a logged in customer

    @ui @no-api
    Scenario: Skipping shipping checkout step
        Given I have product "PHP T-Shirt" in the cart
        And I specified the billing address as "<NAME>", "Frost Alley", "90210", "United States" for "<NAME>"
        When I want to complete checkout
        Then I should be on the checkout shipping step

    @ui @no-api
    Scenario: Skipping payment checkout step
        Given I have product "PHP T-Shirt" in the cart
        And I specified the billing address as "<NAME>", "Frost Alley", "90210", "United States" for "<NAME>"
        And I have selected "Free" shipping method
        And I complete the shipping step
        When I want to complete checkout
        Then I should be on the checkout payment step

    @ui @no-api
    Scenario: Skipping addressing checkout step
        Given I have product "PHP T-Shirt" in the cart
        And I am at the checkout addressing step
        When I want to complete checkout
        Then I should be on the checkout addressing step

    @ui @no-api
    Scenario: Skipping addressing checkout step when order total is zero
        Given I have product "PHP T-Shirt" in the cart
        And I have product "Paganini T-Shirt" in the cart
        And I am at the checkout addressing step
        When I want to complete checkout
        Then I should be on the checkout addressing step

    @ui @no-api
    Scenario: Not being able to skip the checkout shipping selection step when order total is zero
        Given I have product "PHP T-Shirt" in the cart
        And I have product "Paganini T-Shirt" in the cart
        And I specified the billing address as "An<NAME>", "Frost Alley", "90210", "United States" for "<NAME>"
        When I want to complete checkout
        Then I should be on the checkout shipping step

    @ui @no-api
    Scenario: Not being able go to payment checkout step when order total is zero and payments not exists
        Given I have product "PHP T-Shirt" in the cart
        And I have product "Paganini T-Shirt" in the cart
        And I specified the billing address as "An<NAME>", "Frost Alley", "90210", "United States" for "<NAME>"
        And I have selected "Free" shipping method
        And I complete the shipping step
        When I want to pay for order
        Then I should be on the checkout complete step
{'fraction_non_alphanumeric': 0.048296394310287795, 'fraction_numerical': 0.010916308303010255, 'mean_word_length': 2.559152442613302, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '2011213', 'n_tokens_mistral': 1609, 'n_tokens_neox': 1486, 'n_words': 898}