From e97fcd4e9975c90d5806866f42190cd91f954bbb Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sun, 30 Oct 2022 02:15:15 +0300 Subject: [PATCH] Remove Cypress tests Planned to be replaced with Playwright maybe? Just removing in the meanwhile so they don't confuse people. Or that people won't accidentally develop new. --- .gitignore | 5 +- README.md | 8 +- app/components/BuildCard.tsx | 4 +- app/components/DateInput.tsx | 3 - app/components/FormWithConfirm.tsx | 7 +- app/components/layout/ColorModeToggle.tsx | 6 +- app/components/layout/HamburgerButton.tsx | 1 - app/components/layout/UserItem.tsx | 16 +- app/entry.client.tsx | 23 +- app/routes/badges.tsx | 1 - app/routes/badges/$id.tsx | 4 +- app/routes/badges/$id/edit.tsx | 21 +- app/routes/calendar/$id/index.tsx | 13 +- app/routes/calendar/$id/report-winners.tsx | 10 +- app/routes/calendar/components/Tags.tsx | 1 - app/routes/calendar/index.tsx | 9 +- app/routes/calendar/new.tsx | 12 +- app/routes/plus.tsx | 12 +- app/routes/plus/suggestions.tsx | 14 +- .../suggestions/comment.$tier.$userId.tsx | 4 +- app/routes/plus/suggestions/new.tsx | 8 +- app/routes/u.$identifier.tsx | 10 +- app/routes/u.$identifier/builds/index.tsx | 6 +- app/routes/u.$identifier/builds/new.tsx | 6 +- app/routes/u.$identifier/edit.tsx | 3 - app/routes/u.$identifier/index.tsx | 10 +- .../u.$identifier/results/highlights.tsx | 1 - cypress.config.ts | 16 - cypress/e2e/badges.cy.ts | 71 - cypress/e2e/builds.cy.ts | 87 - cypress/e2e/calendar.cy.ts | 150 -- cypress/e2e/misc.cy.ts | 19 - cypress/e2e/plus.cy.ts | 91 - cypress/e2e/user.cy.ts | 64 - cypress/support/e2e.ts | 24 - package-lock.json | 2080 ----------------- package.json | 7 +- tsconfig.json | 1 - 38 files changed, 43 insertions(+), 2785 deletions(-) delete mode 100644 cypress.config.ts delete mode 100644 cypress/e2e/badges.cy.ts delete mode 100644 cypress/e2e/builds.cy.ts delete mode 100644 cypress/e2e/calendar.cy.ts delete mode 100644 cypress/e2e/misc.cy.ts delete mode 100644 cypress/e2e/plus.cy.ts delete mode 100644 cypress/e2e/user.cy.ts delete mode 100644 cypress/support/e2e.ts diff --git a/.gitignore b/.gitignore index b7cb775af..b6e561320 100644 --- a/.gitignore +++ b/.gitignore @@ -10,13 +10,10 @@ notes.md db*.sqlite3* dump -/cypress/videos -/cypress/screenshots - .DS_Store .excalidraw /scripts/output/* !/scripts/output/.gitkeep -/scripts/dicts/**/*.json \ No newline at end of file +/scripts/dicts/**/*.json diff --git a/README.md b/README.md index c9446086e..57e98c85b 100644 --- a/README.md +++ b/README.md @@ -13,11 +13,6 @@ There is a sequence of commands you need to run: 5. `npm run dev` to run the project in development mode. 6. Navigate to `http://localhost:5800/admin`. There press the seed button to fill the DB with test data. You can also impersonate any user (Sendou#0043 = admin). -And if you want to run the E2E tests: - -6. Make a copy of the `db.sqlite3` file created by migration and name it `db-cypress.sqlite3`. -7. `npm run dev:cypress` and `npm run cy:open` can be used to run the E2E tests. - ## Lohi TODO: instructions on how to develop Lohi locally @@ -64,8 +59,7 @@ sendou.ink/ │ ├── routes/ -- Routes see: https://remix.run/docs/en/v1/guides/routing │ ├── styles/ -- All .css files of the project for styling │ ├── utils/ -- Random helper functions used in many places -│ └── permissions.ts / -- What actions are allowed. Separated by frontend and backend as frontend has constraints based on what user sees. -├── cypress/ -- see: https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Folder-structure +│ └── permissions.ts / -- What actions are allowed. Separated by frontend and backend as frontend has constraints based on what user sees.writing-and-organizing-tests#Folder-structure ├── discord-bot/ -- Lohi Discord bot that works together with sendou.ink ├── migrations/ -- Database migrations ├── public/ -- Images, built assets etc. static files to be served as is diff --git a/app/components/BuildCard.tsx b/app/components/BuildCard.tsx index 310eca152..ded1d6a3e 100644 --- a/app/components/BuildCard.tsx +++ b/app/components/BuildCard.tsx @@ -67,7 +67,7 @@ export function BuildCard({ build, owner, canEdit = false }: BuildProps) { } = build; return ( -