Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mfilip committed Oct 11, 2023
1 parent 7be5bc0 commit 5821732
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/snapshot/cypress/support/suite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ const assertions = (
.get(selectors.organisation)
.should("have.value", address.organisation_name);
const town = address.post_town.toLowerCase();
cy.get(selectors.post_town).should("have.value", town.charAt(0).toUpperCase() + town.slice(1));
cy.get(selectors.post_town).should(
"have.value",
town.charAt(0).toUpperCase() + town.slice(1)
);
cy.get(selectors.country).should("have.value", "JE");
cy.get(selectors.postcode).should("have.value", address.postcode);
};
Expand All @@ -82,7 +85,7 @@ export const autocompleteSuite = (suite: Suite) => {

it("Autocomplete", () => {
cy.get(scope).within((scope) => {
cy.get(selectors.country).select("GB");
cy.get(selectors.country).select("GB", { force: true });
cy.wait(2000);
cy.get(selectors.line_1)
.clear({
Expand All @@ -105,7 +108,7 @@ export const postcodeLookupSuite = (suite: Suite) => {

it("Postcode Lookup", () => {
cy.get(scope).within((scope) => {
cy.get(selectors.country).select("GB");
cy.get(selectors.country).select("GB", { force: true });
cy.wait(1000);
cy.get(".idpc-input")
.clear({
Expand All @@ -116,7 +119,7 @@ export const postcodeLookupSuite = (suite: Suite) => {
});
cy.get(".idpc-button").click({ force: true });
cy.wait(3000);
cy.get(".idpc-select").select("0");
cy.get(".idpc-select").select("0", { force: true });
assertions(scope, selectors, address);
});
});
Expand Down

0 comments on commit 5821732

Please sign in to comment.