<commit_before>Feature: User account profile edition
    In order to manage my personal information
    As a logged user
    I want to be able to edit my name and my email

    Background:
        Given I am logged in user
          And I am on my account homepage

    Scenario: Viewing my personal information page
        Given I follow "My personal information"
         Then I should be on the account profile page

    Scenario: Editing my information with a blank email
        Given I am on the account profile page
         When I leave "Email" field blank
          And I fill in "Firstname" with "John"
          And I fill in "Lastname" with "Doe"
         Then I should still be on the account profile page
          And I should see "Please, enter your email"

    Scenario: Editing my information with a blank firstname
        Given I am on the account profile page
         When I fill in "Email" with "<EMAIL>"
          And I leave "Firstname" field blank
          And I fill in "Lastname" with "Doe"
         Then I should still be on the account profile page
          And I should see "Please, enter your firstname"

    Scenario: Editing my information with a blank lasttname
        Given I am on the account profile page
         When I fill in "Email" with "<EMAIL>"
          And I fill in "Firstname" with "John"
          And I leave "Lastname" field blank
         Then I should still be on the account profile page
          And I should see "Please, enter your lastname"

    Scenario: Editing my information with an invalid email
        Given I am on the account profile page
         When I fill in "Email" with "wrongemail"
          And I fill in "Firstname" with "John"
          And I fill in "Lastname" with "Doe"
         Then I should still be on the account profile page
          And I should see "This value is not a valid email address"


- <commit_msg>Behat scenarios OK for profile edition<commit_after>Feature: User account profile edition
    In order to manage my personal information
    As a logged user
    I want to be able to edit my name and my email

    Background:
        Given I am logged in user
          And I am on my account homepage

    Scenario: Viewing my personal information page
        Given I follow "My personal information"
         Then I should be on my account profile edition page

    Scenario: Editing my information with a blank email
        Given I am on my account profile edition page
         When I leave "Email" field blank
          And I fill in "First name" with "John"
          And I fill in "Last name" with "Doe"
          And I fill in "Username" with "jdoe"
          And I press "Save changes"
         Then I should still be on my account profile edition page
          And I should see "Please enter an email"

    Scenario: Editing my information with a blank first name
        Given I am on my account profile edition page
         When I fill in "Email" with "<EMAIL>"
          And I leave "First name" field blank
          And I fill in "Last name" with "Doe"
          And I fill in "Username" with "jdoe"
          And I press "Save changes"
         Then I should still be on my account profile edition page
          And I should see "Please enter a first name"

    Scenario: Editing my information with a blank last name
        Given I am on my account profile edition page
         When I fill in "Email" with "<EMAIL>"
          And I fill in "First name" with "John"
          And I leave "Last name" field blank
          And I fill in "Username" with "jdoe"
          And I press "Save changes"
         Then I should still be on my account profile edition page
          And I should see "Please enter a last name"

    Scenario: Editing my information with a blank username
        Given I am on my account profile edition page
         When I fill in "Email" with "<EMAIL>"
          And I fill in "First name" with "John"
          And I fill in "Last name" with "Doe"
          And I leave "Username" field blank
          And I press "Save changes"
         Then I should still be on my account profile edition page
          And I should see "Please enter a username"

    Scenario: Editing my information with an invalid email
        Given I am on my account profile edition page
         When I fill in "Email" with "wrongemail"
          And I fill in "First name" with "John"
          And I fill in "Last name" with "Doe"
          And I fill in "Username" with "jdoe"
          And I press "Save changes"
         Then I should still be on my account profile edition page
          And I should see "The email is not valid"

    Scenario: Successfully editing my personal information
        Given I am on my account profile edition page
         When I fill in "Email" with "<EMAIL>"
          And I fill in "First name" with "John"
          And I fill in "Last name" with "Doe"
          And I fill in "Username" with "jdoe"
          And I press "Save changes"
         Then I should be on my account profile page
          And I should see "Your personal information have been updated"
- 
{'fraction_non_alphanumeric': 0.0399532254921068, 'fraction_numerical': 0.0, 'mean_word_length': 2.1503990178023327, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5989016', 'n_tokens_mistral': 1269, 'n_tokens_neox': 1249, 'n_words': 778}