Skip to content

Commit

Permalink
fixes and issue with e2e utils (#2311)
Browse files Browse the repository at this point in the history
* in dose not work with null

* Update tests/e2e/utils/utils.js

Co-authored-by: Odei Maiz <33152403+odeimaiz@users.noreply.github.com>

Co-authored-by: Andrei Neagu <neagu@itis.swiss>
Co-authored-by: Odei Maiz <33152403+odeimaiz@users.noreply.github.com>
  • Loading branch information
3 people authored May 4, 2021
1 parent 535b1ba commit ccc86f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ async function isStudyDone(page, studyId) {
console.log("-- Is study done", endPoint);
const resp = await makeRequest(page, endPoint);

if ("state" in resp && "value" in resp["state"]) {
if (resp !== null && "state" in resp && "value" in resp["state"]) {
const pipelineStatus = resp["state"]["value"];
console.log("Pipeline Status:", studyId, pipelineStatus);
const stopListening = [
Expand Down

0 comments on commit ccc86f7

Please sign in to comment.