Skip to content

Commit

Permalink
fixes cypress landing page test error for every new PR in 2025
Browse files Browse the repository at this point in the history
  • Loading branch information
DevanjoyDas committed Jan 2, 2025
1 parent ff32d9e commit de3e84e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/e2e/Landing.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down

0 comments on commit de3e84e

Please sign in to comment.