def test_login_successful(self):
     login_page = LoginPage(self.driver)
     login_page.enter_username(GC.USERNAME)
     login_page.enter_password(GC.PASSWORD)
     login_page.click_sign_in_button()
     home_page = HomePage(self.driver)
     self.assertTrue(home_page.is_user_name_displayed(), GM.MISSING_ERROR_MSG)
 def go_to_page(self):
     home_page = HomePage(self.driver)
     home_page.click_sign_in()
     login_page = LoginPage(self.driver)
     login_page.enter_username(GC.USERNAME)
     login_page.enter_password(GC.PASSWORD)
     login_page.click_sign_in_button()
     home_page.is_user_name_displayed()
 def test_sign_up(self):
     self.go_to_sign_up_page()
     sign_up_page = SignUpPage(self.driver)
     sign_up_page.enter_first_name("Josue")
     sign_up_page.enter_last_name("Morales")
     sign_up_page.enter_email("*****@*****.**")
     sign_up_page.enter_username("jocampos")
     sign_up_page.enter_password("jocam1994")
     sign_up_page.click_sign_up_button()
     home_page = HomePage(self.driver)
     self.assertTrue(home_page.is_user_name_displayed(),GM.ERROR_USER_NOT_DISPLAYED)
 def go_to_responsible_of_student_page(self):
     home_page = HomePage(self.driver)
     home_page.click_sign_in()
     login_page = LoginPage(self.driver)
     login_page.enter_username(GC.USERNAME)
     login_page.enter_password(GC.PASSWORD)
     login_page.click_sign_in_button()
     home_page.is_user_name_displayed()
     home_page.click_student_tab()
     home_page.select_display_admitted_student_option()
     self.driver.get("http://172.24.28.21:3000/#!/estudiantes/55fad571f2e6997805459141")
     view_student_page = ViewStudentPage(self.driver)
     view_student_page.is_add_responsible_button_displayed()
     view_student_page.click_add_responsible()
 def test_home_page_layout(self):
     home_page = HomePage(self.driver)
     self.assertTrue(home_page.is_title_displayed(), GM.ERROR_HOME_PAGE)
 def go_to_sign_up_page(self):
     home_page = HomePage(self.driver)
     home_page.click_sign_up()