Skip to content

Commit

Permalink
Tests: Allow for tests that do not refer to example tables rows (pull #…
Browse files Browse the repository at this point in the history
  • Loading branch information
spectranaut authored and ZoeBijl committed Nov 1, 2019
1 parent c8546fe commit cd36b4c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@ const _ariaTest = (desc, page, testId, body, failing) => {
t.context.url = url;
await t.context.session.get(url);

const assert = require('assert');
assert(
(await t.context.session.findElements(By.css(selector))).length,
'Cannot find behavior description for this test in example page:' + testId
);
if (testId !== 'test-additional-behavior') {
const assert = require('assert');
assert(
(await t.context.session.findElements(By.css(selector))).length,
'Cannot find behavior description for this test in example page:' + testId
);
}

return body.apply(this, arguments);
});
Expand Down

0 comments on commit cd36b4c

Please sign in to comment.