Beispiel #1
0
    def test_navigation_via_navigate_bar(self):
        data_sender_page = self.go_to_data_sender_page()
        web_submission_page = data_sender_page.send_in_data()
        web_submission_page.navigate_to_project_list()
        data_sender_page = DataSenderPage(self.driver)
        self.assertIsNotNone(data_sender_page.get_project_list())

        smart_phone_instruction_page = data_sender_page.navigate_to_smart_phone_instruction(
        )
        self.assertIsNotNone(
            smart_phone_instruction_page.get_smart_phone_instruction())

        smart_phone_instruction_page.navigate_to_project_list()
        self.assertIsNotNone(data_sender_page.get_project_list())

        web_submission_page = data_sender_page.send_in_data()
        smart_phone_instruction_page = web_submission_page.navigate_to_smart_phone_instruction(
        )
        self.assertIsNotNone(
            smart_phone_instruction_page.get_smart_phone_instruction())

        smart_phone_instruction_page.navigate_to_project_list()
        data_sender_page = DataSenderPage(self.driver)
        add_subject_page = data_sender_page.register_subject()
        smart_phone_instruction_page = add_subject_page.navigate_to_smart_phone_instruction(
        )
        self.assertIsNotNone(
            smart_phone_instruction_page.get_smart_phone_instruction())
Beispiel #2
0
 def test_go_back_to_project_list_directly_when_user_cancel_submission_without_fill_out_form(
         self):
     data_sender_page = self.go_to_data_sender_page()
     web_submission_page = data_sender_page.send_in_data()
     web_submission_page.cancel_submission()
     data_sender_page = DataSenderPage(self.driver)
     self.assertIsNotNone(data_sender_page.get_project_list())
 def test_go_back_to_project_list_from_data_submission_page(self):
     web_submission_page = self.data_sender_page.send_in_data()
     self.driver.wait_for_page_with_title(5,
                                          web_submission_page.get_title())
     web_submission_page.go_back_to_project_list()
     data_sender_page = DataSenderPage(self.driver)
     self.assertIsNotNone(data_sender_page.get_project_list())
    def test_navigation_via_navigate_bar(self):
        web_submission_page = self.data_sender_page.send_in_data()
        self.driver.wait_for_page_with_title(5, web_submission_page.get_title())
        web_submission_page.navigate_to_project_list()
        data_sender_page = DataSenderPage(self.driver)
        self.assertIsNotNone(data_sender_page.get_project_list())

        web_submission_page = self.data_sender_page.send_in_data()
        smart_phone_instruction_page = data_sender_page.navigate_to_smart_phone_instruction()
        self.assertIsNotNone(smart_phone_instruction_page.get_smart_phone_instruction())

        smart_phone_instruction_page.navigate_to_project_list()
        self.assertIsNotNone(data_sender_page.get_project_list())

        web_submission_page = data_sender_page.send_in_data()
        smart_phone_instruction_page = web_submission_page.navigate_to_smart_phone_instruction()
        self.assertIsNotNone(smart_phone_instruction_page.get_smart_phone_instruction())
 def test_cancel_link_in_data_submission(self):
     web_submission_page = self.data_sender_page.send_in_data()
     self.driver.wait_for_page_with_title(5, web_submission_page.get_title())
     web_submission_page.fill_questionnaire_with(VALID_ANSWERS)
     warning_dialog = web_submission_page.cancel_submission()
     warning_dialog.cancel()
     web_submission_page = WebSubmissionPage(self.driver)
     self.assertEquals(web_submission_page.get_project_name(), fetch_(PROJECT_NAME, from_(DEFAULT_ORG_DATA)))
     warning_dialog = web_submission_page.cancel_submission()
     warning_dialog.confirm()
     data_sender_page = DataSenderPage(self.driver)
     self.assertIsNotNone(data_sender_page.get_project_list())
Beispiel #6
0
 def test_go_back_to_project_list_from_register_subject_page(self):
     data_sender_page = self.go_to_data_sender_page()
     add_subject_page = data_sender_page.register_subject()
     add_subject_page.go_back_to_project_list()
     data_sender_page = DataSenderPage(self.driver)
     self.assertIsNotNone(data_sender_page.get_project_list())
Beispiel #7
0
 def test_go_back_to_project_list_from_data_submission_page(self):
     data_sender_page = self.go_to_data_sender_page()
     web_submission_page = data_sender_page.send_in_data()
     web_submission_page.go_back_to_project_list()
     data_sender_page = DataSenderPage(self.driver)
     self.assertIsNotNone(data_sender_page.get_project_list())