@@ -16,6 +16,11 @@ public enum ABTest: String, CaseIterable {
1616 ///
1717 case abTestLoginWithWPComOnly = " woocommerceios_login_wpcom_only "
1818
19+ /// A/B test to measure the sign-in success rate when native Jetpack installation experience is enabled
20+ /// Experiment ref: pbxNRc-29W-p2
21+ ///
22+ case nativeJetpackSetupFlow = " woocommerceios_login_jetpack_setup_flow "
23+
1924 /// A/B test for the Products Onboarding banner on the My Store dashboard.
2025 /// Experiment ref: pbxNRc-26F-p2
2126 case productsOnboardingBanner = " woocommerceios_products_onboarding_first_product_banner "
@@ -34,7 +39,7 @@ public enum ABTest: String, CaseIterable {
3439 /// When adding a new experiment, add it to the appropriate case depending on its context (logged-in or logged-out experience).
3540 public var context : ExperimentContext {
3641 switch self {
37- case . productsOnboardingBanner, . productsOnboardingTemplateProducts:
42+ case . productsOnboardingBanner, . productsOnboardingTemplateProducts, . nativeJetpackSetupFlow :
3843 return . loggedIn
3944 case . aaTestLoggedOut, . abTestLoginWithWPComOnly:
4045 return . loggedOut
@@ -47,6 +52,7 @@ public enum ABTest: String, CaseIterable {
4752public extension ABTest {
4853 /// Start the AB Testing platform if any experiment exists for the provided context
4954 ///
55+ @MainActor
5056 static func start( for context: ExperimentContext ) async {
5157 let experiments = ABTest . allCases. filter { $0. context == context }
5258
0 commit comments