def test_firefox_max_version_updates_correctly(selenium, base_url,
                                               fill_overview):
    """Test setting a Firefox max version."""
    timeline_pop_form = TimelineAndPopulationPage(
        selenium, base_url, experiment_url=f"{fill_overview.url}").open()
    assert timeline_pop_form.firefox_max_version == "Versions"
    version = "78.0"
    timeline_pop_form.firefox_max_version = version
    assert timeline_pop_form.firefox_max_version == version
Esempio n. 2
0
def fill_timeline_page(selenium, base_url, request, variables, fill_overview):
    experiment_type = getattr(request.module, "experiment_type", None)
    timeline = TimelineAndPopulationPage(
        selenium, base_url, experiment_url=f"{fill_overview.url}").open()
    timeline.wait_for_page_to_load()
    date = f"{datetime.datetime.now()}"
    new_date = parse(date)
    today = f"{new_date.date()}"
    timeline.proposed_start_date = today
    timeline.proposed_experiment_duration = "25"
    timeline.population_precentage = "100.0"
    if request.node.get_closest_marker("use_variables"):
        timeline.firefox_channel = f"{variables[experiment_type]['channels']}"
        timeline.firefox_min_version = f"{variables[experiment_type]['min_version']}"
        timeline.firefox_max_version = f"{variables[experiment_type]['max_version']}"
    else:
        timeline.firefox_channel = "nightly"
        timeline.firefox_min_version = "75"
        timeline.firefox_max_version = "100"
    timeline.save_btn()
    return timeline
Esempio n. 3
0
def fill_timeline_page_pref_rollout(selenium, base_url, request, default_data,
                                    experiment_type, fill_overview):
    """Fills timeline page according to pref rollout requirements."""
    timeline = TimelineAndPopulationPage(
        selenium, base_url, experiment_url=f"{fill_overview.url}").open()
    timeline.wait_for_page_to_load()
    date = f"{datetime.datetime.now()}"
    new_date = parse(date)
    today = f"{new_date.date()}"
    timeline.proposed_start_date = today
    timeline.proposed_experiment_duration = "25"
    timeline.rollout_playbook = "Low Risk Schedule"
    timeline.firefox_channel = default_data.channels
    timeline.firefox_min_version = f"{default_data.min_version}.0"
    timeline.firefox_max_version = f"{default_data.max_version}.0"
    timeline.save_btn()
    return timeline
Esempio n. 4
0
def fill_timeline_page(selenium, base_url, request, default_data,
                       experiment_type, fill_overview):
    """Fills timeline page."""
    timeline = TimelineAndPopulationPage(
        selenium, base_url, experiment_url=f"{fill_overview.url}").open()
    timeline.wait_for_page_to_load()
    date = f"{datetime.datetime.now()}"
    new_date = parse(date)
    today = f"{new_date.date()}"
    timeline.proposed_start_date = today
    timeline.proposed_experiment_duration = "25"
    timeline.population_percentage = "100.0"
    timeline.firefox_channel = default_data.channels
    timeline.firefox_min_version = f"{default_data.min_version}.0"
    timeline.firefox_max_version = f"{default_data.max_version}.0"
    timeline.save_btn()
    return timeline