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 17aa44f
Showing 1 changed file with 8 additions and 0 deletions.
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 17aa44f

Please sign in to comment.