This commit is contained in:
@@ -25,7 +25,15 @@
|
||||
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
|
||||
|
||||
Cypress.Commands.add("chooseVSelect", (dataCyTag, selectionText) => {
|
||||
cy.get(`[data-cy=${dataCyTag}]`).click({ force: true });
|
||||
cy.get(`[data-cy='${dataCyTag}']`).click({ force: true });
|
||||
cy.get(".v-list-item__title")
|
||||
.contains(new RegExp("^" + selectionText + "$", "g"))
|
||||
.click({ force: true });
|
||||
});
|
||||
|
||||
Cypress.Commands.add("choosePickList", (dataCyTag, selectionText) => {
|
||||
cy.get(`[data-cy='${dataCyTag}']`).click({ force: true }).type('xyz');
|
||||
|
||||
cy.get(".v-list-item__title")
|
||||
.contains(new RegExp("^" + selectionText + "$", "g"))
|
||||
.click({ force: true });
|
||||
|
||||
Reference in New Issue
Block a user