diaspora/features/step_definitions/lightbox_steps.rb
Jonne Haß 300752fc87 bump capybara
* removed wait_until where possible
* replaced wait_until with DOM obersavtions
* added match: :first to all finders that assumed getting the first element
* replaced evaluate_script with execute_script where possible
* replaced a few execute_script with DOM observations through Capybara
* removed sleep where possible
* replaced sleep with DOM obersvations
* replaced "wait for ajax" with DOM obersavations
* replaced alert confirmation with new selenium API
* bump selenium webdriver
* made any other fixes to get green again
2013-07-31 01:47:23 +02:00

19 lines
638 B
Ruby

Then 'I should see the photo lightbox' do
step %{I should see a "img" within "#lightbox-imageset"}
step %{I should see a "#lightbox-backdrop" within "body"}
step %{I should see a "#lightbox-image" within "body"}
end
Then 'I should not see the photo lightbox' do
step %{I should not see a "#lightbox-imageset" within "body"}
step %{I should not see a "#lightbox-backdrop" within "body"}
step %{I should not see a "#lightbox-image" within "body"}
end
Then 'I press the close lightbox link' do
find(:css, "#lightbox-close-link").click
end
Then 'I press the lightbox backdrop' do
find(:css, "#lightbox-backdrop").click
end