Skip to content

Commit

Permalink
fix: change condition for asserting that definition has rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n committed Sep 24, 2022
1 parent 8d35f50 commit 65266f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ const parseErrors = async (page) => {
}, definition);
await page.reload({ waitUntil: ['domcontentloaded', 'networkidle0'] });
await page.waitForTimeout(10000);
await page.waitForSelector('.swagger-ui div', { visible: true });
await page.waitForSelector('.swagger-ui div:nth-child(2)', {
visible: true,
});

const errors = (await parseErrors(page)).filter(
(error) => !shouldIgnoreError(error)
Expand Down

0 comments on commit 65266f9

Please sign in to comment.