Skip to content

Commit

Permalink
test: modify prevUrl in if-check (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
RahulGautamSingh committed May 22, 2023
1 parent 03a003c commit 4c6ef10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/e2e/sample.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('Basic Tests', () => {
});
cy.get('.md-footer__link--prev').click();
cy.location().should((loc) => {
if (prevUrl === '../..') prevUrl = '/';
if (prevUrl === '..') prevUrl = '/';
expect(loc.href.includes(prevUrl)).to.eq(true);
});
});
Expand Down

0 comments on commit 4c6ef10

Please sign in to comment.