Skip to content

Commit

Permalink
Extend email test when mutt is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
dzedro committed Apr 2, 2019
1 parent 60cbe69 commit 96a1b14
Showing 1 changed file with 34 additions and 7 deletions.
41 changes: 34 additions & 7 deletions tests/x11/firefox/firefox_emaillink.pm
Expand Up @@ -32,14 +32,41 @@ sub run {
send_key "alt-f";
wait_still_screen 3;
send_key "e";
unless (is_sle('15+')) {
assert_screen(['firefox-email_link-welcome', 'firefox-email-mutt'], 90);
if (match_has_tag('firefox-email-mutt')) {
# if evolution is not installed, e.g. when WE is not pressent, mutt in terminal is used poo#42500
$self->exit_firefox;
return;
assert_screen(['firefox-email_link-welcome', 'firefox-email-mutt'], 90);
if (match_has_tag('firefox-email-mutt')) {
if (is_sle('<=12-sp2')) {
record_soft_failure 'bsc#1131297';
}
else {
send_key 'y'; # yes
sleep 1;
type_string "test\@suse.com\n";
sleep 1;
send_key 'home'; # beginning of subject
sleep 1;
send_key 'ctrl-k'; # delete existing subject
sleep 1;
type_string "test subject\n";
sleep 1;
send_key 'd';
sleep 1;
send_key 'd';
sleep 1;
send_key 'i'; # enter vim insert mode
sleep 1;
type_string "test email\n";
sleep 1;
send_key 'esc'; # escape insert mode
sleep 1;
save_screenshot;
type_string ":wq\n";
sleep 1;
assert_screen('mutt-send');
send_key 'y';
}
}

if (match_has_tag('firefox-email_link-welcome')) {
send_key $next_key;

wait_still_screen 3;
Expand Down Expand Up @@ -86,8 +113,8 @@ sub run {

wait_still_screen 3;
send_key "alt-a";
assert_screen('firefox-email_link-send');
}
assert_screen('firefox-email_link-send');
wait_screen_change {
send_key "esc";
};
Expand Down

0 comments on commit 96a1b14

Please sign in to comment.