Merge lp:~elopio/ubuntuone-testing/fix-1017518 into lp:ubuntuone-testing

Proposed by Leo Arias
Status: Merged
Approved by: Leo Arias
Approved revision: 99
Merged at revision: 99
Proposed branch: lp:~elopio/ubuntuone-testing/fix-1017518
Merge into: lp:ubuntuone-testing
Prerequisite: lp:~elopio/ubuntuone-testing/skip-payments
Diff against target: 41 lines (+18/-8)
1 file modified
ubuntuone/web/tests/sst/shared/actions/services.py (+18/-8)
To merge this branch: bzr merge lp:~elopio/ubuntuone-testing/fix-1017518
Reviewer Review Type Date Requested Status
Rick McBride (community) Approve
Review via email: mp+111852@code.launchpad.net

This proposal supersedes a proposal from 2012-06-25.

Commit message

Added the actions for the Try Music Streaming page. Fixes lp:1017518

Description of the change

Added the actions for the Try Music Streaming page. Fixes lp:1017518

To post a comment you must log in.
Revision history for this message
Rick McBride (rmcbride) :
review: Approve
Revision history for this message
Ubuntu One Auto Pilot (otto-pilot) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntuone/web/tests/sst/shared/actions/services.py'
2--- ubuntuone/web/tests/sst/shared/actions/services.py 2012-06-25 14:19:48 +0000
3+++ ubuntuone/web/tests/sst/shared/actions/services.py 2012-06-25 14:19:48 +0000
4@@ -82,19 +82,29 @@
5
6 def buy_music_streaming_monthly():
7 """Buy the monthly music streaming service."""
8+ _click_add_music_streaming()
9+ _select_music_streaming_monthly()
10+ _click_next_checkout_button()
11+
12+def _click_add_music_streaming():
13+ add_music_streaming_link = get_element(text='Add Music Streaming')
14+ click_link(add_music_streaming_link)
15+
16+def _select_music_streaming_monthly():
17 set_radio_value('ms1')
18- click_button(get_elements(css_class='buy-now',
19- text='Buy now and go to checkout')[0])
20+
21+def _click_next_checkout_button():
22+ next_checkout_button = get_element(text='Next-checkout')
23+ click_button(next_checkout_button)
24
25 def buy_music_streaming_yearly():
26 """Buy the yearly music streaming service."""
27+ _click_add_music_streaming()
28+ _select_music_streaming_yearly()
29+ _click_next_checkout_button()
30+
31+def _select_music_streaming_yearly():
32 set_radio_value('ms2')
33- buy_music_streaming()
34-
35-def buy_music_streaming():
36- """Click the button to buy the music streaming service."""
37- click_button(get_elements(css_class='buy-now',
38- text='Buy now and go to checkout')[0])
39
40 def assert_storage(quantity):
41 """Asert the storage quantity selected and its space and price.

Subscribers

People subscribed via source and target branches