We will build our Angular app and serve the dist
dir via a webserver (express).
Then run the Testcafe E2E tests against that instance.
After the tests are done the webserver is stopped.
git clone https://github.com/csgruenebe/showcase-testcafe-e2e-tests-angular.git
cd showcase-testcafe-e2e-tests-angular
npm install
npm run build
npm run test:e2e
# or headless
npm run test:e2e:headless
Run with Predefined Docker Image
docker run -v $(pwd):/tests -it testcafe/testcafe 'chromium --no-sandbox' /tests/e2e-testcafe/test-dashboard.ts
- Testcafe witg BDD and Cucumber.js https://github.com/helen-dikareva/testcafe-cucumber-demo
MIT comSysto GmbH