Changeset View
Changeset View
Standalone View
Standalone View
neon/tests/plasma/plasma_alternatives.pm
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 24 | sub switch_to { | |||
---|---|---|---|---|---|
46 | 46 | | |||
47 | # Select type. | 47 | # Select type. | ||
48 | assert_and_click "kickoff-alternatives-$type"; | 48 | assert_and_click "kickoff-alternatives-$type"; | ||
49 | # Apply the switch. | 49 | # Apply the switch. | ||
50 | assert_and_click 'plasma-alternatives-switch'; | 50 | assert_and_click 'plasma-alternatives-switch'; | ||
51 | } | 51 | } | ||
52 | 52 | | |||
53 | sub run { | 53 | sub run { | ||
54 | my ($self) = @_; | ||||
54 | assert_screen 'folder-desktop'; | 55 | assert_screen 'folder-desktop'; | ||
55 | 56 | | |||
56 | # Switch to menu (kicker) | 57 | # Switch to menu (kicker) | ||
57 | switch_to 'menu'; | 58 | switch_to 'menu'; | ||
58 | 59 | | |||
59 | assert_screen 'folder-desktop'; | 60 | assert_screen 'folder-desktop'; | ||
60 | 61 | | |||
61 | # Check if kicker opens instead of kickoff | 62 | # Check if kicker opens instead of kickoff | ||
62 | assert_and_click 'plasma-launcher'; | 63 | assert_and_click 'plasma-launcher'; | ||
63 | assert_screen 'plasma-kicker'; | 64 | assert_screen 'plasma-kicker'; | ||
64 | send_key 'esc'; | 65 | send_key 'esc'; | ||
65 | 66 | | |||
67 | # Starting a new session | ||||
68 | $self->logout; | ||||
69 | | ||||
70 | # Back in the session | ||||
71 | $self->login; | ||||
72 | assert_screen 'folder-desktop'; | ||||
73 | | ||||
66 | # Roll back to launcher (kickoff) | 74 | # Roll back to launcher (kickoff) | ||
sitter: might be worth thinking about a helper logout function in basetest seeing as we do this in two… | |||||
67 | switch_to 'launcher'; | 75 | switch_to 'launcher'; | ||
68 | 76 | | |||
69 | assert_screen 'folder-desktop'; | 77 | assert_screen 'folder-desktop'; | ||
70 | assert_and_click 'plasma-launcher'; | 78 | assert_and_click 'plasma-launcher'; | ||
71 | assert_screen 'kickoff-popup'; | 79 | assert_screen 'kickoff-popup'; | ||
72 | wait_still_screen; | 80 | wait_still_screen; | ||
73 | send_key 'esc'; | 81 | send_key 'esc'; | ||
74 | assert_screen 'folder-desktop'; | 82 | assert_screen 'folder-desktop'; | ||
Show All 11 Lines |
might be worth thinking about a helper logout function in basetest seeing as we do this in two tests now