<commit_before>@javascript
Feature: Notifications
  In order to see what is happening
  As a User
  I want to get notifications

  Background:
    Given a user with email "<EMAIL>"
    And a user with email "<EMAIL>"
    And "<EMAIL>" has a public post with text "check this out!"
    When I sign in as "<EMAIL>"

  Scenario: someone shares with me
    And I am on "<EMAIL>"'s page
    And I add the person to my "Besties" aspect
    And I go to the destroy user session page
    When I sign in as "<EMAIL>"
    And I follow "notifications" in the header
    And I wait for the ajax to finish
    Then the notification dropdown should be visible
    Then I should see "started sharing with you"
    When I follow "View all"
    Then I should see "started sharing with you"
    And I should have 1 email delivery

  Scenario: someone re-shares my post
    And a user with email "<EMAIL>" is connected with "<EMAIL>"
    And I am on "<EMAIL>"'s page
    And I preemptively confirm the alert
    And I follow "Reshare"
    And I wait for the ajax to finish

    And I go to the destroy user session page
    When I sign in as "<EMAIL>"

    And I follow "notifications" in the header
    And I wait for the ajax to finish
    Then the notification dropdown should be visible
    And I wait for the ajax to finish
    Then I should see "reshared your post"
    When I follow "View all"
    Then I should see "reshared your post"
    And I should have 1 email delivery

  Scenario: someone likes my post
    And a user with email "<EMAIL>" is connected with "<EMAIL>"
    And I am on "<EMAIL>"'s page
    And I preemptively confirm the alert
    And I follow "Like"
    And I wait for the ajax to finish

    And I go to the destroy user session page
    When I sign in as "<EMAIL>"

    And I follow "notifications" in the header
    And I wait for the ajax to finish
    Then the notification dropdown should be visible
    And I wait for the ajax to finish<commit_msg>Fix notifications cuke<commit_after>@javascript
Feature: Notifications
  In order to see what is happening
  As a User
  I want to get notifications

  Background:
    Given a user with email "<EMAIL>"
    And a user with email "<EMAIL>"
    And "<EMAIL>" has a public post with text "check this out!"
    When I sign in as "<EMAIL>"

  Scenario: someone shares with me
    And I am on "<EMAIL>"'s page
    And I add the person to my "Besties" aspect
    And I go to the destroy user session page
    When I sign in as "<EMAIL>"
    And I follow "notification" in the header
    And I wait for the ajax to finish
    Then the notification dropdown should be visible
    Then I should see "started sharing with you"
    When I follow "View all"
    Then I should see "started sharing with you"
    And I should have 1 email delivery

  Scenario: someone re-shares my post
    And a user with email "<EMAIL>" is connected with "<EMAIL>"
    And I am on "<EMAIL>"'s page
    And I preemptively confirm the alert
    And I follow "Reshare"
    And I wait for the ajax to finish

    And I go to the destroy user session page
    When I sign in as "<EMAIL>"

    And I follow "notification" in the header
    And I wait for the ajax to finish
    Then the notification dropdown should be visible
    And I wait for the ajax to finish
    Then I should see "reshared your post"
    When I follow "View all"
    Then I should see "reshared your post"
    And I should have 1 email delivery

  Scenario: someone likes my post
    And a user with email "<EMAIL>" is connected with "<EMAIL>"
    And I am on "<EMAIL>"'s page
    And I preemptively confirm the alert
    And I follow "Like"
    And I wait for the ajax to finish

    And I go to the destroy user session page
    When I sign in as "<EMAIL>"

    And I follow "notification" in the header
    And I wait for the ajax to finish
    Then the notification dropdown should be visible
    And I wait for the ajax to finish
{'fraction_non_alphanumeric': 0.04875571356018284, 'fraction_numerical': 0.001015744032503809, 'mean_word_length': 2.82798833819242, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '2737453', 'n_tokens_mistral': 1108, 'n_tokens_neox': 1058, 'n_words': 655}