Skip to content

Commit

Permalink
Update chrome test due to new UI
Browse files Browse the repository at this point in the history
  • Loading branch information
cedvid committed Apr 18, 2024
1 parent 4bfebd7 commit 4e220fa
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
50 changes: 50 additions & 0 deletions schedule/test-chrome.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: extra_tests_gnome
description: >
Maintainer: qe-core@suse.de
Extra tests for software in desktop applications which were designed to run on gnome
VNC_STALL_THRESHOLD is needed for xen svirt to don't turn off the scrreen after default 4 sec
conditional_schedule:
user_defined_snapshot:
ARCH:
'aarch64':
- x11/user_defined_snapshot
'ppc64le':
- x11/user_defined_snapshot
'x86_64':
- x11/user_defined_snapshot
keyboard_layout_gdm:
ARCH:
'aarch64':
- x11/keyboard_layout_gdm
'ppc64le':
- x11/keyboard_layout_gdm
'x86_64':
- x11/keyboard_layout_gdm
x86_64_tests:
ARCH:
'x86_64':
- x11/steam
- x11/wine
- x11/chrome
opensuse_tests:
DISTRI:
opensuse:
- x11/libqt5_qtbase
- x11/exiv2
- x11/seahorse
- '{{x86_64_tests}}'
- x11/multi_users_dm
- x11/gnucash
- texlive/latexdiff
- appgeo/qgis
- x11/network/hwsim_wpa2_enterprise_setup
- x11/network/yast2_network_use_nm
- x11/network/NM_wpa2_enterprise
schedule:
- installation/bootloader_start
- boot/boot_to_desktop
- console/system_prepare
- console/prepare_test_data
- console/consoletest_setup
- x11/x11_setup
- x11/chrome
8 changes: 8 additions & 0 deletions tests/x11/chrome.pm
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ sub preserve_privacy_of_non_human_openqa_workers {
assert_and_click 'chrome-do_not_send_data' if match_has_tag 'chrome-default-browser-query-send-data';
}

sub click_ad_privacy_feature {
assert_and_click 'google-chrome-ad-privacy-feature-more';
assert_and_click 'google-chrome-ad-privacy-feature-no';
assert_and_click 'google-chrome-ad-privacy-feature-more';
assert_and_click 'google-chrome-ad-privacy-feature-ok';
}

sub run {
my $arch = is_i586 ? 'i386' : 'x86_64';
my $chrome_url = "https://dl.google.com/linux/direct/google-chrome-stable_current_$arch.rpm";
Expand All @@ -48,6 +55,7 @@ sub run {
assert_and_click 'chrome-default-browser-query';
assert_screen [qw(google-chrome-main-window google-chrome-dont-sign-in)];
click_lastmatch if match_has_tag('google-chrome-dont-sign-in');
click_ad_privacy_feature;
wait_screen_change { send_key 'ctrl-l' };
enter_cmd 'about:';
assert_screen 'google-chrome-about';
Expand Down

0 comments on commit 4e220fa

Please sign in to comment.