<commit_before>Feature: Creating a project

  Background:
    Given @jordi exists and is logged in
    And I go to the new project page

  Scenario Outline: Mislav creates two valid projects and fails to create an invalid project
    When I fill in the following:
      | Name         | <name>   |
      | Organization | ACME     |
    And I press "Create project and start collaborating"
    Then I should see "<response>"
    And I should see "<flash>"

    Examples: 
      | name                  | response          | flash                          |
      | Title with ()_+&-     | Title with ()_+&- | Your project has been created! |
      | Ruby Rockstars        | Ruby Rockstars    | Your project has been created! |
      | Mine                  | Invalid project   | Invalid project                |

  Scenario: I don't fill in an organization name
    When I fill in "Name" with "<NAME>"
    And I press "Create project"
    Then I should see "is too short"

  Scenario: I pick up one organization where I'm an admin
    Given I am an administrator in the organization called "ACME"
    And I go to the new project page
    When I fill in "Name" with "<NAME>"
    And I select "ACME" from "Organization"
    And I press "Create project"
    Then I should see "Your project has been created"


  Scenario: I ought to have already joined the project I created, not another random project
    Given I am an administrator in the organization called "ACME"
    And I go to the new project page
    When I fill in "Name" with "<NAME>"
    And I select "ACME" from "Organization"
    And I press "Create project"
    Then I should see "Your project has been created"
    And I should not see "Join"
    And I go to the new project page                      #We do this two times because we have to make sure that it's the correct (our) project we are added to
    And I fill in "Name" with "ACME Awesome Project #2"
    And I select "ACME" from "Organization"
    And I press "Create project"
    And I should see "Your project has been created"
    And I should not see "Join"
<commit_msg>Fix project creation feature to reflect the new two step process<commit_after>Feature: Creating a project

  Background:
    Given @jordi exists and is logged in
    And I go to the new project page

  Scenario Outline: Mislav creates two valid projects and fails to create an invalid project
    When I fill in the following:
      | Name         | <name>   |
      | Organization | ACME     |
    And I press "Create project and invite members"
    Then I should see "<response>"
    And I should see "<flash>"

    Examples: 
      | name                  | response          | flash           |
      | Title with ()_+&-     | Title with ()_+&- | Invite people   |
      | Ruby Rockstars        | Ruby Rockstars    | Invite people   |
      | Mine                  | Invalid project   | Invalid project |

  Scenario: I don't fill in an organization name
    When I fill in "Name" with "Some project"
    And I press "Create project"
    Then I should see "is too short"

  Scenario: I pick up one organization where I'm an admin
    Given I am an administrator in the organization called "ACME"
    And I go to the new project page
    When I fill in "Name" with "ACME Awesome Project"
    And I select "ACME" from "Organization"
    And I press "Create project"
    Then I should see "Invite people"


  Scenario: I ought to have already joined the project I created, not another random project
    Given I am an administrator in the organization called "ACME"
    And I go to the new project page
    When I fill in "Name" with "ACME Awesome Project"
    And I select "ACME" from "Organization"
    And I press "Create project"
    Then I should see "Invite people"
    And I should not see "Join"
    And I go to the new project page                      #We do this two times because we have to make sure that it's the correct (our) project we are added to
    And I fill in "Name" with "ACME Awesome Project #2"
    And I select "ACME" from "Organization"
    And I press "Create project"
    And I go to the projects page
    And I should not see "Join"

{'fraction_non_alphanumeric': 0.05719778899303052, 'fraction_numerical': 0.0004806536890170632, 'mean_word_length': 2.356451612903226, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '6516396', 'n_tokens_mistral': 1118, 'n_tokens_neox': 1070, 'n_words': 605}