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()
def test_registration_of_new_user(self, browser): # Arrange page = LoginPage(browser, link) page.open() page.should_be_login_page() email, password = page.new_user() # Act page.register_new_user(email, password) # Assert page.should_be_authorized_user() page.should_be_success_login_message()