Skip to content

Commit

Permalink
fixes cypress landing page test error for every new PR in 2025 (#506)
Browse files Browse the repository at this point in the history
Co-authored-by: Ashmit Jagtap <[email protected]>
  • Loading branch information
DevanjoyDas and ashmit-coder authored Jan 17, 2025
1 parent c33c344 commit e7aa268
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 e7aa268

Please sign in to comment.