<commit_before>Feature: Ensuring that the forms steps work
    In order to make sure that the forms module works
    As a developer
    I test against the form test files

    Scenario Outline: Filling in a field with random content and recalling the content
        Given I visit the salad test url "browser/form.html"
          And I look around
         When I store a random <thing> of length 15 as "<name1>"
          And I store a random <thing> as "<name2>"
          And I fill in the 1st element named "fill_me_in" with the stored value of "<name1>"
          And I fill in the 2nd field with the xpath "//div[@id='fill_in']/input" with the stored value of "<name2>"
         Then I should see the stored value of "<name1>" in the field named "fill_me_in"
          And I should see the stored value of "<name2>" in the 2nd field with the xpath "//div[@id='fill_in']/input"

    Examples:
        | thing           | name1               | name2               |
        | string          | my_string1          | my_string2          |
        | name            | my_name1            | my_name2            |
        | restaurant name | my_restaurant_name1 | my_restaurant_name2 |
        | email           | my_email1           | my_email2           |


    Scenario Outline: using the different variations of the random sentence
        Given I visit the salad test url "browser/form.html"
          And I look around
         When I store a random email as "my_email"
         Then I fill in the element named "fill_me_in" with the stored value of "my_email"
          And I should see the stored <what> <name> "my_email" in the field named "fill_me_in"

    Examples:
        | what           | name   |
        | value          | of     |
        | value          | called |
        | value          | named  |
        | string         | of     |
        | string         | called |
        | string         | named  |


    Scenario Outline: Filling in a field works.
        Given I visit the salad test url "browser/form.html"
        When I fill in the field <finder> with "my test text"
        Then I should see "Filled!" somewhere in the page<commit_msg>removed scenario 2 and "restaurant name" as option for the random generator<commit_after>Feature: Ensuring that the forms steps work
    In order to make sure that the forms module works
    As a developer
    I test against the form test files

    Scenario Outline: Filling in a field with random content and recalling the content
        Given I visit the salad test url "browser/form.html"
          And I look around
         When I store a random <thing> of length 15 as "<name1>"
          And I store a random <thing> as "<name2>"
          And I store a random <thing> of length 5 with suffix " restaurant" as "<name3>"
          And I fill in the 1st element named "fill_me_in" with the stored value of "<name1>"
          And I fill in the 2nd field with the xpath "//div[@id='fill_in']/input" with the stored value of "<name2>"
          And I fill in the 3rd field named "fill_me_in" with the stored value of "<name3>"
          And I wait 3 seconds
         Then I should see the stored value of "<name1>" in the field named "fill_me_in"
          And I should see the stored value of "<name2>" in the 2nd field with the xpath "//div[@id='fill_in']/input"
          And I should see the stored value of "<name3>" in the 3rd field named "fill_me_in"

    Examples:
        | thing           | name1               | name2               |
        | string          | my_string1          | my_string2          |
        | email           | my_email1           | my_email2           |
        | name            | my_name1            | my_name2            |


    Scenario Outline: Filling in a field works.
        Given I visit the salad test url "browser/form.html"
        When I fill in the field <finder> with "my test text"
        Then I should see "Filled!" somewhere in the page
{'fraction_non_alphanumeric': 0.06377615326443156, 'fraction_numerical': 0.01209982354423998, 'mean_word_length': 1.8505747126436782, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '7238048', 'n_tokens_mistral': 1074, 'n_tokens_neox': 1041, 'n_words': 500}