Skip to content

Commit

Permalink
wdio stop hanging
Browse files Browse the repository at this point in the history
  • Loading branch information
AdnoC committed May 2, 2023
1 parent cf9c6be commit 38a068a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/webdriverio/esmTest.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ async function integrationTest() {
logLevel: 'error'
};
const client = await webdriverio.remote( options );
await client.url(pathToFileURL(path));
await client.url(pathToFileURL(path).toString());

const results = await new AxeBuilder({ client }).analyze();
const results = await new defaultExport({ client }).analyze();
assert(results.violations.length > 0, 'could not find violations');
process.exit(0);
}
integrationTest()

0 comments on commit 38a068a

Please sign in to comment.