This commit is contained in:
@@ -35,7 +35,7 @@ Cypress.Commands.add("choosePickList", (dataCyTag, selectionText) => {
|
|||||||
cy.get(`[data-cy='${dataCyTag}']`).click({ force: true }).type(selectionText);
|
cy.get(`[data-cy='${dataCyTag}']`).click({ force: true }).type(selectionText);
|
||||||
|
|
||||||
cy.get(".v-list-item__title")
|
cy.get(".v-list-item__title")
|
||||||
.contains(selectionText)
|
//.contains(selectionText)
|
||||||
//.contains(new RegExp("^" + selectionText + "$", "g"))
|
.contains(new RegExp("^" + selectionText + "$", "g"))
|
||||||
.click({ force: true });
|
.click({ force: true });
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ function confirmJobDone(jobId, authToken) {
|
|||||||
//3 means job done
|
//3 means job done
|
||||||
if (resp.body.data == 3) return;
|
if (resp.body.data == 3) return;
|
||||||
// else recurse
|
// else recurse
|
||||||
|
cy.wait(1000);
|
||||||
confirmJobDone(jobId, authToken);
|
confirmJobDone(jobId, authToken);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user