Commit 1c889d0d authored by David Hoksza's avatar David Hoksza
Browse files

fix not clearing in CI

parent 67cee234
Pipeline #24920 passed with stages
in 15 minutes and 52 seconds
......@@ -151,8 +151,16 @@ describe("drug reactions plugin", async function() {
const highlighted = await getHighlighted();
assert.equal(highlighted.length, 2);
await search.clear();
await wait(1000);
// await search.clear(); //this does not work in container for some reason, the following jquery solution is a workaround
await driver.executeScript(function () {
$(".search input").trigger($.Event( "keyup", { keyCode: 13 } ));
});
await driver.wait(async function () {
return await driver.executeScript(function () {
return $(".adr-table tbody tr").length
}) > 2;
}, 5000);
recs = await driver.findElements(By.css(".adr-table tbody tr"));
assert.isAbove(recs.length, 2);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment