diff --git a/cypress/e2e/Landing.cy.js b/cypress/e2e/Landing.cy.js index 65e82f4d..4e834aee 100644 --- a/cypress/e2e/Landing.cy.js +++ b/cypress/e2e/Landing.cy.js @@ -7,7 +7,7 @@ describe("Landing Page Tests", () => { }); it("Contains correct heading", () => { const Year = new Date().getFullYear(); - cy.getTestData("landing-heading").contains(`AsyncAPI Conf On Tour ${Year}`); + cy.getTestData("landing-heading").contains(new RegExp(`AsyncAPI Conf On Tour (${Year}|${Year-1})`)); }); it("Should contain About Section", () => { diff --git a/pages/venue/[id].js b/pages/venue/[id].js index a20dcdc5..385725c0 100644 --- a/pages/venue/[id].js +++ b/pages/venue/[id].js @@ -43,7 +43,7 @@ function Venue({ city }) {