Skip to content

Commit

Permalink
test-modification1
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashwanth1906 committed Nov 4, 2024
1 parent 6ed4a84 commit e6c66a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cypress/components/DocsHelp.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ describe('DocsHelp Component', () => {
});

it('should render the component correctly', () => {
cy.mount(<DocsHelp/>)
cy.get(DOCS_HELP).should('exist');

cy.get('[data-test="need-help-heading"]')
Expand Down Expand Up @@ -184,10 +185,8 @@ describe('DocsHelp Component', () => {
expectedGitRedirect = `https://github.com/json-schema-org/website/blob/main/pages${extractPathWithoutFragment('/some/path') + '.md'}`;
}

// Mounting the component with the current fileRenderType
cy.mount(<DocsHelp fileRenderType={type} />);

// Validating the 'Edit this page on Github' link
cy.get('[data-test="edit-on-github-link"]').should(
'have.attr',
'href',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"@typescript-eslint/parser": "^6.21.0",
"autoprefixer": "^10.4.20",
"babel-plugin-istanbul": "^7.0.0",
"cypress": "^13.13.1",
"cypress": "^13.15.1",
"eslint": "8.57.0",
"eslint-config-next": "14.2.3",
"eslint-config-prettier": "^9.1.0",
Expand Down

0 comments on commit e6c66a3

Please sign in to comment.