def test_create_student_successful(self): self.go_to_page() create_student_page = CreateStudentPage(self.driver) create_student_page.enter_name(GC.NAME) create_student_page.enter_first_last_name(GC.FIRST_LAST_NAME) create_student_page.enter_second_last_name(GC.SECOND_LAST_NAME) create_student_page.enter_birthday(GC.BIRTHDAY) create_student_page.enter_id_number(GC.ID_NUMBER) create_student_page.select_gender(GC.GENDER) create_student_page.enter_phone_number(GC.PHONE_NUMBER) create_student_page.enter_cell_phone_number(GC.CELL_PHONE_NUMBER) create_student_page.enter_email(GC.EMAIL) create_student_page.select_province(GC.PROVINCE) create_student_page.select_canton(GC.CANTON) create_student_page.select_district(GC.DISTRICT) create_student_page.enter_neighborhood(GC.NEIGHBORHOOD) create_student_page.enter_address(GC.ADDRESS) create_student_page.select_high_school(GC.HIGH_SCHOOL) create_student_page.enter_income_year(GC.INCOME_YEAR) create_student_page.set_graduated() create_student_page.select_meaningful_adequacy(GC.MEANINGFUL_ADEQUACY) create_student_page.select_not_meaningful_adequacy(GC.NOT_MEANINGFUL_ADEQUACY) create_student_page.click_create_student() view_student_page = ViewStudentPage(self.driver) self.assertTrue(view_student_page.is_add_responsible_button_displayed(), GM.ERROR_CREATE_STUDENT_PAGE_SUBMIT)
def test_create_student_fieldself(self): self.go_to_page() create_student_page = CreateStudentPage(self.driver) create_student_page.click_create_student() self.assertTrue(create_student_page.is_header_displayed(), GM.ERROR_CREATE_STUDENT_PAGE_INVALID_DATA) time.sleep(2)
def test_create_student_layout(self): self.go_to_page() create_student_page = CreateStudentPage(self.driver) self.assertTrue(create_student_page.is_header_displayed(), GM.ERROR_CREATE_STUDENT_PAGE)