Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
adding wait for learn more div to get height
Browse files Browse the repository at this point in the history
  • Loading branch information
Helene Rigner committed Oct 8, 2019
1 parent 96329d3 commit 4763440
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/e2e/doc-list.spec.js
Expand Up @@ -9,6 +9,7 @@ describe('doc-list', () => {

await page.click('.Collapsible__trigger');
await page.waitForSelector('.Collapsible__trigger.is-open');
await page.waitForFunction("document.querySelector('.Collapsible__contentOuter').clientHeight != 0");
img = await page.screenshot({ fullPage: true });
await expect(img).to.matchImageOf('learn-more-info', OPTS);
});
Expand Down

0 comments on commit 4763440

Please sign in to comment.