From d1c535c963ed3b5614ad075300c2263c4cf2ade9 Mon Sep 17 00:00:00 2001 From: Yashwanth1906 Date: Sun, 27 Oct 2024 10:48:55 +0530 Subject: [PATCH] link-redirect-modified-final-change --- cypress/components/DocsHelp.cy.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cypress/components/DocsHelp.cy.tsx b/cypress/components/DocsHelp.cy.tsx index cfd9acc80..f6453337b 100644 --- a/cypress/components/DocsHelp.cy.tsx +++ b/cypress/components/DocsHelp.cy.tsx @@ -23,10 +23,10 @@ describe('DocsHelp Component', () => { // Note: we are not using the mockRouter in this test file, but it is required to mock the router in the component file beforeEach(() => { - const markdownFile = '_index'; + const markdownFile = '_md'; mockRouter = mockNextRouter(); cy.viewport(1200, 800); - cy.mount(); + cy.mount(); }); // should render the component correctly @@ -241,8 +241,8 @@ describe('DocsHelp Component', () => { /* Note: Already checking with _index markdown file in the first test case */ // render with _indexPage markdown file - const markdownFile = '_indexPage'; - cy.mount(); + const markdownFile = 'tsx'; + cy.mount(); cy.get(DOCS_HELP).should('exist'); // render without any markdown file