def test_edit_objectives_box(base_url, selenium, fill_overview):
    analysis = ObjectiveAndAnalysisPage(
        selenium, base_url, experiment_url=f"{fill_overview.url}").open()
    text = "OBJECTIVELY OBJECTIVE"
    assert text not in analysis.objectives_text_box
    analysis.objectives_text_box = text
    detail_page = analysis.save_btn()
    assert text in detail_page.objective_section.text
def test_survey_checkbox(base_url, selenium, fill_overview):
    analysis = ObjectiveAndAnalysisPage(
        selenium, base_url, experiment_url=f"{fill_overview.url}").open()
    text = "wurds words werds"
    analysis.objectives_text_box = "testing 1, 2, 3.."
    analysis.analysis_text_box = text
    assert analysis.survey_required_checkbox == "No"
    analysis.survey_required_checkbox = "Yes"
    assert analysis.survey_required_checkbox == "Yes"
def test_edit_analysis_box(base_url, selenium, fill_overview):
    analysis = ObjectiveAndAnalysisPage(
        selenium, base_url, experiment_url=f"{fill_overview.url}").open()
    text = "Extra WoRdS"
    assert text not in analysis.analysis_text_box
    analysis.objectives_text_box = " tests for analysis section"
    analysis.analysis_text_box = text
    detail_page = analysis.save_btn()
    assert text in detail_page.analysis_section.text
Ejemplo n.º 4
0
def fill_analysis_page(selenium, base_url, request, variables, fill_overview):
    analysis_page = ObjectiveAndAnalysisPage(
        selenium, base_url, experiment_url=f"{fill_overview.url}").open()
    analysis_page.wait_for_page_to_load()
    analysis_page.objectives_text_box = " E2e Testing"
    analysis_page.analysis_text_box = " E2e testing"
    analysis_page.save_btn()
    return analysis_page
Ejemplo n.º 5
0
        def click_edit(self):
            self.find_element(*self._edit_btn_locator).click()

            from pages.experiment_objective_and_analysis import ObjectiveAndAnalysisPage

            return ObjectiveAndAnalysisPage(
                self.driver, self.page.base_url).wait_for_page_to_load()
def test_survey_launch_instructions(base_url, selenium, fill_overview):
    analysis = ObjectiveAndAnalysisPage(
        selenium, base_url, experiment_url=f"{fill_overview.url}").open()
    analysis.objectives_text_box = "testing 1, 2, 3.."
    analysis.analysis_text_box = "wurds words werds"
    analysis.survey_required_checkbox = "Yes"
    analysis.survey_urls = "http://www.url.org"
    assert analysis.survey_launch_instructions == ""
    launch_instructions = "PUSH THE BUTTON"
    analysis.survey_launch_instructions = launch_instructions
    detail_page = analysis.save_btn()
    assert launch_instructions in detail_page.analysis_section.survey_launch_instructions