Skip to content

Commit

Permalink
Fix specs comment tab alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Jan 3, 2024
1 parent bc87b65 commit a8fc972
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 40 deletions.
22 changes: 11 additions & 11 deletions spec/cypress/e2e/search_spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
58 changes: 29 additions & 29 deletions spec/cypress/e2e/watchlists_spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down

0 comments on commit a8fc972

Please sign in to comment.