<commit_before>Feature: User logs in using header login box to use the portal

  As a user
  I want to login
  In order to use the portal
  
  Background:
    Given The default project and jnlp resources exist using factories
    And the following teachers exist:
      | login   | password | first_name | last_name |
      | teacher | teacher  | John       | Nash      |
    And the following students exist:
      | login   | password | first_name | last_name |
      | student | student  | Albert     | Chuck     |
    And the following users exist:
      | login   | password | roles          |
      | author  | author   | member, author |
      | myadmin | myadmin  | admin          |
      | manager | manager  | manager        |
      
      
  Scenario: Teacher should be logged in
    When I login with username: teacher password: <PASSWORD>
    Then I should see "Logged in successfully"
    And I should not see "Forgot your user name or password?"
    
    
  Scenario: Student should be logged in
    When I login with username: student password: <PASSWORD>
    Then I should see "Logged in successfully"
    And I should not see "Forgot your user name or password?"
    
    
  Scenario: Other user with different roles should be logged in
    When I login with username: author password: <PASSWORD>
    Then I should see "Logged in successfully"
    And I should not see "Forgot your user name or password?"
    When I login with username: myadmin password: <PASSWORD>
    Then I should see "Logged in successfully"
    And I should not see "Forgot your user name or password?"
    When I login with username: manager password: <PASSWORD>
    Then I should see "Logged in successfully"
    And I should not see "Forgot your user name or password?"
    
    
  Scenario: Anonymous user cannot see the full status page
    When I am an anonymous user
    And I am on the home page
    Then I should see "Forgot your user name or password?" within header sign in box
    
    <commit_msg>Add feature test for the link pickup signup page<commit_after>Feature: User logs in using header login box to use the portal

  As a user
  I want to login
  In order to use the portal
  
  Background:
    Given The default project and jnlp resources exist using factories
    And the following teachers exist:
      | login   | password | first_name | last_name |
      | teacher | teacher  | John       | Nash      |
    And the following students exist:
      | login   | password | first_name | last_name |
      | student | student  | Albert     | Chuck     |
    And the following users exist:
      | login   | password | roles          |
      | author  | author   | member, author |
      | myadmin | myadmin  | admin          |
      | manager | manager  | manager        |
      
      
  Scenario: Teacher should be logged in
    When I login with username: teacher password: <PASSWORD>
    Then I should see "Logged in successfully"
    And I should not see "Forgot your user name or password?"
    
    
  Scenario: Student should be logged in
    When I login with username: student password: <PASSWORD>
    Then I should see "Logged in successfully"
    And I should not see "Forgot your user name or password?"
    
    
  Scenario: Other user with different roles should be logged in
    When I login with username: author password: <PASSWORD>
    Then I should see "Logged in successfully"
    And I should not see "Forgot your user name or password?"
    When I login with username: myadmin password: <PASSWORD>
    Then I should see "Logged in successfully"
    And I should not see "Forgot your user name or password?"
    When I login with username: manager password: <PASSWORD>
    Then I should see "Logged in successfully"
    And I should not see "Forgot your user name or password?"
    
    
  Scenario: Anonymous user cannot see the full status page
    When I am an anonymous user
    And I am on the home page
    Then I should see "Forgot your user name or password?" within header sign in box
    
    
  Scenario: Anonymous user should land to the pick signup page
    When I am an anonymous user
    And I am on the home page
    And I follow "Sign up for an account"
    Then I should be on "the pick signup page"
    
    
  
{'fraction_non_alphanumeric': 0.04666979362101313, 'fraction_numerical': 0.0, 'mean_word_length': 2.490180032733224, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3429849', 'n_tokens_mistral': 1120, 'n_tokens_neox': 1097, 'n_words': 588}