-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
53 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
describe('Public navigation', () => { | ||
it('should navigate to the about page', () => { | ||
// Start from the index page | ||
cy.visit('http://localhost:3000/') | ||
|
||
cy.get('nav').should('be.visible') | ||
|
||
// The new page should contain an h1 with "Welcome! to PKMdex" | ||
cy.get('h1').contains('Welcome! to PKMdex') | ||
|
||
// Find a link with an href attribute containing "sign-in" and click it | ||
cy.get('a[href*="sign-in"]').click() | ||
|
||
// The new url should include "/sign-in" | ||
cy.url().should('include', '/sign-in') | ||
|
||
// The new page should contain an h1 with "Sign in" | ||
cy.get('h1').contains('Sign in') | ||
|
||
// Find a link with an href attribute containing "sign-up" and click it | ||
cy.get('a[href*="sign-up"]').click() | ||
|
||
// The new url should include "/sign-up" | ||
cy.url().should('include', '/sign-up') | ||
|
||
// The new page should contain an h1 with "Sign up" | ||
cy.get('h1').contains('Sign Up') | ||
|
||
|
||
|
||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters