diff --git a/cypress/e2e/app.cy.ts b/cypress/e2e/app.cy.ts index c2c1f1d..f166e35 100644 --- a/cypress/e2e/app.cy.ts +++ b/cypress/e2e/app.cy.ts @@ -16,6 +16,12 @@ describe('Navigation', () => { // The new page should contain an h1 with "About page" cy.get('h1').contains('About Page') + + // Go back to home page + cy.go('back') + + // The url should be "/" + cy.url().should('not.include', '/about') }) }) diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx new file mode 100644 index 0000000..636fadb --- /dev/null +++ b/src/app/about/page.tsx @@ -0,0 +1,11 @@ +import AboutComponent from '@/components/about/about-component' + +export default function About() { + return ( +
+
+ +
+
+ ) +} diff --git a/src/app/page.tsx b/src/app/page.tsx index f1ab86a..db0c6bc 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,4 +1,5 @@ import Image from 'next/image' +import Link from 'next/link' export default function Home() { return ( @@ -28,6 +29,15 @@ export default function Home() { +
+ + About + +
+