mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-09 00:54:21 +01:00
migrate deleting a note from notes page to jqeury
This commit is contained in:
parent
7b3c07a754
commit
145c9105dd
13 changed files with 145 additions and 84 deletions
|
|
@ -28,7 +28,7 @@ end
|
|||
When /^I delete the first note$/ do
|
||||
title = selenium.get_text("css=div.container h2")
|
||||
id = title.split(' ').last
|
||||
click_link "delete note"
|
||||
click_link "delete_note_#{id}"
|
||||
selenium.get_confirmation.should == "Are you sure that you want to delete the note '#{id}'?"
|
||||
end
|
||||
|
||||
|
|
@ -58,7 +58,7 @@ Then /^the first note should disappear$/ do
|
|||
title = selenium.get_text("css=div.container h2")
|
||||
id = title.split(' ').last
|
||||
wait_for :timeout => 15 do
|
||||
!selenium.is_visible("note_#{id}")
|
||||
!selenium.is_element_present("note_#{id}")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue