Last active
March 1, 2019 22:52
-
-
Save jtorreggiani/001b858e6593260d6c0e93d9db5b184b to your computer and use it in GitHub Desktop.
Assert existence of links
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 home link', async () => { | |
const link = await browser.$('=Home') | |
await expect(link.getAttribute('href')).resolves.toEqual('/') | |
}) | |
it('has todos link', async () => { | |
const link = await browser.$('=Todos') | |
await expect(link.getAttribute('href')).resolves.toEqual('/todos') | |
}) | |
it('has about link', async () => { | |
const link = await browser.$('=About') | |
await expect(link.getAttribute('href')).resolves.toEqual('/about') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment