Skip to content

Instantly share code, notes, and snippets.

@innovid-rnd
Created March 15, 2018 07:43
Show Gist options
  • Save innovid-rnd/b9dc3ecafb2917d59f6eca8f3efe6509 to your computer and use it in GitHub Desktop.
Save innovid-rnd/b9dc3ecafb2917d59f6eca8f3efe6509 to your computer and use it in GitHub Desktop.
Hygieia - Test Example
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