TestCafe frees you from the need to insert manual timeouts and use cumbersome boilerplate expressions. You’ll spend less time tracking down annoying issues and more time doing what matters most.
Open source documentation: TestCafé
-
Clone the project:
git clone https://github.com/carlos-cerv/TestCafe-Suite.git
-
Open the project and run the next command in the terminal to install the libraries from package.json:
npm i
-
In the root folder create a new file with the next name:
.env
Update with your information and validate correct URL used locally, consider next base example:
URL_TESTPAGE=
USER_PAGE=
PASSWORD=
-
Open the .env file and add the next variables. In BASE_URL add the home page url, in USER_SUCCESS and PASSWORD_SUCCESS add a valid email and password to login successfully in the todoist application:
BASE_URL=https://baseurl.com/
PASSWORD_SUCCESS=validpassword
-
Open the terminal and add the next commands to run the test scripts:
npm test
: run existing test scripts