Skip to content

Commit 2acbb19

Browse files
committed
chore: add e2e tests for the about page
1 parent b53f12e commit 2acbb19

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

cypress/integration/about.spec.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
describe('About page', () => {
2+
beforeEach(() => {
3+
cy.visit('/about')
4+
})
5+
6+
it('should navigate to the page and go back via "Go back" button', () => {
7+
cy.get('h1').contains('About')
8+
cy.get('[cy-data="go-back-button"]').click()
9+
cy.get('h1').contains('Redux + TypeScript')
10+
})
11+
12+
it('should navigate to the about page and back via header link', () => {
13+
cy.get('h1').contains('About')
14+
cy.get('[cy-data="home-nav-link"] > .active').click()
15+
cy.get('h1').contains('Redux + TypeScript')
16+
})
17+
})

0 commit comments

Comments
 (0)