def test_add_responsible_student_has_two_responsibles(self): self.go_to_responsible_of_student_page() add_responsible_of_student_page = AddResponsibleOfStudentPage(self.driver) add_responsible_of_student_page.enter_firstname("Maria") add_responsible_of_student_page.enter_first_surname("Perez") add_responsible_of_student_page.enter_second_surname("Mora") add_responsible_of_student_page.enter_identification("201232974") add_responsible_of_student_page.select_relationship("Madre") add_responsible_of_student_page.enter_job("Ingeniera Quimico") add_responsible_of_student_page.enter_phone_number("12345678") add_responsible_of_student_page.enter_marital_status("Casada") add_responsible_of_student_page.enter_nationality("Costarricense") add_responsible_of_student_page.enter_email("*****@*****.**") add_responsible_of_student_page.enter_address("Ciudad Quesada") add_responsible_of_student_page.click_submit_button() self.assertTrue(add_responsible_of_student_page.is_add_responsible_error_displayed(), GM.ERROR_ADD_RESPONSIBLE_SUBMIT)
def test_add_responsible_of_student_empty_fields(self): self.go_to_responsible_of_student_page() add_responsible_of_student_page = AddResponsibleOfStudentPage(self.driver) add_responsible_of_student_page.click_submit_button() self.assertTrue(add_responsible_of_student_page.is_header_displayed(), GM.MISSING_ERROR_MSG)
def test_add_responsible_student_layout(self): self.go_to_responsible_of_student_page() add_responsible_of_student_page = AddResponsibleOfStudentPage(self.driver) self.assertTrue(add_responsible_of_student_page.is_header_displayed(), GM.MISSING_ERROR_MSG)