class Test_User_Page(BaseTest): def test_user_page_title(self): self.login_page = LoginPage(self.driver) user_page = self.login_page.do_login(TestData.USER_NAME, TestData.PASSWORD) flag = user_page.get_current_path() assert flag == TestData.USER_INFO_URI user_page.submit_user_info() def test_image(self): self.login_page = LoginPage(self.driver) user_page = self.login_page.do_login(TestData.USER_NAME, TestData.PASSWORD) user_page.is_image_present()
class TestLogin(BaseTest): def test_signup_link_visible(self): self.login_page = LoginPage(self.driver) flag = self.login_page.is_signup_link_exist() assert flag def test_login_page_title(self): self.login_page = LoginPage(self.driver) title = self.login_page.get_title(TestData.LOGIN_PAGE_TITLE) assert title == TestData.LOGIN_PAGE_TITLE def test_login(self): self.login_page = LoginPage(self.driver) self.login_page.do_login(TestData.USER_NAME, TestData.PASSWORD)
def test_signup_link_visible(self): self.login_page = LoginPage(self.driver) flag = self.login_page.is_signup_link_exist() assert flag
def test_login(self): self.login_page = LoginPage(self.driver) self.login_page.do_login(TestData.USER_NAME, TestData.PASSWORD)
def test_login_page_title(self): self.login_page = LoginPage(self.driver) title = self.login_page.get_title(TestData.LOGIN_PAGE_TITLE) assert title == TestData.LOGIN_PAGE_TITLE
def test_user_page_title(self): self.login_page = LoginPage(self.driver) user_page = self.login_page.do_login(TestData.USER_NAME, TestData.PASSWORD) flag = user_page.get_current_path() assert flag == TestData.USER_INFO_URI user_page.submit_user_info()
def test_image(self): self.login_page = LoginPage(self.driver) user_page = self.login_page.do_login(TestData.USER_NAME, TestData.PASSWORD) user_page.is_image_present()