Last active
March 1, 2019 23:51
Star
You must be signed in to star a gist
Introduction test assertion
This file contains 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
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