cra-template-sdlc-rrdc
Version:
A base template for Create React App SDLC with Router, Redux, Docker & Cypress.
18 lines (14 loc) • 379 B
JSX
/// <reference types="cypress" />
describe("index.spec.ts", () => {
beforeEach(() => {
cy.visit("/");
});
it("should have app component", () => {
cy.get("#app").should("have.length", 1);
});
it("should have 'Learn React' anchor", () => {
cy.get("a#learn-react-anchor")
.should("have.length", 1)
.should("have.text", "Learn React");
});
});