Пример #1
0
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()
Пример #2
0
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)
Пример #3
0
 def test_signup_link_visible(self):
     self.login_page = LoginPage(self.driver)
     flag = self.login_page.is_signup_link_exist()
     assert flag
Пример #4
0
 def test_login(self):
     self.login_page = LoginPage(self.driver)
     self.login_page.do_login(TestData.USER_NAME, TestData.PASSWORD)
Пример #5
0
 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
Пример #6
0
 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()
Пример #7
0
 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()