Skip to content

Commit

Permalink
evolution: Update tests for 15-SP6
Browse files Browse the repository at this point in the history
- add timeout for thunderbird_usarname so cursor can move
- add module for dovecot23, it's now not building in out custom repo,
  probably because of opnessl
- press return until email show, on 15-SP6 is one return is not enough

https://progress.opensuse.org/issues/170035
  • Loading branch information
dzedro committed Nov 20, 2024
1 parent 3d6a8e9 commit ce38026
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/thunderbird_common.pm
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ sub tb_setup_account {
# If use multimachine, select correct needles to configure thunderbird.
if ($hostname eq 'client') {
$self->server_hostname_workaround;
if (check_screen 'thunderbird_username') {
if (check_screen 'thunderbird_username', 2) {
record_info 'bsc#1191853';
assert_and_click 'thunderbird_username';
send_key 'ctrl-a';
Expand Down Expand Up @@ -132,7 +132,7 @@ sub tb_setup_account {
assert_and_click 'thunderbird_startssl-selected-for-smtp';
wait_still_screen(1);
assert_and_click 'thunderbird_security-select-none';
if (check_screen 'thunderbird_username') {
if (check_screen 'thunderbird_username', 2) {
record_info 'bsc#1191853';
assert_and_click 'thunderbird_username';
send_key 'ctrl-a';
Expand Down
6 changes: 4 additions & 2 deletions tests/x11/evolution/evolution_prepare_servers.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ sub run() {

if (check_var('SLE_PRODUCT', 'sled') || get_var('DOVECOT_REPO')) {
my $dovecot_repo = get_required_var("DOVECOT_REPO");
my $version = get_var('VERSION');
# Add dovecot repository and install dovecot
zypper_call("ar ${dovecot_repo} dovecot_repo");
zypper_call("ar -f ${dovecot_repo} dovecot_repo");
zypper_call("ar -f http://dist.suse.de/ibs/SUSE/Updates/SLE-Module-Server-Applications/$version/x86_64/update/ server_applications");

zypper_call("--gpg-auto-import-keys ref");
zypper_call("in dovecot 'openssl(cli)'", exitcode => [0, 102, 103]);
zypper_call("rr dovecot_repo");
zypper_call("rr dovecot_repo server_applications");
} else {
if (is_opensuse) {
# exim is installed by default in openSUSE, but we need postfix
Expand Down
4 changes: 1 addition & 3 deletions tests/x11/evolution/evolution_smoke.pm
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ sub run {
wait_still_screen(2, 2);
assert_and_click("evolution_open_inbox_mail");
wait_still_screen(2, 2);
send_key "ret";
wait_still_screen(2, 2);
assert_and_click("evolution_read_test_message");
send_key_until_needlematch('evolution_read_test_message', 'ret', 4, 2);
# Exit
send_key "ctrl-w";
send_key "ctrl-q";
Expand Down

0 comments on commit ce38026

Please sign in to comment.