Skip to content

Commit

Permalink
Merge pull request #10752 from Vogtinator/enlightenment
Browse files Browse the repository at this point in the history
Adjust enlightenment test for changes in Tumbleweed
  • Loading branch information
Rodion I committed Jul 28, 2020
2 parents 3768a19 + 16ef406 commit f4b4cf6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
15 changes: 7 additions & 8 deletions tests/x11/enlightenment_first_start.pm
Expand Up @@ -32,19 +32,18 @@ sub run {
assert_and_click "enlightenment_assistant_next";
assert_screen "enlightenment_windowfocus";
assert_and_click "enlightenment_assistant_next";
assert_screen "enlightenment_keybindings";
assert_and_click "enlightenment_assistant_next";
assert_screen [qw(enlightenment_compositing enlightenment_bluez_not_found)];
assert_screen [qw(enlightenment_keybindings enlightenment_bluez_not_found)];
if (match_has_tag 'enlightenment_keybindings') {
assert_and_click "enlightenment_assistant_next";
assert_screen [qw(enlightenment_compositing enlightenment_bluez_not_found)];
}
if (match_has_tag 'enlightenment_bluez_not_found') {
assert_and_click 'enlightenment_assistant_next';
assert_screen 'enlightenment_compositing';
}
assert_and_click "enlightenment_assistant_next";
assert_screen [qw(enlightenment_generic_desktop enlightenment_acpid_missing)];
if (match_has_tag 'enlightenment_acpid_missing') {
assert_and_click 'enlightenment_acpid_missing';
assert_screen 'enlightenment_generic_desktop';
}
assert_and_click 'enlightenment_acpid_missing';
assert_screen 'enlightenment_generic_desktop';
}

sub test_flags {
Expand Down
9 changes: 8 additions & 1 deletion tests/x11/terminology.pm
Expand Up @@ -17,7 +17,14 @@ use testapi;

sub run {
my ($self) = @_;
$self->test_terminal('terminology');
x11_start_program('teminology', target_match => [qw(terminology terminology-config-scale)]);
# Somehow the window loses focus after click_lastmatch hides the mouse, avoid that
mouse_set(25, 25);
click_lastmatch if match_has_tag('terminology-config-scale');
$self->enter_test_text('terminology', cmd => 1);
mouse_hide(1);
assert_screen('test-terminology-1');
send_key('alt-f4');
}

1;

0 comments on commit f4b4cf6

Please sign in to comment.