Page Objects-based GUI tests using the Webdriver.io framework
- Install the LTS version of Node.js - stable on (nvm use 14.18.1)
- Clone the repo
- Go to the project folder and install dependencies by executing
npm install
terminal
Execute the following commands
npx wdio run ./wdio.conf.js --spec test/testStorefront.js
npx wdio run ./wdio.conf.js --spec test/testSidebar.js
npx wdio run ./wdio.conf.js
- Uncomment the following line from wdio.conf.js file ( // args: ['--no-sandbox', '--disable-dev-shm-usage', '--headless'] )
- docker pull sukhpreetsingh/wdio:1.0
- docker container run -it sukhpreetsingh/wdio:1.0 bash
- Execute (npx wdio run ./wdio.conf.js --spec test/testStorefront.js) to run storefront test cases
- Execute (npx wdio run ./wdio.conf.js --spec test/testSidebar.js) to run sidebar test cases
Execute the following commands
brew install allure
allure generate allure-results --clean
allure open