Skip to content

Commit

Permalink
Merge pull request #15551 from rfan1/thunderbird_imap
Browse files Browse the repository at this point in the history
Fix thunderbird test issues due to package update
  • Loading branch information
GraceWang571 committed Sep 22, 2022
2 parents 33e0c68 + 4e0b58b commit c6aedfd
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions lib/thunderbird_common.pm
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ sub tb_setup_account {
send_key 'tab';
wait_screen_change { type_string "$mail_passwd" };
wait_still_screen(2, 4);
send_key 'tab';
send_key 'tab';
send_key_until_needlematch('thunderbird_configure_manually', 'tab', 4, 2);
send_key 'spc'; # configure manually
wait_still_screen(2, 4);
save_screenshot;
Expand All @@ -73,6 +72,10 @@ sub tb_setup_account {
}

if ($proto eq 'pop') {
# make sure imap icon is on top of the page
if (!check_screen 'thunderbird_wizard-imap-selected', 3) {
send_key_until_needlematch('thunderbird_wizard_imap_on_top', 'tab');
}
assert_and_click 'thunderbird_wizard-imap-selected';
assert_and_click 'thunderbird_wizard-imap-pop-open';
if (is_tumbleweed) {
Expand All @@ -96,7 +99,7 @@ sub tb_setup_account {
# If use multimachine, select correct needles to configure thunderbird.
if ($hostname eq 'client') {
send_key 'end'; # go to the bottom to see whole manual configuration
if (check_screen 'thunderbird_in-hostname-start-with-dot') {
if (check_screen 'thunderbird_in-hostname-start-with-dot', 3) {
record_info 'bsc#1191866';
# have to edit both hostnames
assert_and_click 'thunderbird_in-hostname-start-with-dot';
Expand All @@ -110,14 +113,15 @@ sub tb_setup_account {
send_key 'ctrl-a';
type_string 'admin';
}
send_key_until_needlematch 'thunderbird_wizard-retest', 'tab';
assert_and_click 'thunderbird_wizard-retest';
send_key_until_needlematch 'thunderbird_wizard-done', 'tab', 16, 1;
assert_and_click 'thunderbird_wizard-done';
wait_still_screen(2, 4);
assert_and_click 'thunderbird_SSL_done_config' unless check_screen('thunderbird_confirm_security_exception');
assert_and_click "thunderbird_confirm_security_exception";
wait_still_screen(2);
assert_and_click 'thunderbird_account-processed' if $proto eq 'pop';
assert_and_click 'thunderbird_account-processed' if ($proto eq 'pop' && check_screen 'thunderbird_account-processed');
assert_and_click 'thunderbird_finish';
assert_and_click "thunderbird_skip-system-integration";
assert_and_click "thunderbird_get-messages";
Expand All @@ -136,6 +140,7 @@ sub tb_setup_account {
send_key 'ctrl-a';
type_string 'admin';
}
send_key_until_needlematch 'thunderbird_wizard-retest', 'tab';
assert_and_click 'thunderbird_wizard-retest';
send_key_until_needlematch 'thunderbird_wizard-done', 'tab', 16, 1;
assert_and_click 'thunderbird_wizard-done';
Expand All @@ -145,7 +150,7 @@ sub tb_setup_account {
assert_and_click 'thunderbird_I-understand-the-risks';
assert_and_click 'thunderbird_risks-done';
wait_still_screen(2);
assert_and_click 'thunderbird_account-processed' if $proto eq 'pop';
assert_and_click 'thunderbird_account-processed' if ($proto eq 'pop' && check_screen 'thunderbird_account-processed');
assert_and_click 'thunderbird_finish';
# skip additional integrations
assert_and_click "thunderbird_skip-system-integration" if check_screen 'thunderbird_skip-system-integration', 10;
Expand Down

0 comments on commit c6aedfd

Please sign in to comment.