Commit 5c152aab authored by Marek Ostaszewski's avatar Marek Ostaszewski
Browse files

Merge branch 'tests' into 'master'

Tests

See merge request !14
parents b666f965 4ffa8a36
Pipeline #42557 passed with stages
in 10 minutes and 1 second
......@@ -80,7 +80,7 @@ test:
#fetch latest minerva (from master branch)
- cd /
- git clone -b 1016-refactor-test-framework --single-branch https://git-r3lab.uni.lu/minerva/core.git
- git clone https://git-r3lab.uni.lu/minerva/core.git
- cd core
#build minerva and deploy it
- mvn -Dmaven.test.skip=true clean install -pl web -am
......
......@@ -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