This pull request includes several changes to enhance the testing setup, update dependencies, and modify the Contact component to support a new page prop. The most important changes include adding Cypress configuration and tests, updating the Contact component, and introducing new scripts in package.json.
Testing Enhancements:
Added Cypress configuration for end-to-end and component testing in cypress.config.ts.
Introduced new Cypress tests for the Navbar component and SEO optimization. [1][2]
Added custom Cypress commands and setup in cypress/support/commands.ts, cypress/support/component.ts, and cypress/support/e2e.ts. [1][2][3]
Updated .husky/pre-push to run component and e2e tests.
Component Modifications:
Modified Contact component to accept a page prop and conditionally render headings. [1][2][3]
This pull request includes several changes to enhance the testing setup, update dependencies, and modify the
Contact
component to support a newpage
prop. The most important changes include adding Cypress configuration and tests, updating theContact
component, and introducing new scripts inpackage.json
.Testing Enhancements:
cypress.config.ts
.Navbar
component and SEO optimization. [1] [2]cypress/support/commands.ts
,cypress/support/component.ts
, andcypress/support/e2e.ts
. [1] [2] [3].husky/pre-push
to run component and e2e tests.Component Modifications:
Contact
component to accept apage
prop and conditionally render headings. [1] [2] [3]ContactPage
to pass the newpage
prop to theContact
component. (app/[locale]/contact/page.tsxL16-R16)Dependency Updates:
package.json
, including Cypress and testing libraries. [1] [2]package.json
for running Cypress tests.Miscellaneous:
sanityFetch.ts
to specify the node environment.Navbar
component for better testability. [1] [2]Issues closed