コード例 #1
0
    def test_user_register(self, browser):
        # Arrange
        page = LoginPage(browser)
        page.open()

        # Act
        page.register_new_user(NewUser.registration_email, User.user_password)

        # Assert
        page.check_welcome_message()
        page.check_account_button()
        page.check_logout_button()
コード例 #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()