<commit_before>@javascript
Feature: mentioning a contact from their profile page
    In order to enlighten humanity for the good of society
    As a rock star
    I want to mention someone I think is cool

    Background:
      Given I am on the home page
      And a user with username "bob"
      And a user with username "alice"

      When I sign in as "<EMAIL>"
      And a user with username "bob" is connected with "alice"
      And I have an aspect called "PostTo"
      And I have an aspect called "DidntPostTo"
      And I have user with username "alice" in an aspect called "PostTo"
      And I have user with username "alice" in an aspect called "DidntPostTo"

      And I am on the home page

    Scenario: mentioning while posting to all aspects
      Given I am on "<EMAIL>"'s page
      And I have turned off jQuery effects
      And I click "Mention" button
      And I expand the publisher in the modal window
      And I append "I am eating a yogurt" to the publisher
      And I press "Share" in the modal window

      When I am on the aspects page
      And I follow "PostTo" within "#aspect_nav"
      Then I should see "I am eating a yogurt"

      When I am on the aspects page
      And I follow "DidntPostTo" within "#aspect_nav"
      Then I should see "I am eating a yogurt"

    Scenario: mentioning while posting to just one aspect
      Given I am on "<EMAIL>"'s page
      And I have turned off jQuery effects
      And I click "Mention" button
      And I expand the publisher in the modal window
      And I append "I am eating a yogurt" to the publisher
      And I press the aspect dropdown in the modal window
      And I toggle the aspect "DidntPostTo" in the modal window
      And I press "Share" in the modal window

      When I am on the aspects page
      And I follow "PostTo" within "#aspect_nav"
      Then I should see "I am eating a yogurt"

      When I am on the aspects page
      And I follow "DidntPostTo" within "#aspect_nav"
      Then I should not see "I am eating a yogurt"<commit_msg>Wait for aspect toggles in mention feature too<commit_after>@javascript
Feature: mentioning a contact from their profile page
    In order to enlighten humanity for the good of society
    As a rock star
    I want to mention someone I think is cool

    Background:
      Given I am on the home page
      And a user with username "bob"
      And a user with username "alice"

      When I sign in as "<EMAIL>"
      And a user with username "bob" is connected with "alice"
      And I have an aspect called "PostTo"
      And I have an aspect called "DidntPostTo"
      And I have user with username "alice" in an aspect called "PostTo"
      And I have user with username "alice" in an aspect called "DidntPostTo"

      And I am on the home page

    Scenario: mentioning while posting to all aspects
      Given I am on "<EMAIL>"'s page
      And I have turned off jQuery effects
      And I click "Mention" button
      And I expand the publisher in the modal window
      And I append "I am eating a yogurt" to the publisher
      And I press "Share" in the modal window

      When I am on the aspects page
      And I follow "PostTo" within "#aspect_nav"
      And I wait for the ajax to finish
      Then I should see "I am eating a yogurt"

      When I am on the aspects page
      And I follow "DidntPostTo" within "#aspect_nav"
      And I wait for the ajax to finish
      Then I should see "I am eating a yogurt"

    Scenario: mentioning while posting to just one aspect
      Given I am on "<EMAIL>"'s page
      And I have turned off jQuery effects
      And I click "Mention" button
      And I expand the publisher in the modal window
      And I append "I am eating a yogurt" to the publisher
      And I press the aspect dropdown in the modal window
      And I toggle the aspect "DidntPostTo" in the modal window
      And I press "Share" in the modal window

      When I am on the aspects page
      And I follow "PostTo" within "#aspect_nav"
      And I wait for the ajax to finish
      Then I should see "I am eating a yogurt"

      When I am on the aspects page
      And I follow "DidntPostTo" within "#aspect_nav"
      And I wait for the ajax to finish
      Then I should not see "I am eating a yogurt"
{'fraction_non_alphanumeric': 0.039243167484232656, 'fraction_numerical': 0.0, 'mean_word_length': 2.51559934318555, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5385040', 'n_tokens_mistral': 1183, 'n_tokens_neox': 1125, 'n_words': 696}