From 3aeb9cf0b1cc3c7e2fc16e1562ca58478f2ea005 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Tue, 22 Apr 2025 15:32:01 +0530 Subject: [PATCH] ci: skip persona form for ui tests --- cypress/e2e/course_creation.cy.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/cypress/e2e/course_creation.cy.js b/cypress/e2e/course_creation.cy.js index 69c0f1ca..061fabb7 100644 --- a/cypress/e2e/course_creation.cy.js +++ b/cypress/e2e/course_creation.cy.js @@ -2,7 +2,10 @@ describe("Course Creation", () => { it("creates a new course", () => { cy.login(); cy.wait(1000); - cy.visit("/lms/courses"); + cy.visit("/lms"); + cy.wait(1000); + cy.get("div").contains("Skip").click(); + cy.wait(1000); // Create a course cy.get("button").contains("New").click(); @@ -19,13 +22,6 @@ describe("Course Creation", () => { ); cy.fixture("profile.png", "base64").then((fileContent) => { - /* cy.get('input[type="file"]').should("be.hidden").attachFile({ - fileContent, - fileName: "profile.png", - mimeType: "image/png", - encoding: "base64", - }); */ - cy.get("div") .contains("Course Image") .siblings("div")