Skip to content

Commit

Permalink
modified-test-try1
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashwanth1906 committed Nov 17, 2024
1 parent 59cc591 commit fbfa907
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cypress/components/DocsHelp.cy.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { DocsHelp } from '~/components/DocsHelp';
import mockNextRouter, { MockRouter } from '../plugins/mockNextRouterUtils';

// DocsHelp Data Test IDs
const DOCS_HELP = '[data-test="docs-help"]';
Expand All @@ -18,9 +19,12 @@ const FEEDBACK_FORM_GITHUB_SUCCESS_MESSAGE =
// DocsHelp Component
describe('DocsHelp Component', () => {
const extractPathWithoutFragment = (path: any) => path.split('#')[0];

let mockRouter: MockRouter;
beforeEach(() => {
const markdownFile = "indexmd";
mockRouter = mockNextRouter();
cy.viewport(1200, 800);
cy.mount(<DocsHelp fileRenderType={markdownFile}/>)
});

it('should render the component correctly', () => {
Expand Down

0 comments on commit fbfa907

Please sign in to comment.