This commit is contained in:
2021-11-02 21:09:24 +00:00
parent 5f8580a5c4
commit aa04d4ae48
2 changed files with 37 additions and 37 deletions

View File

@@ -32,7 +32,7 @@ Cypress.Commands.add("chooseVSelect", (dataCyTag, selectionText) => {
});
Cypress.Commands.add("choosePickList", (dataCyTag, selectionText) => {
cy.get(`[data-cy='${dataCyTag}']`).click({ force: true }).type('xyz');
cy.get(`[data-cy='${dataCyTag}']`).click({ force: true }).type(selectionText);
cy.get(".v-list-item__title")
.contains(new RegExp("^" + selectionText + "$", "g"))