diff --git a/cypress.config.ts b/cypress.config.ts index c656f86..c902104 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -3,7 +3,7 @@ import { grantAdminRole, deleteUser } from "./cypress/e2e/contexts/user/tasks"; import { deleteTorrent, deleteTorrentsInfoFromDatabase } from "./cypress/e2e/contexts/torrent/tasks"; import { deleteCategory, addCategory } from "./cypress/e2e/contexts/category/tasks"; import { deleteTags, addTag } from "./cypress/e2e/contexts/tag/tasks"; -import { DatabaseConfig } from "./cypress/e2e/common/database"; +import type { DatabaseConfig } from "./cypress/e2e/common/database"; function databaseConfig (config: Cypress.PluginConfigOptions): DatabaseConfig { return { diff --git a/cypress/e2e/contexts/torrent/commands.ts b/cypress/e2e/contexts/torrent/commands.ts index 39dce20..bb8412c 100644 --- a/cypress/e2e/contexts/torrent/commands.ts +++ b/cypress/e2e/contexts/torrent/commands.ts @@ -29,7 +29,7 @@ Cypress.Commands.add("upload_torrent", (torrent_info) => { // the tags context. We could even create some tags before running all the // tests. // cy.get("input[data-cy=\"upload-form-torrent-upload\"]").select('fractals'); - + cy.get("input[data-cy=\"upload-form-agree-terms\"]").check(); cy.get("button[data-cy=\"upload-form-submit\"]").click(); }); diff --git a/cypress/e2e/contexts/torrent/specs/upload.cy.ts b/cypress/e2e/contexts/torrent/specs/upload.cy.ts index 692575c..6cd0986 100644 --- a/cypress/e2e/contexts/torrent/specs/upload.cy.ts +++ b/cypress/e2e/contexts/torrent/specs/upload.cy.ts @@ -44,7 +44,7 @@ describe("A registered user", () => { // the tags context. We could even create some tags before running all the // tests. // cy.get("input[data-cy=\"upload-form-torrent-upload\"]").select('fractals'); - + cy.get("input[data-cy=\"upload-form-agree-terms\"]").check(); cy.get("button[data-cy=\"upload-form-submit\"]").click(); cy.get("@infohash").then((infohash) => { diff --git a/pages/upload.vue b/pages/upload.vue index 5ef59d6..fad4aeb 100644 --- a/pages/upload.vue +++ b/pages/upload.vue @@ -41,6 +41,7 @@ + +