Does the user receive a warning when trying to submit an empty form? This test is very similar to the previous test. It will start from the login page and submit the login form. The only difference is that the form should be empty and the error message should contain text. Add the following test to verify that the expected error message is displayed Copy Note In this test the function is accessed through a property. This is done purely to eliminate warnings that appear when the variable is not used. Running the end-to-end test should now show a third set of successful tests. . Verify that the user is directed to the homepage after creating .
a new account. The tests you have wr photo editing servies itten so far assume that the user is not logged in or cannot log in. In this test you will verify that the user is redirected to the home page after successfully creating a new account through the registration form. Adding a new test to your suite The first thing you need to do to introduce and replicate the test is to fill out the registration form with your unique user credentials. This fixture has data specific to this test so you will use these values. Add the following code snippet to fill out the registration form and submit it.
Copy At this point the test will fill in the registration form and click on the register button. When this happens the browser should be redirected to the homepage and the user details should be available in local storage under a key named. Add the following to verify that the redirection occurs and that the user data is available in local storage. Replication If everything runs smoothly you should see a fourth set of successful tests. Replication. Four sets of tests are successful. Note: Remember the test account you created during testing. Will be cleared after the test is completed. To verify this try turning on query login and run the test again to see the clean query. Verify that the user is .