IO-2327 posting bills test caes

This commit is contained in:
swtmply
2023-06-26 10:34:33 +08:00
parent 12d07f8318
commit 39f7a3c870
12 changed files with 6155 additions and 12 deletions

View File

@@ -50,7 +50,7 @@ Cypress.on("uncaught:exception", (err, runnable) => {
return false;
});
Cypress.Commands.add("antdSelect", (selector) => {
Cypress.Commands.add("antdSelect", (selector, filter) => {
cy.get(`.ant-select-${selector} > .ant-select-selector`).click();
cy.get(`.ant-select-${selector} .ant-select-selection-search input`)
.invoke("attr", "id")
@@ -59,6 +59,7 @@ Cypress.Commands.add("antdSelect", (selector) => {
cy.get(dropDownSelector)
.next()
.find(".ant-select-item-option-content")
.not(`:contains("${filter}")`)
.first()
.click();
});