/testcafe-base

Primary LanguageTypeScriptMIT LicenseMIT

Description

basic TestCafe framework TypeScript starter repository.

Installation

install dependencies

npm install

Define Environment Variables

either declaring it system level or defining an .env file in the top-level of this project.

Create .env file using .env.example a template, e.g.

cp ./env.example ./env

launching the tests

# run tests in headless mode.
$ npm run test

# run tests with chrome
$ npm run e2e:chrome

# run tests with edge
$ npm run e2e:edge

# run tests with firefox
$ npm run e2e:firefox

# run tests with internet explorer
$ npm run e2e:ie

# run tests to attach remote mobile browser
$ npm run remote