This is a simple example of Javascript automation testing using TestCafe tool.
Project requirements : node.js and npm.
# Install TestCafe
npm install -g testcafe
# or for linux
sudo npm install -g testcafe
# Download project and install dependencies
cd testcafe-at-javascript && npm install
# Start server to handle html page
npm start
# Open a new terminal and run TestCafe test (The default browser is chrome)
# """you need to update on package.js the 'test' command if you want to use another browser"""
npm run test
# Or simply use
testcafe [browser] [path-to-test-file]
Mohamed Aimane Skhairi
This project is open-sourced software licensed under the MIT License.