TestCafe (End-to-End Testing)

npm i testcafe
import { Selector } from 'testcafe';

fixture `My first test`
  .page `http://github.com/`;

test('Find "testcafe" repository on GitHub', async t => {
  await t
    .typeText('form[action="/search"] input[name="q"]', 'testcafe' )
    .expect(Selector('.repo-list > li > div').innerText).eql('DevExpress/testcafe');
testcafe chrome test.js
  • explicit await
  • functional testing
  • it doesn't use WebDriver
  • one-command tool
  • it allows to write tests in ESNext

Subscribe to My Newsletter

The latest programming-related news, articles and resources - sent to your inbox monthly. Unsubscribe anytime.