react-starter-kit/cypress/e2e/navigation.cy.js
Mastermindzh 2e49bd9f09 - Added npm run commands to support inforitnl/front-end-build
- Fixed e2e test which targeted the wrong word.
- Updated minor/patch versions of npm packages
- Added junit output for test runners
2022-07-19 10:40:02 +02:00

15 lines
352 B
JavaScript

describe("Application navigation", () => {
beforeEach(() => {
cy.visit("http://localhost:3000");
});
it("Should render the navigation links", () => {
cy.get("[data-testid='nav']");
});
it("Should navigate to about when clicking on About", () => {
cy.get('[data-testid="nav.about"]').click();
cy.contains("About");
});
});