예제 #1
0
    def test_creating_account_passed(self):
        email = str(random.randint(0, 1000)) + "*****@*****.**"
        my_account_page = MyAccountPage(self.driver)
        my_account_page.open_page_my_account()
        my_account_page.create_account(email, "MaciekMacie")

        assert my_account_page.is_logout_link_displayed()
예제 #2
0
    def test_creating_account_failed(self):
        my_account_page = MyAccountPage(self.driver)
        my_account_page.open_page_my_account()
        my_account_page.create_account("*****@*****.**", "MaciekMacie")

        msg = "Error: An account is already registered with your email address. Please log in."
        assert msg in my_account_page.get_error_meassage()
예제 #3
0
    def test_log_in_failed(self):
        my_account_page = MyAccountPage(self.driver)
        my_account_page.open_page_my_account()
        my_account_page.log_in("*****@*****.**", "password")

        assert "Too many failed login attempts." in my_account_page.get_error_meassage()
예제 #4
0
    def test_log_in_passed(self):
        my_account_page = MyAccountPage(self.driver)
        my_account_page.open_page_my_account()
        my_account_page.log_in("*****@*****.**", "MaciekMacie")

        assert my_account_page.is_logout_link_displayed()