<commit_before># TODO archived filters and sort
@companies-collection @collection
Feature: View collection of companies
  As an existing user
  I would like to view all the Companies in one place
  And be able to read the companies details as expected

  @companies-collection--view
  Scenario: View companies collection

    When a "Foreign company" is created
    Then I see the success message
    When I navigate to the Companies collection page
    Then I confirm I am on the Companies page
    And the results count header for companies is present
    And there is an Add company button in the collection header
    And I can view the Company in the collection
      | text               | expected                  |
      | Sector             | company.sector            |
      | Primary address    | company.primaryAddress    |
    And the Company has badges
      | text               | expected                  |
      | Country            | company.country           |
      | UK region          | company.ukRegion          |

  @companies-collection--filter
  Scenario: Filter companies list

    When a "UK non-private or non-public limited company" is created
    Then I see the success message
    When I navigate to the Companies collection page
    And I filter the companies list by company
    Then the companies should be filtered by company name
    When the company filter is cleared
    And I filter the companies list by sector
    Then the companies should be filtered by company sector
    When the sector filter is cleared<commit_msg>Add acceptance tests to make sure LEP/DA can view company collections<commit_after># TODO archived filters and sort
@companies-collection @collection
Feature: View collection of companies
  As an existing user
  I would like to view all the Companies in one place
  And be able to read the companies details as expected

  @companies-collection--view
  Scenario: View companies collection

    When a "Foreign company" is created
    Then I see the success message
    When I navigate to the Companies collection page
    Then I confirm I am on the Companies page
    And the results count header for companies is present
    And there is an Add company button in the collection header
    And I can view the Company in the collection
      | text               | expected                  |
      | Sector             | company.sector            |
      | Primary address    | company.primaryAddress    |
    And the Company has badges
      | text               | expected                  |
      | Country            | company.country           |
      | UK region          | company.ukRegion          |

  @companies-collection--view--lep @lep
  Scenario: View companies collection as LEP

    When I navigate to the Companies collection page
    Then I confirm I am on the Companies page
    And the results count header for companies is present

  @companies-collection--view--da @da
  Scenario: View companies collection as DA

    When I navigate to the Companies collection page
    Then I confirm I am on the Companies page
    And the results count header for companies is present

  @companies-collection--filter
  Scenario: Filter companies list

    When a "UK non-private or non-public limited company" is created
    Then I see the success message
    When I navigate to the Companies collection page
    And I filter the companies list by company
    Then the companies should be filtered by company name
    When the company filter is cleared
    And I filter the companies list by sector
    Then the companies should be filtered by company sector
    When the sector filter is cleared
{'fraction_non_alphanumeric': 0.029708367402562007, 'fraction_numerical': 0.0, 'mean_word_length': 2.3981481481481484, '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': '6027485', 'n_tokens_mistral': 829, 'n_tokens_neox': 800, 'n_words': 467}