Check user name presence instead

It seems that loading of stream is not completed before trying to activate hovercard.
I do not want to add explicit pause to the scenarion. Let's check link presence before activating hovercard.
This commit is contained in:
Anton Ilin 2014-03-07 14:45:02 +02:00
parent 81278fa61a
commit 68f2ce56fa

View file

@ -23,10 +23,10 @@ Feature: Hovercards
Scenario: Hovercards on the main stream in reshares
Given I am on "bob@bob.bob"'s page
Then I should see "public stuff" within ".stream_element"
Then I should see "Alice" within ".stream_element"
When I hover "Alice" within ".reshare"
Then I should not see a hovercard
When I am on "alice@alice.alice"'s page
Then I should see "public stuff" within ".stream_element"
Then I should see "Bob Jones" within ".stream_element"
When I hover "Bob Jones" within ".reshare"
Then I should see a hovercard