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", () => {