From a8fc9726fb7611edb37aac3ef677decde8752ba4 Mon Sep 17 00:00:00 2001 From: Splines Date: Wed, 3 Jan 2024 15:11:07 +0100 Subject: [PATCH] Fix specs comment tab alignment --- spec/cypress/e2e/search_spec.cy.js | 22 +++++----- spec/cypress/e2e/watchlists_spec.cy.js | 58 +++++++++++++------------- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/spec/cypress/e2e/search_spec.cy.js b/spec/cypress/e2e/search_spec.cy.js index e530b5316..c443b3c79 100644 --- a/spec/cypress/e2e/search_spec.cy.js +++ b/spec/cypress/e2e/search_spec.cy.js @@ -12,20 +12,20 @@ describe("Media", () => { cy.get('input[type="password"]').type("test123456"); cy.get('input[type="submit"]').click(); }); - /* it("can search released media",()=>{ - cy.appFactories([ - ["create","lesson_medium", "with_manuscript","released"], - ["create","lesson_medium", "with_manuscript"] - ]).then((records)=>{ - cy.get('#mediaSearchLink').click(); - cy.get('#collapseMediaSearch > .card-body > form > .row > .col-12 > .btn').click(); - cy.get('#media-search-results').get('.col-12 > .card').should('have.length',1); - }); - }); */ + /* it("can search released media", () => { + cy.appFactories([ + ["create", "lesson_medium", "with_manuscript", "released"], + ["create", "lesson_medium", "with_manuscript"], + ]).then((_records) => { + cy.get("#mediaSearchLink").click(); + cy.get("#collapseMediaSearch > .card-body > form > .row > .col-12 > .btn").click(); + cy.get("#media-search-results").get(".col-12 > .card").should("have.length", 1); + }); + }); */ it("can filter for tags", () => { cy.appFactories([ ["create", "lesson_medium", "with_manuscript", "released", "with_tags"], - ["create", "lesson_medium", "with_manuscript", "released"], + ["create", "lesson_medium", "with_manuscript", "released"], ]).then((records) => { cy.get("#mediaSearchLink").click(); cy.get("#media_fulltext").type(records[0].description); diff --git a/spec/cypress/e2e/watchlists_spec.cy.js b/spec/cypress/e2e/watchlists_spec.cy.js index 2513d3787..4f6cedaa0 100644 --- a/spec/cypress/e2e/watchlists_spec.cy.js +++ b/spec/cypress/e2e/watchlists_spec.cy.js @@ -11,35 +11,35 @@ describe("Watchlists", () => { cy.get('input[type="password"]').type("test123456"); cy.get('input[type="submit"]').click(); }); - // it("can create and add to watchlist in lecture", () => { - // cy.appFactories([ - // ["create", "lecture_medium", "with_manuscript", "released"], - // ["create", - // "lecture_user_join", { - // user_id: 1, - // lecture_id: 1 - // } - // ] - // ]).then((data) => { - // cy.visit(`lectures/${data[0].id}`); - // cy.get('.nav > :nth-child(6) > .nav-link').click(); - // cy.get('div.text-light > .fa-list').click(); - // cy.get('#openNewWatchlistForm').click(); - // cy.get('#watchlistNameField').type('Lernliste'); - // cy.get(100); - // cy.get('#createWatchlistBtn').click(); - // cy.get('#watchlistEntrySubmitButton').click(); - // cy.wait(100); - // cy.get('div.text-light > .fa-list').click(); - // cy.get('#watchlistEntrySubmitButton').click(); - // cy.get('.invalid-feedback').should('exist'); - // cy.wait(200); - // cy.get('.close > span').click(); - // cy.wait(100); - // cy.get('#watchlistsIcon').click(); - // cy.get('#card-title').should('exist'); - // }); - // }); + /* it("can create and add to watchlist in lecture", () => { + cy.appFactories([ + ["create", "lecture_medium", "with_manuscript", "released"], + ["create", + "lecture_user_join", { + user_id: 1, + lecture_id: 1, + }, + ], + ]).then((data) => { + cy.visit(`lectures/${data[0].id}`); + cy.get(".nav > :nth-child(6) > .nav-link").click(); + cy.get("div.text-light > .fa-list").click(); + cy.get("#openNewWatchlistForm").click(); + cy.get("#watchlistNameField").type("Lernliste"); + cy.get(100); + cy.get("#createWatchlistBtn").click(); + cy.get("#watchlistEntrySubmitButton").click(); + cy.wait(100); + cy.get("div.text-light > .fa-list").click(); + cy.get("#watchlistEntrySubmitButton").click(); + cy.get(".invalid-feedback").should("exist"); + cy.wait(200); + cy.get(".close > span").click(); + cy.wait(100); + cy.get("#watchlistsIcon").click(); + cy.get("#card-title").should("exist"); + }); + }); */ it("can change watchlist", () => { cy.appFactories([ ["create", "watchlist", {