test: cypress setup

This commit is contained in:
Jannat Patel
2023-03-29 17:13:51 +05:30
parent de399166f1
commit 065646ed5d
7 changed files with 132 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
describe("Course Creation", () => {
beforeEach(() => {
cy.login();
cy.visit("/courses");
});
it("creates a new course", () => {
cy.get("button").contains("Create a Course").click();
cy.get("button").contains("Add Tag").click();
cy.get(".course-card-pills").type("Test");
cy.get("#title").type("Test Course");
cy.get("#intro").type("Test Course Short Introduction");
});
});