Project

General

Profile

Actions

action #25494

closed

[sle][functional]change sub function search for yast2_gui/yast2_control_center.pm

Added by zluo over 6 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Start date:
2017-09-21
Due date:
% Done:

100%

Estimated time:
Difficulty:

Description

for sles 15 yast2 gui(qt) tests we have to change the sub function in yast2_control_center.pm

--
sub search {
my ($name) = @_;
# on openSUSE we have a Qt setup with keyboard shortcut
if (check_var('DISTRI', 'opensuse')) {
send_key 'alt-s';
}
# with the gtk interface we have to click as there is no shortcut
elsif (check_var('DISTRI', 'sle')) {
assert_screen([qw(yast2_control-center_search_clear yast2_control-center_search)], no_wait => 1);
if (match_has_tag 'yast2_control-center_search') {
assert_and_click 'yast2_control-center_search';
}
else {
assert_and_click 'yast2_control-center_search_clear';
}
}
wait_screen_change { type_string $name; } if $name;
wait_still_screen 1;

}

Actions

Also available in: Atom PDF