<commit_before>@companies-heirarchies @heirarchies
Feature: Company details

@companies-heirarchies-set-hq
  Scenario: Set a company to a Global HQ
    When I navigate to the `companies.fixture` page using `company` `Lambda plc` fixture
    Then I click the "Edit company details" link
    And I change "headquarter_type" radio button option to "Global HQ"
    And I submit the form
    Then I see the success message

@companies-heirarchies-link
  Scenario: Add a subsidiary

    When I navigate to the `companies.fixture` page using `company` `Lambda plc` fixture
    Then I click the "Subsidiaries" link
    Then I click the "Link a subsidiary" link
    And I change form text field "term" to Mars
    And I submit the form
    And I choose the first item in the collection
    Then I see the success message

@companies-heirarchies-details

  Scenario: View subsidiaries
    When I navigate to the `companies.fixture` page using `company` `Lambda plc` fixture
    Then I click the "Subsidiaries" link
    And I can view the collection

@companies-heirarchies-remove-subsidiary
  Scenario: Remove a subsidiary
    When I navigate to the `companies.fixture` page using `company` `Lambda plc` fixture
    Then I click the "Subsidiaries" link
    And I click the "Remove subsidiary" link
    Then I see the success message

@companies-heirarchies-teardown
  Scenario: Company can be set back to 'not a headquarters' again
    When I navigate to the `companies.fixture` page using `company` `Lambda plc` fixture
    Then I click the "Edit company details" link
    And I change "headquarter_type" radio button option to "Not a headquarters"
    And I submit the form
    Then I see the success message<commit_msg>Tidy up subsidiaries feature file<commit_after>@companies-subsidiaries @subsidiaries
Feature: Company subsidiaries

  @companies-subsidiaries--set-hq
  Scenario: Set a company to a Global HQ
    When I navigate to the `companies.fixture` page using `company` `Lambda plc` fixture
    Then I click the "Edit company details" link
    And I change "headquarter_type" radio button option to "Global HQ"
    And I submit the form
    Then I see the success message

  @companies-subsidiaries--link
  Scenario: Add a subsidiary
    When I navigate to the `companies.fixture` page using `company` `Lambda plc` fixture
    Then I click the "Subsidiaries" link
    Then I click the "Link a subsidiary" link
    And I change form text field "term" to Mars
    And I submit the form
    And I choose the first item in the collection
    Then I see the success message

  @companies-subsidiaries--details
  Scenario: View subsidiaries
    When I navigate to the `companies.fixture` page using `company` `Lambda plc` fixture
    Then I click the "Subsidiaries" link
    And I can view the collection

  @companies-subsidiaries--remove-subsidiary
  Scenario: Remove a subsidiary
    When I navigate to the `companies.fixture` page using `company` `Lambda plc` fixture
    Then I click the "Subsidiaries" link
    And I click the "Remove subsidiary" link
    Then I see the success message

  @companies-subsidiaries--teardown
  Scenario: Company can be set back to 'not a headquarters' again
    When I navigate to the `companies.fixture` page using `company` `Lambda plc` fixture
    Then I click the "Edit company details" link
    And I change "headquarter_type" radio button option to "Not a headquarters"
    And I submit the form
    Then I see the success message
{'fraction_non_alphanumeric': 0.05332948976650331, 'fraction_numerical': 0.0, 'mean_word_length': 3.663978494623656, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3952067', 'n_tokens_mistral': 1031, 'n_tokens_neox': 977, 'n_words': 469}