<commit_before>Feature: Log Healthy Activity

  As an employee
  So that I can get credit/money for exercise
  I want to log my healthy activity for the day

Background:
  Given the following users exist:
  | email                       | password              | password_confirmation |    
  | <EMAIL>    | <PASSWORD>pot<PASSWORD>       | <PASSWORD>       |
  Given I am logged in
  And I am on the home page

@javascript
Scenario: Adding one exercise
  When I fill in activity with:Running 80
  And I write the captcha text in the textbox
  And I press “Submit”
  Then I should be on my profile page
  And I should see "Running for 80 minutes has been recorded"

@javascript
Scenario: Adding multiple exercises
  When I fill in activity with:Running 90,Lifting 100
  And I write the captcha text in the textbox
  And I press “Submit”
  Then I should be on my profile page
  And I should see "Running for 90 minutes has been recorded"
  And I should see "Lifting for 100 minutes has been recorded"

@javascript
Scenario: Adding one exercise without duration
  When I fill in activity with:Running 
  And I write the captcha text in the textbox
  And I press “Submit”
  Then I should be on the home page
  And I should see "Duration can't be blank"

@javascript
Scenario: Adding one exercise with less than 0 minutes
  When I fill in activity with:Running -1
  And I write the captcha text in the textbox
  And I press “Submit”
  Then I should be on the home page
  And I should see "Duration can't be less than 0"

@javascript
Scenario: Adding one exercise with greater than 1440 minutes
  When I fill in activity with:Running 1441
  And I write the captcha text in the textbox
  And I press “Submit”
  Then I should be on the home page
  And I should see "Duration can't be over 24 hours"

@javascript
Scenario: Adding one exercise with less than 60 minutes
  When I fill in activity with:Running 30
  And I write the captcha text in the textbox
  And I press “Submit”
  Then I should be on the home page
  And I should see "Total can't be less than 60"

@javascript
Scenario: Submitting a blank form
  When I write the captcha text in the textbox
  And I press “Submit”
  Then I should be on the home page
  And I should see "Fields are empty"

@javascript
Scenario: Adding multiple exercises with less than 60 minutes total
  When I fill in activity with:Running 20,Crying 10
  And I write the captcha text in the textbox
  And I press “Submit”
  Then I should be on the home page
  And I should see "Total can't be less than 60"<commit_msg>added cucumber test total time<commit_after>Feature: Log Healthy Activity

  As an employee
  So that I can get credit/money for exercise
  I want to log my healthy activity for the day

Background:
  Given the following users exist:
  | email                       | password              | password_confirmation |    
  | <EMAIL>    | northsidepotato       | northsidepotato       |
  Given I am logged in
  And I am on the home page

@javascript
Scenario: Adding one exercise
  When I fill in activity with:Running 80
  And I write the captcha text in the textbox
  And I press “Submit”
  Then I should be on my profile page
  And I should see "Running for 80 minutes has been recorded"

@javascript
Scenario: Adding multiple exercises
  When I fill in activity with:Running 90,Lifting 100
  And I write the captcha text in the textbox
  And I press “Submit”
  Then I should be on my profile page
  And I should see "Running for 90 minutes has been recorded"
  And I should see "Lifting for 100 minutes has been recorded"

@javascript
Scenario: Adding one exercise without duration
  When I fill in activity with:Running 
  And I write the captcha text in the textbox
  And I press “Submit”
  Then I should be on the home page
  And I should see "Duration can't be blank"

@javascript
Scenario: Adding one exercise with less than 0 minutes
  When I fill in activity with:Running -1
  And I write the captcha text in the textbox
  And I press “Submit”
  Then I should be on the home page
  And I should see "Duration can't be less than 0"

@javascript
Scenario: Adding one exercise with greater than 1440 minutes
  When I fill in activity with:Running 1441
  And I write the captcha text in the textbox
  And I press “Submit”
  Then I should be on the home page
  And I should see "Duration can't be over 24 hours"

@javascript
Scenario: Adding one exercise with greater than 1440 minutes
  When I fill in activity with:Running 1430,Hockey 11
  And I write the captcha text in the textbox
  And I press “Submit”
  Then I should be on the home page
  And I should see "Total can't be more than 24 hours"

@javascript
Scenario: Adding one exercise with less than 60 minutes
  When I fill in activity with:Running 30
  And I write the captcha text in the textbox
  And I press “Submit”
  Then I should be on the home page
  And I should see "Total can't be less than 60"

@javascript
Scenario: Submitting a blank form
  When I write the captcha text in the textbox
  And I press “Submit”
  Then I should be on the home page
  And I should see "Fields are empty"

@javascript
Scenario: Adding multiple exercises with less than 60 minutes total
  When I fill in activity with:Running 20,Crying 10
  And I write the captcha text in the textbox
  And I press “Submit”
  Then I should be on the home page
  And I should see "Total can't be less than 60"
{'fraction_non_alphanumeric': 0.0331973293768546, 'fraction_numerical': 0.017433234421364987, 'mean_word_length': 3.335209003215434, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '3088999', 'n_tokens_mistral': 1584, 'n_tokens_neox': 1458, 'n_words': 891}