def test_firefox_channel_updates_correctly(selenium, base_url, fill_overview): """Test selecting a Firefox Channel.""" timeline_pop_form = TimelineAndPopulationPage( selenium, base_url, experiment_url=f"{fill_overview.url}").open() assert timeline_pop_form.firefox_channel == "Firefox Channel" channel = "Nightly" timeline_pop_form.firefox_channel = channel assert timeline_pop_form.firefox_channel == channel
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
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
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