mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-29 12:16:11 +01:00
add check that will wait for elements to load before asserting presence
This commit is contained in:
parent
dea8734498
commit
a3d3537da7
3 changed files with 5 additions and 1 deletions
|
|
@ -17,6 +17,8 @@ end
|
|||
|
||||
Then /^I should see an error flash message saying "([^"]*)"$/ do |message|
|
||||
xpath = "//div[@id='message_holder']/h4[@id='flash']"
|
||||
page.should have_xpath(xpath, :visible => true)
|
||||
|
||||
text = page.find(:xpath, xpath).text
|
||||
text.should == message
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue