test: removed beforeEach

This commit is contained in:
Jannat Patel
2023-04-03 22:13:26 +05:30
parent 5089285913
commit 94c2be9919

View File

@@ -1,10 +1,7 @@
describe("Course Creation", () => {
beforeEach(() => {
it("creates a new course", () => {
cy.login();
cy.visit("/courses");
});
it("creates a new course", () => {
// Create a course
cy.get("a.btn").contains("Create a Course").click();
cy.wait(1000);
@@ -19,7 +16,7 @@ describe("Course Creation", () => {
cy.wait(1000);
cy.button("Save Course Details").click();
// Add Cha
// Add Chapter
cy.wait(3000);
cy.button("New Chapter").click();
cy.get(".new-chapter .chapter-title-main").type("Test Chapter");