<commit_before>@keys
Feature: Keys

    Background:
        #Given PhantomJS as the default browser
        #Given a browser
        Given "NinjaTester" as the persona
        When i visit mist.io
            Then I should see "mist.io"


    @web
    Scenario: Create Key
        When I click the "Keys" button
        And I wait for 2 seconds
        And I click the "Add" button
        And I type "tester" as key name
        And I click the "Generate" button
        And I wait for 5 seconds
        And I click the "Add" button within "add-key-popup" panel
        And I wait for 5 seconds
            Then I should see the "tester" Key added within 5 seconds


    @web
    Scenario: Rename Key
        When I click the "Keys" button
        And I wait for 2 seconds
        And I click the "tester" Key
        And I click the "Rename" button
        And I fill in "RenamedKey" as Key name
        And I click the "Save" button
        And I click the "Keys" button
        And I wait for 5 seconds
            Then I should see the "RenamedKey" Key added within 5 seconds


    @web
    Scenario: Add second key and make default
        When I click the "Keys" button
        And I wait for 2 seconds
        And I click the "Add" button
        And I type "SecondKey" as key name
        And I wait for 2 seconds
        And I click the "Generate" button
        And I wait for 5 seconds
        And I click the "Add" button within "add-key-popup" panel
        And I wait for 5 seconds
            Then I should see the "SecondKey" Key added within 5 seconds

        When I check the "SecondKey" key
        And I click the "Set default" button
        And I wait for 1 seconds
            Then "SecondKey" should be the default key


    @web
    Scenario: Delete all keys
        When i click the "Keys" button
        And I wait for 2 seconds
        When I check the "SecondKey" key
        And I click the "Delete" button
        And I click the "Yes" button
        And I wait for 1 seconds<commit_msg>Change previous error with @when in keys test<commit_after>@keys
Feature: Keys

    Background:
        #Given PhantomJS as the default browser
        #Given a browser
        Given "NinjaTester" as the persona
        When i visit mist.io
            Then I should see "mist.io"


    @web
    Scenario: Create Key
        When I click the "Keys" button
        And I wait for 2 seconds
        And I click the "Add" button
        And I type "tester" as key name
        And I click the "Generate" button
        And I wait for 5 seconds
        And I click the "Add" button within "add-key-popup" panel
        And I wait for 5 seconds
            Then I should see the "tester" Key added within 10 seconds


    @web
    Scenario: Rename Key
        When I click the "Keys" button
        And I wait for 2 seconds
        And I click the "tester" Key
        And I click the "Rename" button
        And I fill in "RenamedKey" as Key name
        And I click the "Save" button
        And I click the "Keys" button
        And I wait for 5 seconds
            Then I should see the "RenamedKey" Key added within 10 seconds


    @web
    Scenario: Add second key and make default
        When I click the "Keys" button
        And I wait for 2 seconds
        And I click the "Add" button
        And I type "SecondKey" as key name
        And I wait for 2 seconds
        And I click the "Generate" button
        And I wait for 5 seconds
        And I click the "Add" button within "add-key-popup" panel
        And I wait for 5 seconds
            Then I should see the "SecondKey" Key added within 10 seconds

        When I check the "SecondKey" key
        And I click the "Set default" button
        And I wait for 1 seconds
            Then "SecondKey" should be the default key


    @web
    Scenario: Delete all keys
        When i click the "Keys" button
        And I wait for 2 seconds
        When I check the "SecondKey" key
        And I click the "Delete" button
        And I click the "Yes" button
        And I wait for 1 seconds
{'fraction_non_alphanumeric': 0.04049079754601227, 'fraction_numerical': 0.008098159509202453, 'mean_word_length': 1.8227146814404431, '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': '1447195', 'n_tokens_mistral': 1124, 'n_tokens_neox': 1056, 'n_words': 612}