* 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
19 lines
638 B
Ruby
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
|