IO-2327 added some test cases on posting bills

This commit is contained in:
swtmply
2023-08-18 11:51:56 +08:00
parent 807dbf0248
commit e89145e85f
7 changed files with 170 additions and 13 deletions

View File

@@ -18,7 +18,7 @@ describe(
.should("not.have.class", "ant-table-placeholder");
});
it("order multiple parts for the job", () => {
it("order parts for the job", () => {
const today = moment(new Date()).format("YYYY-MM-DD");
cy.get("@active-jobs-table")
@@ -73,7 +73,7 @@ describe(
.contains("Ordered");
});
it.only("order parts for the job", () => {
it.only("order multiple parts for the job", () => {
const today = moment(new Date()).format("YYYY-MM-DD");
cy.get("@active-jobs-table")
@@ -110,6 +110,8 @@ describe(
cy.get("#deliver_by").click();
cy.get(`[title="${today}"]`).should("be.visible").click({ force: true });
cy.get('[data-cy="part-order-comments"]').type("testing from cypress");
cy.get('[data-cy="part-order-select-none"]').check();
cy.get('[data-cy="order-part-submit"]').should("not.be.disabled").click();