IO-2327 timetickets validation
This commit is contained in:
@@ -52,10 +52,10 @@ describe(
|
||||
|
||||
// fill out form
|
||||
// data-cy="bill-form-invoice"
|
||||
cy.get('[data-cy="bill-form-invoice"]').type(uniqueId("QBD246-00-"));
|
||||
cy.get('[data-cy="bill-form-invoice"]').type(uniqueId("1QBD246-00-"));
|
||||
|
||||
cy.get("#bill-form-date").click();
|
||||
cy.get('[title="2023-06-30"]').should("be.visible").click();
|
||||
cy.get('[title="2023-07-06"]').should("be.visible").click();
|
||||
|
||||
// get table
|
||||
cy.get('[data-cy="bill-line-table"]').each(($row) => {
|
||||
@@ -94,10 +94,10 @@ describe(
|
||||
// Select Line
|
||||
cy.antdSelect("bill-line", "-- Not On Estimate --");
|
||||
// Fill the Form
|
||||
cy.get('[data-cy="bill-form-invoice"]').type(uniqueId("QBD246-01-"));
|
||||
cy.get('[data-cy="bill-form-invoice"]').type(uniqueId("1QBD246-01-"));
|
||||
|
||||
cy.get("#bill-form-date").click();
|
||||
cy.get('[title="2023-06-30"]').should("be.visible").click();
|
||||
cy.get('[title="2023-07-06"]').should("be.visible").click();
|
||||
|
||||
// get table
|
||||
cy.get('[data-cy="bill-line-table"]').each(($row) => {
|
||||
@@ -136,10 +136,10 @@ describe(
|
||||
// Select Line
|
||||
cy.antdSelect("bill-line", "-- Not On Estimate --");
|
||||
// Fill the Form
|
||||
cy.get('[data-cy="bill-form-invoice"]').type(uniqueId("QBD246-02-"));
|
||||
cy.get('[data-cy="bill-form-invoice"]').type(uniqueId("1QBD246-02-"));
|
||||
|
||||
cy.get("#bill-form-date").click();
|
||||
cy.get('[title="2023-06-30"]').should("be.visible").click();
|
||||
cy.get('[title="2023-07-06"]').should("be.visible").click();
|
||||
|
||||
// get table
|
||||
cy.get('[data-cy="bill-line-table"]').each(($row) => {
|
||||
@@ -287,10 +287,10 @@ describe(
|
||||
.click();
|
||||
|
||||
// fill out form
|
||||
cy.get('[data-cy="bill-form-invoice"]').type(uniqueId("QBD261-0"));
|
||||
cy.get('[data-cy="bill-form-invoice"]').type(uniqueId("1QBD261-0"));
|
||||
|
||||
cy.get("#bill-form-date").click();
|
||||
cy.get('[title="2023-06-30"]').should("be.visible").click();
|
||||
cy.get('[title="2023-07-06"]').should("be.visible").click();
|
||||
|
||||
cy.get('[data-cy="bill-form-bill-total"]').type("70.46");
|
||||
cy.get('[data-cy="bill-line-actual-cost"]').type("67.10");
|
||||
@@ -358,10 +358,10 @@ describe(
|
||||
.click();
|
||||
|
||||
// fill out form
|
||||
cy.get('[data-cy="bill-form-invoice"]').type(uniqueId("QBD261-01-"));
|
||||
cy.get('[data-cy="bill-form-invoice"]').type(uniqueId("1QBD261-01-"));
|
||||
|
||||
cy.get("#bill-form-date").click();
|
||||
cy.get('[title="2023-06-30"]').should("be.visible").click();
|
||||
cy.get('[title="2023-07-06"]').should("be.visible").click();
|
||||
|
||||
cy.get('[data-cy="bill-form-bill-total"]').type("70.46");
|
||||
cy.get('[data-cy="bill-line-actual-cost"]').type("67.10");
|
||||
@@ -396,10 +396,10 @@ describe(
|
||||
.click();
|
||||
|
||||
// fill out form
|
||||
cy.get('[data-cy="bill-form-invoice"]').type(uniqueId("QBD261-02-"));
|
||||
cy.get('[data-cy="bill-form-invoice"]').type(uniqueId("1QBD261-02-"));
|
||||
|
||||
cy.get("#bill-form-date").click();
|
||||
cy.get('[title="2023-06-30"]').should("be.visible").click();
|
||||
cy.get('[title="2023-07-06"]').should("be.visible").click();
|
||||
|
||||
cy.get('[data-cy="bill-form-bill-total"]').type("70.46");
|
||||
cy.get('[data-cy="bill-line-actual-cost"]').type("67.10");
|
||||
|
||||
Reference in New Issue
Block a user