Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Experiments/Experiments/ABTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ public enum ABTest: String, CaseIterable {
/// `An enum with no cases cannot declare a raw type`
case null

/// A/A test to make sure there is no bias in the logged out state.
/// Experiment ref: pbxNRc-1QS-p2
case aaTestLoggedIn = "woocommerceios_explat_aa_test_logged_in_202212_v2"

/// A/A test to make sure there is no bias in the logged out state.
/// Experiment ref: pbxNRc-1S0-p2
case aaTestLoggedOut = "woocommerceios_explat_aa_test_logged_out_202211"
case aaTestLoggedOut = "woocommerceios_explat_aa_test_logged_out_202212_v2"

/// A/B test to measure the sign-in success rate when only WPCom login is enabled.
/// Experiment ref: pbxNRc-27s-p2
Expand Down Expand Up @@ -39,7 +43,7 @@ public enum ABTest: String, CaseIterable {
/// When adding a new experiment, add it to the appropriate case depending on its context (logged-in or logged-out experience).
public var context: ExperimentContext {
switch self {
case .productsOnboardingBanner, .productsOnboardingTemplateProducts, .nativeJetpackSetupFlow:
case .aaTestLoggedIn, .productsOnboardingBanner, .productsOnboardingTemplateProducts, .nativeJetpackSetupFlow:
return .loggedIn
case .aaTestLoggedOut, .abTestLoginWithWPComOnly:
return .loggedOut
Expand Down