Fix getting started popovers cuke
This commit is contained in:
parent
8a9ce0d6d8
commit
9108182d5d
2 changed files with 7 additions and 8 deletions
|
|
@ -55,7 +55,6 @@ Feature: new user registration
|
||||||
Scenario: closing a popover clears getting started
|
Scenario: closing a popover clears getting started
|
||||||
When I confirm the alert after I follow "awesome_button"
|
When I confirm the alert after I follow "awesome_button"
|
||||||
Then I should be on the stream page
|
Then I should be on the stream page
|
||||||
And I have turned off jQuery effects
|
|
||||||
And I wait for the popovers to appear
|
And I wait for the popovers to appear
|
||||||
And I click close on all the popovers
|
And I click close on all the popovers
|
||||||
And I close the publisher
|
And I close the publisher
|
||||||
|
|
|
||||||
|
|
@ -255,16 +255,16 @@ Then 'I press the attached image' do
|
||||||
end
|
end
|
||||||
|
|
||||||
And "I wait for the popovers to appear" do
|
And "I wait for the popovers to appear" do
|
||||||
page.should have_selector(".popover", count: 3)
|
expect(page).to have_selector(".popover", count: 3)
|
||||||
end
|
end
|
||||||
|
|
||||||
And /^I click close on all the popovers$/ do
|
And /^I click close on all the popovers$/ do
|
||||||
page.execute_script("$('.popover .close')[0].click();")
|
find(".popover .close", match: :first).click
|
||||||
expect(page).to have_selector(".popover", count: 2)
|
expect(page).to have_selector(".popover", count: 2, visible: false)
|
||||||
page.execute_script("$('.popover .close')[0].click();")
|
find(".popover .close", match: :first).click
|
||||||
expect(page).to have_selector(".popover", count: 1)
|
expect(page).to have_selector(".popover", count: 1, visible: false)
|
||||||
page.execute_script("$('.popover .close').click();")
|
find(".popover .close", match: :first).click
|
||||||
expect(page).to_not have_selector(".popover .close")
|
expect(page).to_not have_selector(".popover", visible: false)
|
||||||
end
|
end
|
||||||
|
|
||||||
Then /^I should see a flash message indicating success$/ do
|
Then /^I should see a flash message indicating success$/ do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue