Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
disease-associations
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
plugins
disease-associations
Commits
e9ebdac0
Commit
e9ebdac0
authored
4 years ago
by
David Hoksza
Browse files
Options
Downloads
Patches
Plain Diff
increased timeout for retrieving hgncs from map
parent
695067a7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#24717
passed
4 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test.js
+8
-4
8 additions, 4 deletions
tests/test.js
with
8 additions
and
4 deletions
tests/test.js
+
8
−
4
View file @
e9ebdac0
...
...
@@ -9,6 +9,7 @@ const XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
// do not run in the same scope as the plugin and thus they do not have access to the Proxy. Therefore, the plugin
// exposes the proxy by attaching it as a data attribute to the main div element.
const
pluginName
=
'
disease-associations
'
;
const
pluginLabel
=
'
Disease-variant associations
'
;
const
minervaProxyContainerClass
=
pluginName
+
'
-container
'
;
const
minervaProxyCode
=
`$('.
${
minervaProxyContainerClass
}
').data('minervaProxy')`
;
...
...
@@ -66,9 +67,12 @@ async function getRequest(uri) {
async
function
getPluginHash
(){
return
getRequest
(
'
http://localhost:8080/minerva/api/plugins/
'
).
then
(
function
(
pluginsResponse
)
{
// !!!!! This expects the plugin to be tested to be the last registered which might not be true when tested outside of CI
const
hashes
=
JSON
.
parse
(
pluginsResponse
.
responseText
);
//.filter(plugin => plugin.name === pluginLabel);
return
hashes
[
hashes
.
length
-
1
].
hash
;
let
hashes
=
JSON
.
parse
(
pluginsResponse
.
responseText
).
filter
(
plugin
=>
plugin
.
name
===
pluginLabel
);
if
(
hashes
.
length
===
0
){
// when tested withing CI there is only one plugin, the current one and it's name is test
hashes
=
JSON
.
parse
(
pluginsResponse
.
responseText
);
}
return
hashes
[
hashes
.
length
-
1
].
hash
;
});
}
...
...
@@ -115,7 +119,7 @@ describe("disease-association 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
);
await
driver
.
wait
(
until
.
elementLocated
(
By
.
css
(
`.disease-input-group .input-disease`
)),
5000
);
await
driver
.
wait
(
until
.
elementLocated
(
By
.
css
(
`.disease-input-group .input-disease`
)),
1
5000
);
});
describe
(
"
Parkinson's disease by EFO
"
,
function
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment