Challenge: Testing the User Interface with WebdriverIO
Challenge yourself by writing a test to complete the flow from sign-up to logout.
We'll cover the following
Challenge overview
Previously, we wrote individual tests for the sign-up and login workflows. However, we can combine the sign-up and login workflows into one test. Combining the workflows into one test makes the test suite run faster because WebdriverIO only needs to start up and open a browser once.
Challenge instructions
Your task is to use the provided starter test located in the test/specs
file and page object files located in test/pages
to write a single test case that covers the following steps:
Sign up for an account.
Login with the newly created account.
Log out of the account.
Verify the test ends at the login page.
The comments in the given test file provide guidance for each step. Execute the application below to start the application:
Get hands-on with 1400+ tech skills courses.