<commit_before>Feature: Authenticated HTML User Interactions

  Scenario: un-authenticated user
    Given I authenticate as the user "foo" with the password "<PASSWORD>"
    When I go to "login"
    Then I should see "Authentication Required" within "body"

  Scenario: basic authenticated user
    Given I am logged in as "foo" with "bar"
    When I go to "login"
    Then I should not see "Authentication Required" within "body"
    Then I should see "Current Metrics" within "col-md-6"

  Scenario: dashboard HTML access
    Given I am logged in as "foo" with "bar"
    When I go to "create dashboard"
    Then I should see "Create Dashboard" within "row"

  Scenario: display admin functions for metrics when logged in
    Given I am logged in as "foo" with "bar"
    And there is a metric in the database with the name "delete me"
    When I go to "the home page"
    # GARBAGE - below are not actually testing ANYTHING
#    Then I should see "metric" within "table"
#    And I should see "delete" within "tr"
#    And I should see "edit metadata" within "tr"

  Scenario: delete an existing metric
    Given I am logged in as "foo" with "bar"
    Given there is a metric in the database with the name "delete-me"
    pending
    # there is no way to mock this<commit_msg>proof that web steps are garbage for evaluating<commit_after>Feature: Authenticated HTML User Interactions

  Scenario: un-authenticated user
    Given I authenticate as the user "foo" with the password "<PASSWORD>"
    When I go to "login"
    Then I should see "Authentication Required" within "body"

  Scenario: basic authenticated user
    Given I am logged in as "foo" with "bar"
    When I go to "login"
    Then I should not see "Authentication Required" within "body"
    Then I should see "Current Metrics" within "col-md-6"

  Scenario: dashboard HTML access
    Given I am logged in as "foo" with "bar"
    When I go to "create dashboard"
    Then I should see "Create Dashboard" within "row"

  Scenario: display admin functions for metrics when logged in
    Given I am logged in as "foo" with "bar"
    And there is a metric in the database with the name "delete me"
    When I go to "the home page"
    # GARBAGE - below are not actually testing ANYTHING
    Then I should see "metric" within "table"
    And I should see "delete" within "tr"
    And I should see "edit metadata" within "tr"
    Then I should not see "metric" within "table"
    And I should not see "delete" within "tr"
    And I should not see "edit metadata" within "tr"
{'fraction_non_alphanumeric': 0.06395578365574418, 'fraction_numerical': 0.0007895775759968417, 'mean_word_length': 3.2804054054054053, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1350709', 'n_tokens_mistral': 719, 'n_tokens_neox': 700, 'n_words': 387}