Skip to content

Instantly share code, notes, and snippets.

@vzaidman
Last active February 9, 2018 08:12
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 vzaidman/2c3f2c6ce2f5245f4e4c04cfe6e3f433 to your computer and use it in GitHub Desktop.
Save vzaidman/2c3f2c6ce2f5245f4e4c04cfe6e3f433 to your computer and use it in GitHub Desktop.
import { Selector } from 'testcafe';
fixture `Getting Started`
.page `https://devexpress.github.io/testcafe/example`
// Own testing structure
test('My first test', async t => {
await t
.typeText('#developer-name', 'John Smith')
.click('#submit-button')
.expect(Selector('#article-header').innerText)
.eql('Thank you, John Smith!')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment