Commit 06283cdd authored by David Hoksza's avatar David Hoksza
Browse files

proper waiting for plugin initialziation

parent 81568ab2
Pipeline #25045 passed with stages
in 7 minutes and 30 seconds
......@@ -118,9 +118,10 @@ describe('GSEA plugin', async function() {
await driver.get(`http://localhost:8080/minerva/index.xhtml?id=single-map&plugins=${pluginHash}`);
pluginContainer = await driver.wait(until.elementLocated(By.css(`.${minervaProxyContainerClass}`)),10000);
pluginContainer = await driver.wait(until.elementLocated(By.css(`.${minervaProxyContainerClass}`)));
minervaProxy = await driver.executeScript(`return $('.${minervaProxyContainerClass}').data('minervaProxy')`);
await driver.wait(until.elementLocated(By.css('.gsea-buttons .btn-calc')));
await driver.executeScript(function () {
$('td:contains("Sorted-by-species")').parent().find("input").click();
});
......@@ -130,9 +131,8 @@ describe('GSEA plugin', async function() {
describe("show enriched pathways", function () {
before(async function () {
await driver.executeScript(function () {
$('.gsea-buttons .btn-calc').click();
});
const btn = driver.findElement(By.css('.gsea-buttons .btn-calc'));
await btn.click();
await driver.wait(until.elementLocated(By.css(`.gsea-results button`)));
});
......@@ -154,7 +154,7 @@ describe('GSEA plugin', async function() {
$('.gsea-buttons .btn-reset').click();
});
await driver.wait(until.stalenessOf(elPanelTitle),1000);
await driver.wait(until.stalenessOf(elPanelTitle));
});
it("should reset results", async function () {
......
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