Skip to content

Commit

Permalink
changes to regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmit-coder committed Oct 29, 2024
1 parent fae85c8 commit 47019f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/Navbar.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe("Navbar links", () => {
let data = resourcesData[0].subMenu;
cy.wrap(data).each((val,idx)=>{
cy.getTestData("nav-Resources Hub").trigger('mouseover');
cy.wrap(val.ref).should("match", /.*drive.google.com*/);
cy.wrap(val.ref).should("match", /.*(drive\.google\.com|youtube\.com).*/);
});

});
Expand Down Expand Up @@ -147,7 +147,7 @@ describe("Navbar links", () => {

let data = resourcesData[0].subMenu;
cy.wrap(data).each((val,idx)=>{
cy.wrap(val.ref).should("match", /.*drive.google.com*/);
cy.wrap(val.ref).should("match", /.*(drive\.google\.com|youtube\.com).*/);
});

});
Expand Down

0 comments on commit 47019f6

Please sign in to comment.