<commit_before>Feature: Filter mappings
  As a GDS User with an interest in the quality of mappings,
  I want to filter the list of mappings
  so that I can get to the things I need to change faster 

  Background:
    Given I have logged in as a GDS user
    And there is a site called directgov belonging to an organisation directgov with these mappings:
      | http_status | path             | new_url                                 |
      | 410         | /about/corporate |                                         |
      | 301         | /about/branding  | http://gov.uk/branding                  |
      | 301         | /                | http://gov.uk/directgov                 |
      | 410         | /notinfilter     |                                         |
    And I visit the path /sites/directgov/mappings

  Scenario: Filtering by start of path
    When I filter the path by /about
    Then the filter box should contain "/about"
    And I should see "/about/corporate"
    And I should see "/about/branding"
    But I should not see "/notinfilter"

  Scenario: Filtering by part of path
    When I filter the path by bout
    Then the filter box should contain "bout"
    And I should see "/about/corporate"
    And I should see "/about/branding"
    But I should not see "/notinfilter"

  Scenario: There are no matches
    When I filter the path by /is-not-there
    Then the filter box should contain "/is-not-there"
    And I should see a link to remove the filter

<commit_msg>Add 'no mappings found' behaviour to mapping filter feature<commit_after>Feature: Filter mappings
  As a GDS User with an interest in the quality of mappings,
  I want to filter the list of mappings
  so that I can get to the things I need to change faster 

  Background:
    Given I have logged in as a GDS user
    And there is a site called directgov belonging to an organisation directgov with these mappings:
      | http_status | path             | new_url                                 |
      | 410         | /about/corporate |                                         |
      | 301         | /about/branding  | http://gov.uk/branding                  |
      | 301         | /                | http://gov.uk/directgov                 |
      | 410         | /notinfilter     |                                         |
    And I visit the path /sites/directgov/mappings

  Scenario: Filtering by start of path
    When I filter the path by /about
    Then the filter box should contain "/about"
    And I should see "/about/corporate"
    And I should see "/about/branding"
    But I should not see "/notinfilter"

  Scenario: Filtering by part of path
    When I filter the path by bout
    Then the filter box should contain "bout"
    And I should see "/about/corporate"
    And I should see "/about/branding"
    But I should not see "/notinfilter"

  Scenario: There are no matches
    When I filter the path by /is-not-there
    Then the filter box should contain "/is-not-there"
    And I should see "No mappings found."
    And I should see a link to remove the filter


{'fraction_non_alphanumeric': 0.05663430420711974, 'fraction_numerical': 0.007766990291262136, 'mean_word_length': 1.713784021071115, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5900266', 'n_tokens_mistral': 830, 'n_tokens_neox': 778, 'n_words': 375}