<commit_before>@customer_registration
Feature: Account registration
    In order to make future purchases with ease
    As a Visitor
    I need to be able to create an account in the store

    Background:
        Given the store operates on a single channel in "United States"

    @ui
    Scenario: Registering a new account with minimum information
        When I want to register a new account
        And I specify the first name as "Saul"
        And I specify the last name as "Goodman"
        And I specify the email as "<EMAIL>"
        And I specify the password as "<PASSWORD>"
        And I confirm this password
        And I register this account
        Then I should be notified that new account has been successfully created
        But I should not be logged in

    @ui
    Scenario: Registering a new account with all details
        When I want to register a new account
        And I specify the first name as "Saul"
        And I specify the last name as "Goodman"
        And I specify the email as "<EMAIL>"
        And I specify the password as "<PASSWORD>"
        And I confirm this password
        And I specify the phone number as "123456789"
        And I register this account
        Then I should be notified that new account has been successfully created
        But I should not be logged in

    @ui
    Scenario: Registering a guest account
        Given there is a customer "<EMAIL>" that placed an order "#001"
        When I want to register a new account
        And I specify the first name as "Saul"
        And I specify the last name as "Goodman"
        And I specify the email as "<EMAIL>"
        And I specify the password as "<PASSWORD>"
        And I confirm this password
        And I register this account
        Then I should be notified that new account has been successfully created
        But I should not be logged in

    @ui @email
    Scenario: Receiving a welcoming email after registration
        When I register with email "<EMAIL>" and password "<PASSWORD>"
        Then I should be notified that new account has been successfully created
        And a welcoming email should have been sent to "<EMAIL>"
<commit_msg>[Behat][Account] Add scenarios for registering when channel has disabled registration confirmation<commit_after>@customer_registration
Feature: Account registration
    In order to make future purchases with ease
    As a Visitor
    I need to be able to create an account in the store

    Background:
        Given the store operates on a single channel in "United States"

    @ui
    Scenario: Registering a new account with minimum information
        When I want to register a new account
        And I specify the first name as "Saul"
        And I specify the last name as "Goodman"
        And I specify the email as "<EMAIL>"
        And I specify the password as "<PASSWORD>"
        And I confirm this password
        And I register this account
        Then I should be notified that new account has been successfully created
        But I should not be logged in

    @ui @todo
    Scenario: Registering a new account with minimum information when channel has disabled registration verification
        Given on this channel registration verification is disabled
        When I want to register a new account
        And I specify the first name as "Saul"
        And I specify the last name as "Goodman"
        And I specify the email as "<EMAIL>"
        And I specify the password as "<PASSWORD>"
        And I confirm this password
        And I register this account
        Then I should be notified that new account has been successfully created
        And I should be logged in

    @ui
    Scenario: Registering a new account with all details
        When I want to register a new account
        And I specify the first name as "Saul"
        And I specify the last name as "Goodman"
        And I specify the email as "<EMAIL>"
        And I specify the password as "<PASSWORD>"
        And I confirm this password
        And I specify the phone number as "123456789"
        And I register this account
        Then I should be notified that new account has been successfully created
        But I should not be logged in

    @ui
    Scenario: Registering a guest account
        Given there is a customer "<EMAIL>" that placed an order "#001"
        When I want to register a new account
        And I specify the first name as "Saul"
        And I specify the last name as "Goodman"
        And I specify the email as "<EMAIL>"
        And I specify the password as "<PASSWORD>"
        And I confirm this password
        And I register this account
        Then I should be notified that new account has been successfully created
        But I should not be logged in

    @ui @email
    Scenario: Receiving a welcoming email after registration
        When I register with email "<EMAIL>" and password "<PASSWORD>"
        Then I should be notified that new account has been successfully created
        And a welcoming email should have been sent to "<EMAIL>"

    @ui @email @todo
    Scenario: Receiving a verification email after registration
        When I register with email "<EMAIL>" and password "<PASSWORD>"
        Then I should be notified that new account has been successfully created
        And a verification email should have been sent to "<EMAIL>"

    @ui @email @todo
    Scenario: Not receiving a verification email after registration when channel has disabled registration verification
        Given on this channel registration verification is disabled
        When I register with email "<EMAIL>" and password "<PASSWORD>"
        Then I should be notified that new account has been successfully created
        And a verification email should not have been sent to "<EMAIL>"

{'fraction_non_alphanumeric': 0.03415722622725712, 'fraction_numerical': 0.004119464469618949, 'mean_word_length': 2.548721071863581, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '2747206', 'n_tokens_mistral': 1353, 'n_tokens_neox': 1299, 'n_words': 844}