Skip to content

Instantly share code, notes, and snippets.

@jtorreggiani
Last active March 1, 2019 23:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jtorreggiani/a7fef5cee7f72f9c1a07db0940ff01c0 to your computer and use it in GitHub Desktop.
Introduction test assertion
it('has introduction text', async () => {
// Use the browser selector method to get the heading
// See docs for details https://webdriver.io/docs/selectors.html
const paragraph = await browser.$('p')
await expect(paragraph.getText()).resolves.toEqual('Edit src/App.js and save to reload.')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment