ok, still fixing the g-i-s loop...but I know what was wrong now
the first param to assert_and_click is *the button number*, not the wait time. So as soon as I set that for anything it was not gonna work. So going back to the original approach but fixing that, hope this works.
This commit is contained in:
parent
7c6ad4f29f
commit
db34513524
@ -29,21 +29,16 @@ sub run {
|
|||||||
# is set in which case it will have been done already
|
# is set in which case it will have been done already
|
||||||
if (get_var("DESKTOP") eq 'gnome' && !get_var("START_AFTER_TEST")) {
|
if (get_var("DESKTOP") eq 'gnome' && !get_var("START_AFTER_TEST")) {
|
||||||
assert_screen "next_button", 60;
|
assert_screen "next_button", 60;
|
||||||
# this wizard is kind of annoying, sometimes clicks just
|
for my $n (1..3) {
|
||||||
# don't work. wait_still_screen and wait_screen_change
|
# click 'Next' three times, moving the mouse to avoid
|
||||||
# don't help much either. let's use a loop and just click
|
# highlight problems, sleeping to give it time to get
|
||||||
# until we reach 'skip_button'. if we go through the loop
|
# to the next screen between clicks
|
||||||
# 20 times, give up.
|
|
||||||
for my $n (1..20) {
|
|
||||||
mouse_set(100, 100);
|
mouse_set(100, 100);
|
||||||
assert_and_click "next_button";
|
wait_screen_change { assert_and_click "next_button"; };
|
||||||
mouse_set(100, 100);
|
|
||||||
last if (check_screen "skip_button", 5);
|
|
||||||
}
|
}
|
||||||
# click 'Skip' one time
|
# click 'Skip' one time
|
||||||
sleep 5;
|
mouse_set(100,100);
|
||||||
assert_and_click "skip_button", 5;
|
wait_screen_change { assert_and_click "skip_button"; };
|
||||||
wait_still_screen 5;
|
|
||||||
send_key "ret";
|
send_key "ret";
|
||||||
# wait for the stupid 'help' screen to show and kill it
|
# wait for the stupid 'help' screen to show and kill it
|
||||||
assert_screen "getting_started";
|
assert_screen "getting_started";
|
||||||
|
Loading…
Reference in New Issue
Block a user