Skip to content

Commit

Permalink
Enable Onboarding Cutomization Experiment (#3038)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/0/1204321069675643/f

### Description
Enable variants for onboarding Customization Experiment
  • Loading branch information
nalcalag authored Apr 6, 2023
1 parent 51cd042 commit 7702f84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ class VariantManagerTest {
@Test
fun onboardingCustomisationControlVariantHasExpectedWeightAndNoFeatures() {
val variant = variants.first { it.key == "mi" }
assertEqualsDouble(0.0, variant.weight)
assertEqualsDouble(1.0, variant.weight)
assertEquals(0, variant.features.size)
assertEquals(0, variant.features.size)
}

@Test
fun onboardingCustomisationExperimentalVariantHasExpectedWeightAndFeatures() {
val variant = variants.first { it.key == "mj" }
assertEqualsDouble(0.0, variant.weight)
assertEqualsDouble(1.0, variant.weight)
assertEquals(1, variant.features.size)
assertTrue(variant.hasFeature(OnboardingCustomizationExperiment))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ interface VariantManager {
features = listOf(VariantFeature.OptimiseOnboardingExperiment),
filterBy = { isEnglishLocale() && !isGBCountry() },
),
Variant(key = "mi", weight = 0.0, features = emptyList(), filterBy = { noFilter() }),
Variant(key = "mj", weight = 0.0, features = listOf(VariantFeature.OnboardingCustomizationExperiment), filterBy = { noFilter() }),
Variant(key = "mi", weight = 1.0, features = emptyList(), filterBy = { noFilter() }),
Variant(key = "mj", weight = 1.0, features = listOf(VariantFeature.OnboardingCustomizationExperiment), filterBy = { noFilter() }),
)

val REFERRER_VARIANTS = listOf(
Expand Down

0 comments on commit 7702f84

Please sign in to comment.