mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-18 21:28:08 +01:00
fix failing test and finish all wip scenarios
Signed-off-by: Reinier Balt <lrbalt@gmail.com>
This commit is contained in:
parent
f05826d07a
commit
3faac2514d
10 changed files with 95 additions and 17 deletions
|
|
@ -28,6 +28,18 @@ Then /^I should see the empty message in the deferred container$/ do
|
|||
end
|
||||
end
|
||||
|
||||
Then /^I should see the empty tickler message$/ do
|
||||
wait_for :timeout => 5 do
|
||||
selenium.is_visible("xpath=//div[@id='tickler-empty-nd']")
|
||||
end
|
||||
end
|
||||
|
||||
Then /^I should not see the empty tickler message$/ do
|
||||
wait_for :timeout => 5 do
|
||||
!selenium.is_visible("xpath=//div[@id='tickler-empty-nd']")
|
||||
end
|
||||
end
|
||||
|
||||
Then /^I should see an error flash message saying "([^"]*)"$/ do |message|
|
||||
xpath = "//div[@id='message_holder']/h4[@id='flash']"
|
||||
text = response.selenium.get_text("xpath=#{xpath}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue