<commit_before>@smoke-tests @opportunities
Feature: Passive opportunity supplier journey

Scenario: User can see the main links on the homepage
  Given I am on the homepage
  Then I see the 'INTENTIONALLY BROKEN View Digital Outcomes and Specialists opportunities' link

Scenario: User can click through to opportunities page
  Given I am on the homepage
  When I click 'View Digital Outcomes and Specialists opportunities'
  Then I am on the 'Digital Outcomes and Specialists opportunities' page
  And I see an opportunity in the search results

Scenario: User is able to navigate to opportunity detail page via selecting the opportunity from the search results
  Given I am on the /digital-outcomes-and-specialists/opportunities page
  When I click a random result in the list of opportunity results returned
  Then I am on that result.title page

Scenario Outline: User can filter by individual lot
  Given I am on the /digital-outcomes-and-specialists/opportunities page
  When I note the result_count
  And I check '<lot>' checkbox
  And I click the 'Filter' button
  Then I see that the stated number of results does not exceed that result_count
  And I see all the opportunities on the page are on the '<lot>' lot

  Examples:
    | lot                        |
    | Digital specialists        |
    | Digital outcomes           |<commit_msg>Fix intentionally broken test<commit_after>@smoke-tests @opportunities
Feature: Passive opportunity supplier journey

Scenario: User can see the main links on the homepage
  Given I am on the homepage
  Then I see the 'View Digital Outcomes and Specialists opportunities' link

Scenario: User can click through to opportunities page
  Given I am on the homepage
  When I click 'View Digital Outcomes and Specialists opportunities'
  Then I am on the 'Digital Outcomes and Specialists opportunities' page
  And I see an opportunity in the search results

Scenario: User is able to navigate to opportunity detail page via selecting the opportunity from the search results
  Given I am on the /digital-outcomes-and-specialists/opportunities page
  When I click a random result in the list of opportunity results returned
  Then I am on that result.title page

Scenario Outline: User can filter by individual lot
  Given I am on the /digital-outcomes-and-specialists/opportunities page
  When I note the result_count
  And I check '<lot>' checkbox
  And I click the 'Filter' button
  Then I see that the stated number of results does not exceed that result_count
  And I see all the opportunities on the page are on the '<lot>' lot

  Examples:
    | lot                        |
    | Digital specialists        |
    | Digital outcomes           |
{'fraction_non_alphanumeric': 0.03339517625231911, 'fraction_numerical': 0.0, 'mean_word_length': 3.554054054054054, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3012951', 'n_tokens_mistral': 669, 'n_tokens_neox': 643, 'n_words': 379}