mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +01:00
35 lines
955 B
Text
35 lines
955 B
Text
setup :fixtures => :all
|
|
login :as => 'admin'
|
|
|
|
# open home page
|
|
open '/m'
|
|
wait_for_title "All actions"
|
|
wait_for_text 'css=h1 span.count', '10'
|
|
|
|
# open context page
|
|
click_and_wait "link=Contexts"
|
|
# verify_title "All actions in context agenda"
|
|
# choose agenda context
|
|
click_and_wait "link=agenda"
|
|
wait_for_text 'css=h1 span.count', '5'
|
|
|
|
# click on tag foo to go to tag page
|
|
click_and_wait "link=foo"
|
|
verify_title "TRACKS::Tagged with 'foo'"
|
|
wait_for_text 'css=h1 span.count', '2'
|
|
|
|
click_and_wait "link=Projects"
|
|
wait_for_text 'css=h1 span.count', '3'
|
|
click_and_wait "link=Build a working time machine"
|
|
wait_for_text 'css=h1 span.count', '3'
|
|
|
|
# follow link of action to edit form and mark done
|
|
click_and_wait "link=Select Delorean model"
|
|
click "done"
|
|
click_and_wait "//input[@value='Update']"
|
|
wait_for_text 'css=h1 span.count', '2'
|
|
|
|
# just test the navigation.
|
|
click_and_wait "link=Tickler"
|
|
wait_for_text 'css=h1 span.count', '0'
|
|
click_and_wait "link=Feeds"
|