2007-04-02 04:18:19 +00:00
|
|
|
setup :fixtures => :all
|
|
|
|
|
login :as => 'admin'
|
|
|
|
|
|
2008-04-27 19:23:19 +00:00
|
|
|
# open home page
|
2007-04-02 04:18:19 +00:00
|
|
|
open '/m'
|
|
|
|
|
wait_for_title "All actions"
|
2008-12-02 20:58:54 +01:00
|
|
|
wait_for_text 'css=h1 span.count', '11'
|
2007-04-02 04:18:19 +00:00
|
|
|
|
2008-04-27 19:23:19 +00:00
|
|
|
# open context page
|
2008-10-02 21:43:38 -04:00
|
|
|
click_and_wait "link=2-Contexts"
|
2008-04-28 05:53:24 +00:00
|
|
|
# verify_title "All actions in context agenda"
|
2008-04-27 19:23:19 +00:00
|
|
|
# choose agenda context
|
|
|
|
|
click_and_wait "link=agenda"
|
2008-12-02 20:58:54 +01:00
|
|
|
wait_for_text 'css=h1 span.count', '6'
|
2007-04-02 04:18:19 +00:00
|
|
|
|
2008-04-27 19:23:19 +00:00
|
|
|
# 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'
|
|
|
|
|
|
2008-10-02 21:43:38 -04:00
|
|
|
click_and_wait "link=3-Projects"
|
2008-04-27 19:23:19 +00:00
|
|
|
wait_for_text 'css=h1 span.count', '3'
|
|
|
|
|
click_and_wait "link=Build a working time machine"
|
2007-04-02 04:18:19 +00:00
|
|
|
wait_for_text 'css=h1 span.count', '3'
|
|
|
|
|
|
2008-04-27 19:23:19 +00:00
|
|
|
# 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']"
|
2008-04-28 05:53:24 +00:00
|
|
|
wait_for_text 'css=h1 span.count', '2'
|
2008-04-27 19:23:19 +00:00
|
|
|
|
|
|
|
|
# just test the navigation.
|
|
|
|
|
click_and_wait "link=Tickler"
|
2008-04-28 05:53:24 +00:00
|
|
|
wait_for_text 'css=h1 span.count', '0'
|
2008-04-27 19:23:19 +00:00
|
|
|
click_and_wait "link=Feeds"
|