def smart_phone_preview_of_questionnaire_on_the_questionnaire_tab(self):
     preview_navigation_page = PreviewNavigationPage(self.driver)
     smart_phone_preview_page = preview_navigation_page.smart_phone_preview(
     )
     self.assertIsNotNone(
         smart_phone_preview_page.get_smart_phone_instruction())
     smart_phone_preview_page.close_preview()
Beispiel #2
0
    def test_smart_phone_preview_of_questionnaire_when_create_project(self):
        create_project_page = self.prerequisites_of_create_project()
        create_project_page.create_project_with(VALID_DATA)
        create_project_page.continue_create_project()

        preview_navigation_page = PreviewNavigationPage(self.driver)
        smart_phone_instruction_page = preview_navigation_page.smart_phone_preview()
        self.assertIsNotNone(smart_phone_instruction_page.get_smart_phone_instruction())
    def web_preview_of_questionnaire_on_the_questionnaire_tab(self):
        preview_navigation_page = PreviewNavigationPage(self.driver)
        web_questionnaire_preview_page = preview_navigation_page.web_questionnaire_preview(
        )

        self.assertIsNotNone(
            web_questionnaire_preview_page.get_web_instruction())
        web_questionnaire_preview_page.close_preview()
    def sms_preview_of_questionnaire_on_the_questionnaire_tab(self, project_name):
        preview_navigation_page = PreviewNavigationPage(self.driver)
        sms_questionnaire_preview_page = preview_navigation_page.sms_questionnaire_preview()

        self.assertIsNotNone(sms_questionnaire_preview_page.sms_questionnaire())
        self.assertEqual(sms_questionnaire_preview_page.get_project_name(), project_name)
        self.assertIsNotNone(sms_questionnaire_preview_page.get_sms_instruction())

        sms_questionnaire_preview_page.close_preview()
        self.assertFalse(sms_questionnaire_preview_page.sms_questionnaire_exist())
Beispiel #5
0
    def test_sms_preview_of_questionnaire_on_the_questionnaire_tab(self):
        self.prerequisites_of_questionnaire_tab()
        preview_navigation_page = PreviewNavigationPage(self.driver)
        sms_questionnaire_preview_page = preview_navigation_page.sms_questionnaire_preview()

        self.assertIsNotNone(sms_questionnaire_preview_page.sms_questionnaire())
        self.assertEqual(sms_questionnaire_preview_page.get_project_name(), "clinic test project")
        self.assertIsNotNone(sms_questionnaire_preview_page.get_sms_instruction())

        sms_questionnaire_preview_page.close_preview()
        self.assertFalse(sms_questionnaire_preview_page.sms_questionnaire_exist())
Beispiel #6
0
    def test_sms_preview_of_questionnaire_when_create_project(self):
        create_project_page = self.prerequisites_of_create_project()
        create_project_page.create_project_with(VALID_DATA)
        create_project_page.continue_create_project()

        preview_navigation_page = PreviewNavigationPage(self.driver)
        sms_questionnaire_preview_page = preview_navigation_page.sms_questionnaire_preview()

        self.assertIsNotNone(sms_questionnaire_preview_page.sms_questionnaire())
        self.assertRegexpMatches(sms_questionnaire_preview_page.get_project_name(), "^%s" % fetch_(PROJECT_NAME, from_(VALID_DATA)))
        self.assertIsNotNone(sms_questionnaire_preview_page.get_sms_instruction())
        
        sms_questionnaire_preview_page.close_preview()
        self.assertFalse(sms_questionnaire_preview_page.sms_questionnaire_exist())
Beispiel #7
0
    def test_web_preview_of_questionnaire_on_the_questionnaire_tab(self):
        self.prerequisites_of_questionnaire_tab()
        preview_navigation_page = PreviewNavigationPage(self.driver)
        web_questionnaire_preview_page = preview_navigation_page.web_questionnaire_preview()

        self.assertIsNotNone(web_questionnaire_preview_page.get_web_instruction())