Beispiel #1
0
 def test_click_create_account(self):
     self.landingPage = LandingPage(self.driver)
     signin_page = self.landingPage.click_signin_button()
     create_account_page = signin_page.click_create_account_link()
     title = create_account_page.get_title(
         TestData.CREATE_ACCOUNT_PAGE_TITLE)
     assert title == TestData.CREATE_ACCOUNT_PAGE_TITLE_INCORRECT
Beispiel #2
0
 def test_valid_login(self):
     self.landingPage = LandingPage(self.driver)
     signin_options_page = self.landingPage.click_signin_button()
     create_account_page = signin_options_page.click_create_account_link()
     signin_page = create_account_page.login_click()
     user_home_page = signin_page.click_create_account_link()
     title = user_home_page.get_title(TestData.USER_HOME_PAGE)
     assert title == TestData.USER_HOME_PAGE
Beispiel #3
0
 def test_create_new_account(self):
     self.landingPage = LandingPage(self.driver)
     signin_page = self.landingPage.click_signin_button()
     create_account_page = signin_page.click_create_account_link()
     user_home_page = create_account_page.create_new_account()
     title = user_home_page.get_title(TestData.USER_HOME_PAGE)
     assert title == TestData.USER_HOME_PAGE
     user_home_page.sign_out()
Beispiel #4
0
class TestCreatePage(TestBasePage):
    """Test to create a new user account"""
    @pytest.mark.order(1)
    def test_create_new_account(self):
        self.landingPage = LandingPage(self.driver)
        signin_page = self.landingPage.click_signin_button()
        create_account_page = signin_page.click_create_account_link()
        user_home_page = create_account_page.create_new_account()
        title = user_home_page.get_title(TestData.USER_HOME_PAGE)
        assert title == TestData.USER_HOME_PAGE
        user_home_page.sign_out()

    """Test to verify if login is successful"""

    def test_valid_login(self):
        self.landingPage = LandingPage(self.driver)
        signin_options_page = self.landingPage.click_signin_button()
        create_account_page = signin_options_page.click_create_account_link()
        signin_page = create_account_page.login_click()
        user_home_page = signin_page.click_create_account_link()
        title = user_home_page.get_title(TestData.USER_HOME_PAGE)
        assert title == TestData.USER_HOME_PAGE
Beispiel #5
0
 def test_click_signin(self):
     self.landingPage = LandingPage(self.driver)
     signin_options_page = self.landingPage.click_signin_button()
     title = signin_options_page.get_login_page_title()
     assert title == TestData.SIGN_IN_OPTIONS_PAGE_TITLE