IO-2327 timetickets validation

This commit is contained in:
swtmply
2023-07-11 06:16:07 +08:00
parent 0a8c2bf385
commit 6562fd57df
9 changed files with 203 additions and 26 deletions

View File

@@ -56,12 +56,21 @@ Cypress.Commands.add("antdSelect", (selector, filter) => {
.invoke("attr", "id")
.then((selElm) => {
const dropDownSelector = `#${selElm}_list`;
cy.get(dropDownSelector)
.next()
.find(".ant-select-item-option-content")
.not(`:contains("${filter}")`)
.first()
.click();
if (filter) {
cy.get(dropDownSelector)
.next()
.find(".ant-select-item-option-content")
.not(`:contains("${filter}")`)
.first()
.click({ force: true });
} else {
cy.get(dropDownSelector)
.next()
.find(".ant-select-item-option-content")
.first()
.click({ force: true });
}
});
});