Guest User

Untitled

a guest
Mar 17th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. // a very short TestCafe test suite
  2. fixture('Admin user')
  3. test('Create posts journey', t => {
  4. const postTitle = 'Hello testing'
  5. return t
  6. .typeText(ReactSelector('PostCreator FormControl'), postTitle)
  7. .click(ReactSelector('PostCreator Button'))
  8. .expect(ReactSelector('Post').first().find('label').innerText)
  9. .eql(postTitle)
  10. })
Add Comment
Please, Sign In to add comment