This code gives you a jump start about using the WebDriver.IO for UI Automation.
make sure to install nodejs on your PC check out the code and open the project with your favorite development IDEA like visual studio code or Intellij IDEA in the terminal, run the command below to install all the dependencies
npm install --save-dev
in the terminal, type the command below and observe the test execution
wdio
the above command will execute the cubecart.e2e.js spec file
- verify admin user login
- verify the customer list link on the dashboard
- verify that admin user can add a new customer
during the test, browser coookies are maintained, so admin user login the dashboard only once after the test, the admin user logs out