Skip to content

Commit

Permalink
link-redirect-modified-final-change
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashwanth1906 committed Oct 27, 2024
1 parent 31c8a17 commit d1c535c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cypress/components/DocsHelp.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(<DocsHelp markdownFile={markdownFile} />);
cy.mount(<DocsHelp FileRenderType={markdownFile} />);
});

// should render the component correctly
Expand Down Expand Up @@ -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(<DocsHelp markdownFile={markdownFile} />);
const markdownFile = 'tsx';
cy.mount(<DocsHelp FileRenderType={markdownFile} />);
cy.get(DOCS_HELP).should('exist');

// render without any markdown file
Expand Down

0 comments on commit d1c535c

Please sign in to comment.