<commit_before>Feature: Update a profile

  Background: 
    Given a confirmed user exists with login: "mislav", first_name: "Mislav", last_name: "Marohnić"
    And I am logged in as "mislav"
    When I go to the account settings page

  Scenario: Mislav updates his profile
    When I follow "Profile Information"
    Then I should see "Your Profile Settings" within "h2"
    When I fill in the following:
      | First name | Mis                      |
      | Last name  | Mar                      |
      | Biography  | Ruby Rockstar Programmer |
    And I press "Update account"
    Then I should see "User profile updated!"
    When I follow "mislav"
    Then I should see "<NAME>"
    And I should see "Ruby Rockstar Programmer"

  Scenario: Mislav updates his profile picture
    When I follow "Profile Picture"
    Then I should see "Your Profile Picture"
    When I attach the file "features/support/sample_files/dragon.jpg" to "user_avatar"
    And I press "Update account"
    Then I should not see missing avatar image within ".column"

  Scenario: Mislav fails to update his profile picture with blank

  Scenario: Mislav fails to update his profile picture because its too big

  Scenario: Mislav updates his notifications
    When I follow "Notifications"
    Then I should see "Your Notifications"
    When I check "Notify me when I'm mentioned e.g. Howdy @mislav! You'll receive an email!"
    And I uncheck "Notify me when I'm watching a conversation"
    And I check "Notify me when I'm watching a task list"
    And I check "Notify me when I'm watching a task"
    And I check "Send me a daily email of my tasks"
    And I press "Update account"
    Then I should see "User profile updated!"
    When I follow "Notifications"
    Then I should see "Your Notifications"
    And the "Notify me when I'm mentioned e.g. Howdy @mislav! You'll receive an email!" checkbox should be checked
    And the "Notify me when I'm watching a conversation" checkbox should not be checked
    And the "Notify me when I'm watching a task list" checkbox should be checked
    And the "Notify me when I'm watching a task" checkbox should be checked
    And the "Send me a daily email of my tasks" checkbox should be checked

  Scenario: Mislav updates his username
    When I follow "Account Settings"
    Then I should see "Your Account Settings"
    When I fill in "Username" with "mislavrocks"
    And I press "Update account"
    Then I should see "User profile updated!"
    And I should see "mislavrocks"

  Scenario: Mislav fails to update his username because its already in use

  Scenario: Mislav fails to update his username with invalid format

  Scenario: Mislav updates his card profile information

  # Given I follow "Profile Information"
  #   And I should see "Your Profile Settings" within "h2"
  #  When I follow "+ Add Phone Number"
  #    And I fill in "user_card_attributes_phone_numbers_attributes_1260832025948_name" with "123456789"
  Scenario: Mislav fails to update his profile information

<commit_msg>fix cucumber broken in e0c13079<commit_after>Feature: Update a profile

  Background: 
    Given a confirmed user exists with login: "mislav", first_name: "Mislav", last_name: "Marohnić"
    And I am logged in as "mislav"
    When I go to the account settings page

  Scenario: Mislav updates his profile
    When I follow "Profile Information"
    Then I should see "Your Profile Settings" within "h2"
    When I fill in the following:
      | First name | Mis                      |
      | Last name  | Mar                      |
      | Biography  | Ruby Rockstar Programmer |
    And I press "Update account"
    Then I should see "User profile updated!"
    When I follow "mislav"
    Then I should see "<NAME>"
    And I should see "Ruby Rockstar Programmer"

  Scenario: Mislav updates his profile picture
    When I follow "Profile Picture"
    Then I should see "Your Profile Picture"
    When I attach the file "features/support/sample_files/dragon.jpg" to "user_avatar"
    And I press "Update account"
    Then I should not see missing avatar image within ".column"

  Scenario: Mislav fails to update his profile picture with blank

  Scenario: Mislav fails to update his profile picture because its too big

  Scenario: Mislav updates his notifications
    When I follow "Notifications"
    Then I should see "Your Notifications"
    When I check "Notify me when I'm mentioned e.g. Howdy @mislav! You'll receive an email!"
    And I uncheck "Notify me when I'm watching a conversation"
    And I check "Notify me when I'm watching a task list"
    And I check "Notify me when I'm watching a task"
    And I check "Send me a daily email reminder of my tasks"
    And I press "Update account"
    Then I should see "User profile updated!"
    When I follow "Notifications"
    Then I should see "Your Notifications"
    And the "Notify me when I'm mentioned e.g. Howdy @mislav! You'll receive an email!" checkbox should be checked
    And the "Notify me when I'm watching a conversation" checkbox should not be checked
    And the "Notify me when I'm watching a task list" checkbox should be checked
    And the "Notify me when I'm watching a task" checkbox should be checked
    And the "Send me a daily email reminder of my tasks" checkbox should be checked

  Scenario: Mislav updates his username
    When I follow "Account Settings"
    Then I should see "Your Account Settings"
    When I fill in "Username" with "mislavrocks"
    And I press "Update account"
    Then I should see "User profile updated!"
    And I should see "mislavrocks"

  Scenario: Mislav fails to update his username because its already in use

  Scenario: Mislav fails to update his username with invalid format

  Scenario: Mislav updates his card profile information

  # Given I follow "Profile Information"
  #   And I should see "Your Profile Settings" within "h2"
  #  When I follow "+ Add Phone Number"
  #    And I fill in "user_card_attributes_phone_numbers_attributes_1260832025948_name" with "123456789"
  Scenario: Mislav fails to update his profile information


{'fraction_non_alphanumeric': 0.05213114754098361, 'fraction_numerical': 0.008852459016393442, 'mean_word_length': 3.239749826268242, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2739239', 'n_tokens_mistral': 1722, 'n_tokens_neox': 1622, 'n_words': 866}