IO-2327 timetickets test cases

This commit is contained in:
swtmply
2023-08-25 11:56:24 +08:00
parent c4a961fc03
commit 623b27dbab
4 changed files with 116 additions and 25 deletions

View File

@@ -74,6 +74,22 @@ Cypress.Commands.add("antdSelect", (selector, filter) => {
});
});
Cypress.Commands.add("antdSelectValue", (selector, filter) => {
cy.get(`.ant-select-${selector} > .ant-select-selector`).click();
cy.get(`.ant-select-${selector} .ant-select-selection-search input`)
.invoke("attr", "id")
.then((selElm) => {
const dropDownSelector = `#${selElm}_list`;
cy.get(dropDownSelector)
.next()
.find(".ant-select-item-option-content")
.contains(filter)
.first()
.click({ force: true });
});
});
Cypress.Commands.add(
"insertAvailableJob",
({ bodyshopid, job, job_est_data, token }) => {