Skip to content

Commit

Permalink
chore(): ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
matteolc committed Oct 3, 2023
1 parent e28982e commit 5355fc2
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 129 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
**/*.js
docs
43 changes: 0 additions & 43 deletions cypress/e2e/smoke.cy.ts
Original file line number Diff line number Diff line change
@@ -1,48 +1,5 @@
import { faker } from "@faker-js/faker";

describe("smoke tests", () => {
afterEach(() => {
cy.cleanupUser();
});

it("should allow you to register and login", () => {
const loginForm = {
email: `${faker.internet.userName()}@example.com`,
password: faker.internet.password(),
};
cy.then(() => ({ email: loginForm.email })).as("user");

cy.visitAndCheck("/");
cy.findByRole("link", { name: /sign up/i }).click();

cy.findByRole("textbox", { name: /email/i }).type(loginForm.email);
cy.findByLabelText(/password/i).type(loginForm.password);
cy.findByRole("button", { name: /create account/i }).click();

cy.findByRole("link", { name: /notes/i }).click();
cy.findByRole("button", { name: /logout/i }).click();
cy.findByRole("link", { name: /log in/i });
});

it("should allow you to make a note", () => {
const testNote = {
title: faker.lorem.words(1),
body: faker.lorem.sentences(1),
};
cy.login();
cy.visitAndCheck("/");

cy.findByRole("link", { name: /notes/i }).click();
cy.findByText("No notes yet");

cy.findByRole("link", { name: /\+ new note/i }).click();

cy.findByRole("textbox", { name: /title/i }).type(testNote.title);
cy.findByRole("textbox", { name: /body/i }).type(testNote.body);
cy.findByRole("button", { name: /save/i }).click();

cy.findByRole("button", { name: /delete/i }).click();

cy.findByText("No notes yet");
});
});
48 changes: 0 additions & 48 deletions cypress/support/create-user.ts

This file was deleted.

37 changes: 0 additions & 37 deletions cypress/support/delete-user.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"exclude": ["./cypress", "./cypress.config.ts"],
"exclude": ["./cypress", "./cypress.config.ts", "./docs"],
"include": ["remix.env.d.ts", "**/*.ts", "**/*.tsx"],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2019"],
Expand Down

0 comments on commit 5355fc2

Please sign in to comment.