A TestCafe project showing how to write tests flexibly that can be run against multiple sites.
Please see the related blog article for this project at:
TestCafe – writing flexible tests that can be run against multiple sites
See the defined scripts in package.json
. To easily run any of these scripts:
-
npm install
this repo -
Run
npx ntl
. This will present a (Node Task List)[https://www.npmjs.com/package/ntl] menu of any script to run. Arrow up & down to select any script, then press "Enter".
Example Node Task List menu:
⬢ Node Task List
? Select a task to run:
❯ basic-single-site
refactored-single-site
multi-site-1
multi-site-2
multi-site-3
multi-site-4
multi-site-french-only
(Move up and down to reveal more choices)