Merge lp:~elopio/ubuntuone-testing/crazyselenium into lp:ubuntuone-testing

Proposed by Leo Arias
Status: Merged
Approved by: Rick McBride
Approved revision: 56
Merged at revision: 55
Proposed branch: lp:~elopio/ubuntuone-testing/crazyselenium
Merge into: lp:ubuntuone-testing
Diff against target: 42 lines (+4/-0)
4 files modified
ubuntuone/web/tests/sst/services/u1webse004_choosestorageamount.py (+1/-0)
ubuntuone/web/tests/sst/shared/actions/contacts.py (+1/-0)
ubuntuone/web/tests/sst/shared/actions/files.py (+1/-0)
ubuntuone/web/tests/sst/shared/actions/loading.py (+1/-0)
To merge this branch: bzr merge lp:~elopio/ubuntuone-testing/crazyselenium
Reviewer Review Type Date Requested Status
Rick McBride (community) Approve
Review via email: mp+82304@code.launchpad.net

Commit message

Switch to the default window after selecting a tab.
Added a sleep to make the choose storage amount test more stable.

Description of the change

Fix the errors in jenkins.

To post a comment you must log in.
Revision history for this message
Rick McBride (rmcbride) wrote :

makes sense

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ubuntuone/web/tests/sst/services/u1webse004_choosestorageamount.py'
--- ubuntuone/web/tests/sst/services/u1webse004_choosestorageamount.py 2011-10-20 05:44:03 +0000
+++ ubuntuone/web/tests/sst/services/u1webse004_choosestorageamount.py 2011-11-15 19:24:22 +0000
@@ -39,4 +39,5 @@
39services_actions.set_storage_quantity('25')39services_actions.set_storage_quantity('25')
40# Move the focus out of the textfield.40# Move the focus out of the textfield.
41element_click('storage-gb')41element_click('storage-gb')
42sleep(1)
42services_actions.assert_storage(25)43services_actions.assert_storage(25)
4344
=== modified file 'ubuntuone/web/tests/sst/shared/actions/contacts.py'
--- ubuntuone/web/tests/sst/shared/actions/contacts.py 2011-11-15 06:58:55 +0000
+++ ubuntuone/web/tests/sst/shared/actions/contacts.py 2011-11-15 19:24:22 +0000
@@ -23,6 +23,7 @@
23def open():23def open():
24 """Open the Contacts page and assert it's title."""24 """Open the Contacts page and assert it's title."""
25 link_click(_get_contacts_link())25 link_click(_get_contacts_link())
26 switch_to_window()
26 assert_title()27 assert_title()
2728
28def _get_contacts_link():29def _get_contacts_link():
2930
=== modified file 'ubuntuone/web/tests/sst/shared/actions/files.py'
--- ubuntuone/web/tests/sst/shared/actions/files.py 2011-11-15 06:58:55 +0000
+++ ubuntuone/web/tests/sst/shared/actions/files.py 2011-11-15 19:24:22 +0000
@@ -27,6 +27,7 @@
27def open():27def open():
28 """Open the files page and assert it's title."""28 """Open the files page and assert it's title."""
29 link_click(_get_files_link())29 link_click(_get_files_link())
30 switch_to_window()
30 assert_title()31 assert_title()
3132
32def _get_files_link():33def _get_files_link():
3334
=== modified file 'ubuntuone/web/tests/sst/shared/actions/loading.py'
--- ubuntuone/web/tests/sst/shared/actions/loading.py 2011-10-19 06:52:00 +0000
+++ ubuntuone/web/tests/sst/shared/actions/loading.py 2011-11-15 19:24:22 +0000
@@ -29,3 +29,4 @@
29 sleep(3)29 sleep(3)
30 waiting_bar = get_element(css_class='yui3-busy-waiting')30 waiting_bar = get_element(css_class='yui3-busy-waiting')
31 waitfor(fails, is_displayed, waiting_bar)31 waitfor(fails, is_displayed, waiting_bar)
32

Subscribers

People subscribed via source and target branches