Last active
March 1, 2019 23:51
-
-
Save jtorreggiani/a7fef5cee7f72f9c1a07db0940ff01c0 to your computer and use it in GitHub Desktop.
Introduction test assertion
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
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