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