Exemple #1
0
 def test_username_input_box_visible(self):
     loginpage = LoginPage(self.driver)
     assert loginpage.is_available(loginpage.USERNAME)
Exemple #2
0
 def test_menu_search_record_visible(self):
     loginpage = LoginPage(self.driver)
     assert loginpage.is_available(loginpage.SEARCH_RECORD)
Exemple #3
0
 def test_logon(self):
     loginpage = LoginPage(self.driver)
     homepage = loginpage.do_login(TestData.USERNAME, TestData.PASSWORD)
     assert homepage.get_welcome_text()
Exemple #4
0
 def test_menu_view_record_visible(self):
     loginpage = LoginPage(self.driver)
     assert loginpage.is_available(loginpage.VIEW_RECORD)
Exemple #5
0
 def test_menu_create_record_visible(self):
     loginpage = LoginPage(self.driver)
     assert loginpage.is_available(loginpage.CREATE_RECORD)
Exemple #6
0
 def test_login_button_visible(self):
     loginpage = LoginPage(self.driver)
     assert loginpage.is_available(loginpage.LOGIN_BUTTON)
Exemple #7
0
 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()