Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip onboarding in most maestro tests #5682

Merged

Conversation

CDRussell
Copy link
Member

@CDRussell CDRussell commented Feb 24, 2025

Copy link
Member Author

CDRussell commented Feb 24, 2025

@CDRussell CDRussell force-pushed the feature/craig/support_skipping_onboarding_from_build_flag branch from 52209c2 to fa1a69f Compare February 24, 2025 12:51
@CDRussell CDRussell force-pushed the feature/craig/streamline_ui_tests_to_skip_onboarding branch 2 times, most recently from 29d62d0 to 9e1b24a Compare February 24, 2025 12:52
@CDRussell CDRussell force-pushed the feature/craig/support_skipping_onboarding_from_build_flag branch 2 times, most recently from 98d4381 to cc0e92f Compare February 24, 2025 13:07
@CDRussell CDRussell force-pushed the feature/craig/streamline_ui_tests_to_skip_onboarding branch from 9e1b24a to 2c4c2fa Compare February 24, 2025 13:07
Base automatically changed from feature/craig/support_skipping_onboarding_from_build_flag to develop February 25, 2025 09:56
@CDRussell CDRussell requested a review from Copilot March 17, 2025 09:37
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates Maestro test flows to skip the onboarding process in most tests. The key changes are:

  • Replacing references to pre_onboarding.yaml with skip_all_onboarding.yaml across multiple test files.
  • Updating maxRetries from 3 to 0 and adding an ambiguous tag in one test file.

Reviewed Changes

Copilot reviewed 69 out of 69 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.maestro/autofill/1_autofill_shown_in_overflow.yaml Updated tag, maxRetries, and onboarding flow to skip_all_onboarding.yaml.
.maestro/autofill/backfillingUsername/multi_step_login_username_backfilled.yaml Replaced pre_onboarding with skip_all_onboarding.yaml.
.maestro/ads_preview_flows/1-_design-system-components.yaml Replaced pre_onboarding with skip_all_onboarding.yaml.
.maestro/autofill/3_autofill_prompted_to_save_creds_on_form.yaml Replaced pre_onboarding with skip_all_onboarding.yaml.
.maestro/app_tp/app_tp_onboarding.yaml Replaced pre_onboarding with skip_all_onboarding.yaml.
.maestro/autofill/2_autofill_add_search_update_delete_creds.yaml Replaced pre_onboarding with skip_all_onboarding.yaml.
.maestro/ad_click_detection_flows/5_-_y.js_heuristic_ad_domain_provided,_but_empty_u3_not_needed.yaml Replaced pre_onboarding with skip_all_onboarding.yaml.
.maestro/ad_click_detection_flows/2_-_m.js_heuristic_no_ad_domain_param_dsl_param_included_1_1.yaml Replaced pre_onboarding with skip_all_onboarding.yaml.
.maestro/ad_click_detection_flows/8_-_m.js_bing-provided_ad_domain_provided_dsl_not_needed.yaml Replaced pre_onboarding with skip_all_onboarding.yaml.
.maestro/ad_click_detection_flows/10_-_m.js_bing-provided_ad_domain_provided_but_incorrect_dsl_not_needed.yaml Replaced pre_onboarding with skip_all_onboarding.yaml.
.maestro/ad_click_detection_flows/11_-_y.js_bing-provided_ad_domain_provided_but_it's_not_a_domain_i.e.,_abcedf_u3_not_needed.yaml Replaced pre_onboarding with skip_all_onboarding.yaml.
.maestro/ad_click_detection_flows/12_-_m.js_bing-provided_ad_domain_provided_but_it's_not_a_domain_i.e.,_abcedf__dsl_not_needed.yaml Replaced pre_onboarding with skip_all_onboarding.yaml.
.maestro/ad_click_detection_flows/14_-_m.js_bing-provided_ad_domain_provided_but_it's_a_subdomain_of_advertiser_i.e.,_foo.www.search-company-site__dsl_not_needed.yaml Replaced pre_onboarding with skip_all_onboarding.yaml.
.maestro/ad_click_detection_flows/4_-_m.js_heuristic_no_ad_domain_param,_but_missing_dsl_param_1_1.yaml Replaced pre_onboarding with skip_all_onboarding.yaml.
.maestro/ad_click_detection_flows/13_-_y.js_bing-provided_ad_domain_provided_but_it's_a_subdomain_of_advertiser_i.e.,_foo.www.search-company-site_u3_not_needed.yaml Replaced pre_onboarding with skip_all_onboarding.yaml.
.maestro/ad_click_detection_flows/9_-_y.js_bing-provided_ad_domain_provided_but_incorrect_u3_not_needed.yaml Replaced pre_onboarding with skip_all_onboarding.yaml.
.maestro/ad_click_detection_flows/6_-_m.js_heuristic_ad_domain_provided,_but_empty_dsl_not_needed.yaml Replaced pre_onboarding with skip_all_onboarding.yaml.
.maestro/ad_click_detection_flows/1_-_y.js_heuristic_no_ad_domain_param_u3_param_included_1_1_1.yaml Replaced pre_onboarding with skip_all_onboarding.yaml.
.maestro/ad_click_detection_flows/3_-_y.js_heuristic_no_ad_domain_param,_but_missing_u3_param_1_1.yaml Replaced pre_onboarding with skip_all_onboarding.yaml.
.maestro/ad_click_detection_flows/7_-_y.js_bing-provided_ad_domain_provided_u3_not_needed.yaml Replaced pre_onboarding with skip_all_onboarding.yaml.
Comments suppressed due to low confidence (2)

.maestro/autofill/1_autofill_shown_in_overflow.yaml:5

  • [nitpick] The tag 'x' appears ambiguous; consider using a more descriptive tag name or removing it if unintentional.
    - x

.maestro/autofill/1_autofill_shown_in_overflow.yaml:10

  • Changing maxRetries from 3 to 0 disables the retry mechanism, which could lead to test failures in case of intermittent issues; confirm if this is intentional.
maxRetries: 0

@CDRussell CDRussell force-pushed the feature/craig/streamline_ui_tests_to_skip_onboarding branch 2 times, most recently from 0326f87 to b1d1138 Compare March 19, 2025 15:39
@CDRussell CDRussell requested a review from Copilot March 19, 2025 15:40
@CDRussell CDRussell force-pushed the feature/craig/streamline_ui_tests_to_skip_onboarding branch from b1d1138 to dd5d687 Compare March 19, 2025 15:42
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates Maestro test flows to bypass the onboarding process across various YAML configurations and Gradle workflows.

  • Replaces the pre_onboarding runFlow with skip_all_onboarding in multiple ad detection and app flows.
  • Adds the -Pskip-onboarding flag to Gradle assemble commands in GitHub workflows.

Reviewed Changes

Copilot reviewed 67 out of 67 changed files in this pull request and generated no comments.

File Description
.maestro/ad_click_detection_flows/* Replaces pre_onboarding with skip_all_onboarding in various test flows.
.maestro/app_tp/app_tp_onboarding.yaml Updates onboarding flow from pre_onboarding to skip_all_onboarding.
.maestro/ads_preview_flows/1-_design-system-components.yaml Replaces pre_onboarding with skip_all_onboarding.
.github/workflows/privacy-dashboard-end-to-end.yml, release_tests.yml, end-to-end-robintest.yml, e2e-nightly-autofill.yml Adds the -Pskip-onboarding flag to Gradle commands.

Comment on lines +1 to +3
output.onboarding = {
runFullOnboarding: true
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slightly awkward, but this is a mechanism to choose to skip onboarding if possible, and if the button doesn’t appear (unexpectedly) then the test can complete the full onboarding manually

@CDRussell CDRussell force-pushed the feature/craig/streamline_ui_tests_to_skip_onboarding branch from dd5d687 to 26abfb1 Compare March 19, 2025 15:59
@CDRussell CDRussell force-pushed the feature/craig/streamline_ui_tests_to_skip_onboarding branch from 26abfb1 to 3cacba4 Compare March 19, 2025 22:08
@CDRussell CDRussell marked this pull request as ready for review March 20, 2025 09:32
@CrisBarreiro CrisBarreiro self-requested a review March 20, 2025 09:45
tags:
- autofillNoAuthTests
- releaseTest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we changing the tag?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test doesn’t require no auth flag to be provided, it’s a general smoke test that will always work on any device config (and if it doesn’t, we want a strong signal) so adding it as part of the general release tests.

@CDRussell CDRussell merged commit 0b6108a into develop Mar 20, 2025
11 checks passed
@CDRussell CDRussell deleted the feature/craig/streamline_ui_tests_to_skip_onboarding branch March 20, 2025 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants