Skip to content

Commit

Permalink
Add EXP-3965 [v121] Add unenrollment tests to experiment integration …
Browse files Browse the repository at this point in the history
…test suite. (mozilla-mobile#17251)

* Add EXP-3965 [v121] Add unenrollment tests to experiment integration test suite.

* Fix spacing.
  • Loading branch information
b4handjr authored Nov 14, 2023
1 parent 74fb59b commit e830daa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions firefox-ios/Tests/ExperimentIntegrationTests/test_generic.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
import pytest


@pytest.mark.parametrize("load_branches", [("branch")], indirect=True)
def test_experiment_unenrolls_after_studies_toggle(xcodebuild, setup_experiment, start_app, load_branches):
xcodebuild.install()
setup_experiment(load_branches)
xcodebuild.test("XCUITests/ExperimentIntegrationTests/testVerifyExperimentEnrolled", erase=False)
start_app()
xcodebuild.test(
"XCUITests/ExperimentIntegrationTests/testStudiesToggleDisablesExperiment", erase=False
)


@pytest.mark.parametrize("load_branches", [("branch")], indirect=True)
def test_experiment_unenrolls_after_studies_toggle(xcodebuild, setup_experiment, start_app, load_branches):
xcodebuild.install()
Expand Down

0 comments on commit e830daa

Please sign in to comment.