<commit_before>@suggestions @cp-275 @ie @safari @production @data-dependent
Feature: Suggestions for user search
  As a Blinkbox books user
  I want to get suggestions when I start searching for a book or author etc
  So that I can find quickly what I am looking for.

  Background: Opens Blinkbox books home page
    Given I am on the home page

  @optional
  Scenario: Search suggestions displayed
    When I type "spring" into search field
    Then search suggestions should be displayed

  @sanity
  Scenario: Typing valid sequence of letters returns relevant suggestions
    When I type "Gone" into search field
    Then search suggestions should be displayed
     And I should see at least 5 suggestions
     And all suggestions should contain search word "Gone"

  # Application does not display suggestions at all
  @pending
  Scenario: Entering search term without space
    When I type "Davinci" into search field
    Then in auto completion correct value "Da vinci" is displayed

  @pending
  Scenario: Entering misspelled search term
    When I type "addikted" into search field
    Then in auto completion correct value "addicted" is displayed

  @pending
  Scenario: Entering misspelled search term with apostrophe
    When I type "childrn's tresure" into search field
    Then in auto completion correct values "children's" and "treasure" are displayed

  Scenario: Select "More results for XX" from suggestion drop down menu
    When I type "Gone girl" into search field
    Then search suggestions should be displayed
    And first suggestions should contain complete word "Gone girl"
    And last suggestion should contain More results for "Gone girl"
    When I select suggestion which contains More results for "Gone girl"
    Then search results should be displayed<commit_msg>Casing fix<commit_after>@suggestions @cp-275 @ie @safari @production @data-dependent
Feature: Suggestions for user search
  As a Blinkbox books user
  I want to get suggestions when I start searching for a book or author etc
  So that I can find quickly what I am looking for.

  Background: Opens Blinkbox books home page
    Given I am on the home page

  @optional
  Scenario: Search suggestions displayed
    When I type "spring" into search field
    Then search suggestions should be displayed

  @sanity
  Scenario: Typing valid sequence of letters returns relevant suggestions
    When I type "Gone" into search field
    Then search suggestions should be displayed
     And I should see at least 5 suggestions
     And all suggestions should contain search word "Gone"

  # Application does not display suggestions at all
  @pending
  Scenario: Entering search term without space
    When I type "Davinci" into search field
    Then in auto completion correct value "<NAME>" is displayed

  @pending
  Scenario: Entering misspelled search term
    When I type "addikted" into search field
    Then in auto completion correct value "addicted" is displayed

  @pending
  Scenario: Entering misspelled search term with apostrophe
    When I type "<NAME>" into search field
    Then in auto completion correct values "children's" and "treasure" are displayed

  Scenario: Select "More results for XX" from suggestion drop down menu
    When I type "<NAME>" into search field
    Then search suggestions should be displayed
    And first suggestions should contain complete word "<NAME>"
    And last suggestion should contain More results for "<NAME>"
    When I select suggestion which contains More results for "Gone girl"
    Then search results should be displayed
{'fraction_non_alphanumeric': 0.03500420050406049, 'fraction_numerical': 0.0022402688322598714, 'mean_word_length': 3.8075370121130554, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '6980900', 'n_tokens_mistral': 878, 'n_tokens_neox': 851, 'n_words': 501}