From de3e84ed7ca6f9c6cd82eeaff8d3657351e4f29b Mon Sep 17 00:00:00 2001 From: Devanjoy Das Date: Thu, 2 Jan 2025 21:21:03 +0530 Subject: [PATCH] fixes cypress landing page test error for every new PR in 2025 --- cypress/e2e/Landing.cy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", () => {