<commit_before>@search
Feature: Filters on shows search

  As a user
  I want to use search filters
  So I can find shows

  Background:
    Given I am on the English language home page
    And a profile with the following fields:
      | name | My Favorite Playwright |
    And I am logged in
    And I go to the "show" add page
    And I fill in ".show-name-edit" with "Sofia"
    And I fill in ".show-author-name-edit" with "My Favorite Playwright"
    And I click on ".autocomplete-results li"
    And I fill in ".show-about-edit" with "Most popular name in Italy"
    And I select "Musical Theatre" from the ".interests-edit" combobox
    And I click on ".edit-show-save"
    # Add Second Show
    And I go to the "show" add page
    And I fill in ".show-name-edit" with "Aadya"
    And I fill in ".show-author-name-edit" with "My Favorite Playwright"
    And I click on ".autocomplete-results li"
    And I fill in ".show-about-edit" with "Most popular name in India"
    And I select "African-American" from the ".interests-edit" combobox
    And I click on ".edit-show-save"
    And I go to the "shows" search page
    And the ".search-type .active" element should contain "Shows"
    And I should not see ".search-results"

  # Interests
  Scenario: Users can filter shows by interest
    When I select "Musical Theatre" from the ".interests-edit" combobox
    And the ".search-results" element should contain "Sofia"
    And the ".search-results" element should not contain "Aadya"

  Scenario: Choosing multiple interests should match two different shows that each have one of the interests
    When I select "Musical Theatre" from the ".interests-edit" combobox
    And I select "African-American" from the ".interests-edit" combobox
    And the ".search-results" element should contain "Sofia"
    And the ".search-results" element should contain "Aadya"

  Scenario: Users can search for shows by name (partial/full, different case variations)
    # Full name, match case
    When I fill in ".show-search-text" with "Sofia"
    And the ".search-results" element should contain "Sofia"
    And the ".search-results" element should not contain "Aadya"
    # Full name, different case
    When I fill in ".show-search-text" with "sofia"
    And the ".search-results" element should contain "Sofia"
    # Partial name (begining), match case
    When I fill in ".show-search-text" with "Sof"
    And the ".search-results" element should contain "Sofia"
    # Partial name (end), match case
    When I fill in ".show-search-text" with "fia"
    And the ".search-results" element should contain "Sofia"<commit_msg>Comment out test for show search textbox since its temporarily disabled.<commit_after>@search
Feature: Filters on shows search

  As a user
  I want to use search filters
  So I can find shows

  Background:
    Given I am on the English language home page
    And a profile with the following fields:
      | name | My Favorite Playwright |
    And I am logged in
    And I go to the "show" add page
    And I fill in ".show-name-edit" with "Sofia"
    And I fill in ".show-author-name-edit" with "My Favorite Playwright"
    And I click on ".autocomplete-results li"
    And I fill in ".show-about-edit" with "Most popular name in Italy"
    And I select "Musical Theatre" from the ".interests-edit" combobox
    And I click on ".edit-show-save"
    # Add Second Show
    And I go to the "show" add page
    And I fill in ".show-name-edit" with "Aadya"
    And I fill in ".show-author-name-edit" with "My Favorite Playwright"
    And I click on ".autocomplete-results li"
    And I fill in ".show-about-edit" with "Most popular name in India"
    And I select "African-American" from the ".interests-edit" combobox
    And I click on ".edit-show-save"
    And I go to the "shows" search page
    And the ".search-type .active" element should contain "Shows"
    And I should not see ".search-results"

  # Interests
  Scenario: Users can filter shows by interest
    When I select "Musical Theatre" from the ".interests-edit" combobox
    And the ".search-results" element should contain "Sofia"
    And the ".search-results" element should not contain "Aadya"

  Scenario: Choosing multiple interests should match two different shows that each have one of the interests
    When I select "Musical Theatre" from the ".interests-edit" combobox
    And I select "African-American" from the ".interests-edit" combobox
    And the ".search-results" element should contain "Sofia"
    And the ".search-results" element should contain "Aadya"

  # Scenario: Users can search for shows by name (partial/full, different case variations)
  #   # Full name, match case
  #   When I fill in ".show-search-text" with "Sofia"
  #   And the ".search-results" element should contain "Sofia"
  #   And the ".search-results" element should not contain "Aadya"
  #   # Full name, different case
  #   When I fill in ".show-search-text" with "sofia"
  #   And the ".search-results" element should contain "Sofia"
  #   # Partial name (begining), match case
  #   When I fill in ".show-search-text" with "Sof"
  #   And the ".search-results" element should contain "Sofia"
  #   # Partial name (end), match case
  #   When I fill in ".show-search-text" with "fia"
  #   And the ".search-results" element should contain "Sofia"
{'fraction_non_alphanumeric': 0.08688309251266654, 'fraction_numerical': 0.0, 'mean_word_length': 3.144634525660964, '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': '1549810', 'n_tokens_mistral': 1581, 'n_tokens_neox': 1548, 'n_words': 715}