Beispiel #1
0
    def test_user_logout(self, browser):
        # Arrange
        page = LoginPage(browser)
        page.open()
        page.login_user(User.user_email, User.user_password)

        # Act
        page.logout_user()

        # Assert
        page.check_login_button()
Beispiel #2
0
    def test_user_fail_login(self, browser):
        # Arrange
        page = LoginPage(browser)
        page.open()

        # Act
        page.login_user(User.user_fail_email, User.user_password)

        # Assert
        page.check_welcome_message()
        page.check_account_button()
        page.check_logout_button()
    def test_correct_user_login(self, browser):
        # Arrange
        page = LoginPage(browser, link)
        page.open()
        page.should_be_login_page()

        # Act
        page.login_user(existing_username, existing_username_password)

        # Assert
        page.should_be_success_login_message()
        page.should_be_authorized_user()