Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
plugins
GSEA
Commits
06283cdd
Commit
06283cdd
authored
Apr 09, 2020
by
David Hoksza
Browse files
proper waiting for plugin initialziation
parent
81568ab2
Pipeline
#25045
passed with stages
in 7 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/test.js
View file @
06283cdd
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment