def test_username_input_box_visible(self): loginpage = LoginPage(self.driver) assert loginpage.is_available(loginpage.USERNAME)
def test_menu_search_record_visible(self): loginpage = LoginPage(self.driver) assert loginpage.is_available(loginpage.SEARCH_RECORD)
def test_logon(self): loginpage = LoginPage(self.driver) homepage = loginpage.do_login(TestData.USERNAME, TestData.PASSWORD) assert homepage.get_welcome_text()
def test_menu_view_record_visible(self): loginpage = LoginPage(self.driver) assert loginpage.is_available(loginpage.VIEW_RECORD)
def test_menu_create_record_visible(self): loginpage = LoginPage(self.driver) assert loginpage.is_available(loginpage.CREATE_RECORD)
def test_login_button_visible(self): loginpage = LoginPage(self.driver) assert loginpage.is_available(loginpage.LOGIN_BUTTON)
def test_password_input_box_visible(self): loginpage = LoginPage(self.driver) assert loginpage.is_available(loginpage.PASSWORD)
def test_welcome_note_text(self): log_page = LoginPage(self.driver) homepage = log_page.do_login(TestData.USERNAME, TestData.PASSWORD) assert TestData.WELCOME_NOTE_TEXT == homepage.get_welcome_text()