Skip to content

Commit

Permalink
fix(address-finder): Bump version to 4.5.0 (#512)
Browse files Browse the repository at this point in the history
* fix(address-finder): Bump version to 4.5.0

* update tests

* github actions size check remove

* feat(Address Finder): Update to 4.5.3

---------

Co-authored-by: Christopher Blanchard <[email protected]>
  • Loading branch information
mfilip and cblanc authored May 2, 2024
1 parent 25aec62 commit 38be73b
Show file tree
Hide file tree
Showing 7 changed files with 19,955 additions and 19,573 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/size.yml

This file was deleted.

20 changes: 10 additions & 10 deletions cypress/integration/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@

describe("Autocomplete", () => {
it("mouse select", () => {
cy.get("#line_1").clear({ force: true }).type("M L Roberts Ltd", { force: true });
cy.get("#line_1").clear({ force: true }).type("M N L Engineering Services Ltd", { force: true });
cy.wait(1000);
cy.get(".idpc_ul li").first().click()
cy.wait(1000);
cy.get("#line_1").should('have.value', 'M L Roberts Ltd');
cy.get("#line_2").should('have.value', '2 Stamford Square');
cy.get("#post_town").should('have.value', 'London');
cy.get("#postcode").should('have.value', 'SW15 2BF');
cy.get("#line_1").should('have.value', 'M N L Engineering Services Ltd');
cy.get("#line_2").should('have.value', '2-4 Roberts Street');
cy.get("#post_town").should('have.value', 'Liverpool');
cy.get("#postcode").should('have.value', 'L3 7AS');
cy.wait(1000);
});
it("key select", () => {
cy.get("#line_1").clear({ force: true }).type("M L Roberts Ltd", { force: true });
cy.get("#line_1").clear({ force: true }).type("M N L Engineering Services Ltd", { force: true });
cy.wait(1000);
cy.get("#line_1").type("{downarrow}", { force: true }).type("{enter}", { force: true });
cy.wait(1000);
cy.get("#line_1").should('have.value', 'M L Roberts Ltd');
cy.get("#line_2").should('have.value', '2 Stamford Square');
cy.get("#post_town").should('have.value', 'London');
cy.get("#postcode").should('have.value', 'SW15 2BF');
cy.get("#line_1").should('have.value', 'M N L Engineering Services Ltd');
cy.get("#line_2").should('have.value', '2-4 Roberts Street');
cy.get("#post_town").should('have.value', 'Liverpool');
cy.get("#postcode").should('have.value', 'L3 7AS');
cy.wait(1000);
});
});
Expand Down
2 changes: 2 additions & 0 deletions example/esm.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ <h1>ESM Demo</h1>
AddressFinder.setup({
apiKey: window.apiKey || "ak_test",
inputField: "#line_1",
detectCountry: false,
defaultCountry: "GBR",
outputFields: {
line_1: "#line_1",
line_2: "#line_2",
Expand Down
2 changes: 2 additions & 0 deletions example/ie11.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ <h1>Browser Demo</h1>
IdealPostcodes.AddressFinder.setup({
apiKey: window.apiKey || "ak_test",
inputField: "#line_1",
detectCountry: false,
defaultCountry: "GBR",
outputFields: {
line_1: "#line_1",
line_2: "#line_2",
Expand Down
2 changes: 2 additions & 0 deletions example/umd.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ <h1>UMD Demo</h1>
IdealPostcodes.AddressFinder.setup({
apiKey: window.apiKey || "iddqd",
inputField: "#line_1",
detectCountry: false,
defaultCountry: "GBR",
outputFields: {
line_1: "#line_1",
line_2: "#line_2",
Expand Down
Loading

0 comments on commit 38be73b

Please sign in to comment.