Created
March 15, 2018 07:43
-
-
Save innovid-rnd/b9dc3ecafb2917d59f6eca8f3efe6509 to your computer and use it in GitHub Desktop.
Hygieia - Test Example
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
describe("Innovid Website", () => { | |
it("should present 'Innovid Video Marketing Platform' title when the page is loaded", async () => { | |
const page = await hygieia.open('http://www.innovid.com/', { | |
headless: true, | |
slowMo: 300, | |
timeout: 10000 | |
}); | |
await page.waitForNavigation(); | |
const title = await page.evaluate(() => { | |
return document.querySelector("page-desc > p").innerText; | |
}); | |
expect(title).toContain('Innovid Video Marketing Platform'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment