Skip to content

Instantly share code, notes, and snippets.

@seunzone
Created May 27, 2019 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seunzone/e3fe44cd981be15aa376905460541bed to your computer and use it in GitHub Desktop.
Save seunzone/e3fe44cd981be15aa376905460541bed to your computer and use it in GitHub Desktop.
testcafe
import { Selector } from 'testcafe';
const title = Selector('h4');
fixture('Test')
.page('http://localhost:5000');
test('Test', async (t) => {
await t
.expect(title.innerText).eql('My Todo List')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment