Skip to content

Commit

Permalink
tests(incito-publication-kit): wait properly
Browse files Browse the repository at this point in the history
  • Loading branch information
klarstrup committed Apr 24, 2023
1 parent 441917b commit 8a31734
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __tests__/chrome/incito-publication-kit.test-chrome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ describe('Chrome: Incito Publication', () => {
id = (await response.json())?.[0]?.id;
});
it('Example html loads', async () => {
const page = newIncognitoPage(`${IPPath}?id=${id}`);
const page = await newIncognitoPage(`${IPPath}?id=${id}`);

await expect(page).toHaveSelector('.sgn__incito');
});
it('Viewer mounts', async () => {
const page = newIncognitoPage(`${IPPath}?id=${id}`);
const page = await newIncognitoPage(`${IPPath}?id=${id}`);

await expect(page).toHaveSelector('.incito__view');
}, 10000);
});
});

0 comments on commit 8a31734

Please sign in to comment.