<commit_before>Feature: Web steps

  Scenario: /^the "([^"]*)" field should (not )?contain "([^"]*)"$/
    When I go to "/forms/form1"
    Then the "Text control" field should contain "Text control value"
    Then the "Select control" field should contain "Label 2"
    Then the "Select control without selection" field should contain "Label 1"
    Then the "Textarea control" field should contain "Textarea control value"
    Then the "Empty control" field should contain ""

  Scenario: /^the "([^"]*)" field should (not )?contain:/
    When I go to "/forms/form2"
    Then the "Text control" field should contain:
      """
      Text control value
      """
    Then the "Textarea control" field should contain:
      """
      Textarea control line 1
      Textarea control line 2
      """
    Then the "Empty textarea control" field should contain:
      """
      """

  Scenario: /^I should see a form with the following values:$/
    When I go to "/forms/form1"
    Then I should see a form with the following values:
      | Text control                     | Text control value     |
      | Select control                   | Label 2                |
      | Select control without selection | Label 1                |
      | Textarea control                 | Textarea control value |
      | Empty control                    |                        |


  Scenario: /^"([^"]*)" should( not)? be selected for "([^"]*)"$/
    When I go to "/forms/form1"
    Then "Label 2" should be selected for "Select control"
      But "Label 1" should not be selected for "Select control"
      And "Label 1" should be selected for "Select control without selection"


  Scenario: /^nothing should be selected for "([^"]*)"$/
    When I go to "/forms/form1"
    Then nothing should be selected for "Select control with blank option"
    Then nothing should be selected for "Select control with blank selection"

  
  Scenario: /^I go back$/
    Given I go to "/static_pages/link_to_home"
      And I follow "Home"
    
    When I go back
    Then I should be on "/static_pages/link_to_home"


  Scenario: /^the "([^"]*)" checkbox should( not)? be checked$/
    When I go to "/forms/checkbox_form"
    Then the "Checked" checkbox should be checked
      And the "Unchecked" checkbox should not be checked


  @javascript
  Scenario: /^I click on "([^\"]+)"$/
    When I go to "/static_pages/click_on"
      And I click on "Nested"
    # See that it clicks the innermost element with that text
    Then I should see "You clicked on .inner"
    When I click on "Button"
    Then I should see "You clicked on .button"

  @javascript
  Scenario: /^I click on the element "([^\"]+)"$/
    When I go to "/static_pages/click_on"
    And I click on the element ".inner"
    Then I should see "You clicked on .inner"
    When I click on the element ".outer"
    Then I should see "You clicked on .outer"
    When I click on the element ".button"
    Then I should see "You clicked on .button"

  @javascript
  Scenario: /^I click on the element for .*?$/
    When I go to "/static_pages/click_on"
    And I click on the element for a panel
    Then I should see "You clicked on .panel"
    When I click on the element for the timeline
    Then I should see "You clicked on .timeline"

  Scenario: /^the "(.*?)" select should( not)? be sorted$/
    When I go to "/forms/select_fields"
    Then the "sorted" select should be sorted
      But the "unsorted" select should not be sorted


  Scenario: /^Then (the tag )?"..." should( not)? be visible$/<commit_msg>Fix test for chrome<commit_after>Feature: Web steps

  Scenario: /^the "([^"]*)" field should (not )?contain "([^"]*)"$/
    When I go to "/forms/form1"
    Then the "Text control" field should contain "Text control value"
    Then the "Select control" field should contain "Label 2"
    Then the "Select control without selection" field should contain "Label 1"
    Then the "Textarea control" field should contain "Textarea control value"
    Then the "Empty control" field should contain ""

  Scenario: /^the "([^"]*)" field should (not )?contain:/
    When I go to "/forms/form2"
    Then the "Text control" field should contain:
      """
      Text control value
      """
    Then the "Textarea control" field should contain:
      """
      Textarea control line 1
      Textarea control line 2
      """
    Then the "Empty textarea control" field should contain:
      """
      """

  Scenario: /^I should see a form with the following values:$/
    When I go to "/forms/form1"
    Then I should see a form with the following values:
      | Text control                     | Text control value     |
      | Select control                   | Label 2                |
      | Select control without selection | Label 1                |
      | Textarea control                 | Textarea control value |
      | Empty control                    |                        |


  Scenario: /^"([^"]*)" should( not)? be selected for "([^"]*)"$/
    When I go to "/forms/form1"
    Then "Label 2" should be selected for "Select control"
      But "Label 1" should not be selected for "Select control"
      And "Label 1" should be selected for "Select control without selection"


  Scenario: /^nothing should be selected for "([^"]*)"$/
    When I go to "/forms/form1"
    Then nothing should be selected for "Select control with blank option"
    Then nothing should be selected for "Select control with blank selection"

  
  Scenario: /^I go back$/
    Given I go to "/static_pages/link_to_home"
      And I follow "Home"
    
    When I go back
    Then I should be on "/static_pages/link_to_home"


  Scenario: /^the "([^"]*)" checkbox should( not)? be checked$/
    When I go to "/forms/checkbox_form"
    Then the "Checked" checkbox should be checked
      And the "Unchecked" checkbox should not be checked


  @javascript
  Scenario: /^I click on "([^\"]+)"$/
    When I go to "/static_pages/click_on"
      And I click on "Nested"
    # See that it clicks the innermost element with that text
    Then I should see "You clicked on .inner"
    When I click on "Button"
    Then I should see "You clicked on .button"

  @javascript
  Scenario: /^I click on the element "([^\"]+)"$/
    When I go to "/static_pages/click_on"
    And I click on the element ".inner"
    Then I should see "You clicked on .inner"
    When I click on the element ".button"
    Then I should see "You clicked on .button"

  @javascript
  Scenario: /^I click on the element for .*?$/
    When I go to "/static_pages/click_on"
    And I click on the element for a panel
    Then I should see "You clicked on .panel"
    When I click on the element for the timeline
    Then I should see "You clicked on .timeline"

  Scenario: /^the "(.*?)" select should( not)? be sorted$/
    When I go to "/forms/select_fields"
    Then the "sorted" select should be sorted
      But the "unsorted" select should not be sorted


  Scenario: /^Then (the tag )?"..." should( not)? be visible$/
{'fraction_non_alphanumeric': 0.10141005554764279, 'fraction_numerical': 0.003988035892323031, 'mean_word_length': 2.447226313205695, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5928381', 'n_tokens_mistral': 2051, 'n_tokens_neox': 1929, 'n_words': 909}