Created
March 8, 2018 11:11
-
-
Save tamlyn/a904f730edbb66745e850ce9d24331a5 to your computer and use it in GitHub Desktop.
Example TestCafe test suite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// a very short TestCafe test suite | |
fixture('Admin user') | |
test('Create posts journey', t => { | |
const postTitle = 'Hello testing' | |
return t | |
.typeText(ReactSelector('PostCreator FormControl'), postTitle) | |
.click(ReactSelector('PostCreator Button')) | |
.expect(ReactSelector('Post').first().find('label').innerText) | |
.eql(postTitle) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment