-
Run
npm install
. This will make sure thenode_modules
folder andpackage-lock.json
are generated, indicating successful download of dependencies for the project. -
Run
Env=qa npm run test:local
. You can also giveEnv
as eitherdev
orprod
. I have anyways kept same url for all the environments for demonstration purposes.
Small note: I am currently exploring to efficiently run this on CI/CD setup as I am facing issues with running wdio test cases on docker container because the base image that official docs asks us to use, is obsolete and archived. It is creating problems with internal infrastructure configuration. (Reference: official docs)