Skip to content

Commit

Permalink
fix for cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
asinn134 committed Jan 3, 2025
1 parent c1ac54e commit bc75c13
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions services/core-web/cypress/e2e/createproject.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,21 @@ describe("Major Projects", () => {
cy.get(`[name="payment_contact.party_name"]`).type("Tester", { force: true });
cy.get(`[name="payment_contact.phone_no"]`).type("123-456-7890", { force: true });
cy.get(`[name="payment_contact.email"]`).type("[email protected]", { force: true });
cy.get(`[name="payment_contact.address[0].address_line_1"]`).type("123 Fake St", { force: true });
cy.get(`[data-cy="payment_contact.address[0].address_type_code"]`)
.contains("Please select")
.click({
force: true,
});
cy.get('[title="Canada"]').click({ force: true });
cy.get(`[data-cy="payment_contact.address[0].sub_division_code"]`)
.contains("Please select")
.click({
force: true,
});
cy.get('[title="AB"]').click({ force: true });
cy.get(`[name="payment_contact.address[0].post_code"]`).type("A0A0A0", { force: true });
cy.get(`[name="payment_contact.address[0].city"]`).type("Cityville", { force: true });

// SAVE & CONTINUE - Agent
cy.contains("Save & Continue").click({ force: true });
Expand Down

0 comments on commit bc75c13

Please sign in to comment.