<commit_before># This file belongs to Kreta.
# The source code of application includes a LICENSE file
# with all information about license.
#
# @author benatespina <<EMAIL>>
# @author gorkalaucirica <<EMAIL>>

@authentication
Feature: Manage authentication
  In order to manage authentication
  As a logged user
  I want to be able to register, login and logout

  Background:
    Given the following users exist:
      | username | firstName | lastName | email          | password |
      | user     | Kreta     | User     | <EMAIL> | 123456   |
    And the OAuth client is loaded

  Scenario: Login successfully
    Given I am on "/login"
    When I fill in the following:
      | username | <EMAIL> |
      | password | <PASSWORD>         |
    And I press "Login"
    Then I should be on the dashboard
    And I should see refresh_token and access_token cookies

  Scenario: Logout successfully
    Given I am a logged as '<EMAIL>' with password '<PASSWORD>'
    Then I follow "Logout"
    Then I should be on the login
    And I should not see refresh_token and access_token cookies

  Scenario: Login with invalid credentials
    Given I am on "/login"
    When I fill in the following:<commit_msg>Removed unnecessary scenario<commit_after># This file belongs to Kreta.
# The source code of application includes a LICENSE file
# with all information about license.
#
# @author benatespina <<EMAIL>>
# @author gorkalaucirica <<EMAIL>>

@authentication
Feature: Manage authentication
  In order to manage authentication
  As a logged user
  I want to be able to register, login and logout

  Background:
    Given the following users exist:
      | username | firstName | lastName | email          | password |
      | user     | Kreta     | User     | <EMAIL> | 123456   |
    And the OAuth client is loaded

  Scenario: Login successfully
    Given I am on "/login"
    When I fill in the following:
      | username | <EMAIL> |
      | password | <PASSWORD>         |
    And I press "Login"
    Then I should be on the dashboard
    And I should see refresh_token and access_token cookies

  Scenario: Login with invalid credentials
    Given I am on "/login"
    When I fill in the following:
{'fraction_non_alphanumeric': 0.06133575647432985, 'fraction_numerical': 0.005452067242162653, 'mean_word_length': 2.869947275922671, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '7482592', 'n_tokens_mistral': 610, 'n_tokens_neox': 592, 'n_words': 282}