action #49355
closed
[functional][u][sporadic] test fails in gnucash to handle "welcome" popup
Added by okurz about 5 years ago.
Updated about 5 years ago.
Category:
Bugs in existing tests
Target version:
SUSE QA - Milestone 24
- Copied to action #49358: [functional][u][sporadic] test fails in wine to close pkcon install xterm added
- Status changed from Workable to In Progress
- Assignee set to zluo
x11_start_program('gnucash', target_match => [qw(gnucash gnucash-tip-close gnucash-assistant-close)]);
if (match_has_tag('gnucash-tip-close')) {
assert_and_click 'gnucash-tip-close';
assert_screen([qw(gnucash gnucash-assistant-close)]);
}
gnucash-tip-close has two areas and following assert_and_close won't work if mouse point is not on "close".
I think that loadling gnucash takes time and Tip of days shows up at once. So that is why assert_and_click doesn't work even the same issue got matched short before this action.
Trying with wait_screen_change now.
trying with
x11_start_program('gnucash', target_match => [qw(gnucash gnucash-tip-close gnucash-assistant-close)]);
if (match_has_tag('gnucash-tip-close')) {
send_key 'esc';
assert_screen([qw(gnucash gnucash-assistant-close)]);
}
- Status changed from In Progress to Feedback
zluo wrote:
x11_start_program('gnucash', target_match => [qw(gnucash gnucash-tip-close gnucash-assistant-close)]);
if (match_has_tag('gnucash-tip-close')) {
assert_and_click 'gnucash-tip-close';
assert_screen([qw(gnucash gnucash-assistant-close)]);
}
gnucash-tip-close has two areas and following assert_and_close won't work if mouse point is not on "close".
Hi zluo,
I find the send_key also ok as general approach to close that window. But, as a reminder for the future, the area to be clicked is the last area in the array from the json file: https://github.com/os-autoinst/os-autoinst/blob/a26db180945ce78ae789500c7f2164931ceccc10/testapi.pm#L467
PR merged.
Waiting for verification run on O3:
for i in `seq -w 1 200`; do
echo "openqa-clone-job --skip-deps --skip-download --host https://openqa.opensuse.org --from https://openqa.opensuse.org 885505 _GROUP_ID=0 TEST=extra_tests_on_kde_$i _PRIORITY=100 BUILD=poo49355_investigation"
done
- Status changed from Feedback to Resolved
Also available in: Atom
PDF