Products Onboarding: Add the banner experiment to the app #8003
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes: #8002
Description
This PR adds the A/B test for the products onboarding banner, and removes it from behind the feature flag.
The banner will only be visible to eligible users in the A/B test treatment group, and only after the A/B test is started on the backend. (The banner is also visible to eligible a8c users in the treatment group while the test is in staging.)
Changes
MockABTestingfor unit testing A/B test behavior:setVariation(_:for:)lets us mock an experiment assignment in unit tests by manually setting the provided variation (control or treatment) for the given experiment.Testing
Prerequisite (before launching the app)
Test the treatment behavior
Test the control behavior
Submitter Checklist
Update release notes:
RELEASE-NOTES.txtif necessary.