test: updated tests as per latest frappe ui version
This commit is contained in:
@@ -10,11 +10,11 @@ describe("Batch Creation", () => {
|
|||||||
cy.get("span").contains("Settings").click();
|
cy.get("span").contains("Settings").click();
|
||||||
|
|
||||||
// Add a new member
|
// Add a new member
|
||||||
cy.get('[id^="headlessui-dialog-panel-v-"]')
|
cy.get("[data-dismissable-layer]")
|
||||||
.find("span")
|
.find("span")
|
||||||
.contains(/^Members$/)
|
.contains(/^Members$/)
|
||||||
.click();
|
.click();
|
||||||
cy.get('[id^="headlessui-dialog-panel-v-"]')
|
cy.get("[data-dismissable-layer]")
|
||||||
.find("button")
|
.find("button")
|
||||||
.contains("New")
|
.contains("New")
|
||||||
.click();
|
.click();
|
||||||
@@ -28,12 +28,12 @@ describe("Batch Creation", () => {
|
|||||||
cy.get("button").contains("Add").click();
|
cy.get("button").contains("Add").click();
|
||||||
|
|
||||||
// Add evaluator
|
// Add evaluator
|
||||||
cy.get('[id^="headlessui-dialog-panel-v-"]')
|
cy.get("[data-dismissable-layer]")
|
||||||
.find("span")
|
.find("span")
|
||||||
.contains(/^Evaluators$/)
|
.contains(/^Evaluators$/)
|
||||||
.click();
|
.click();
|
||||||
|
|
||||||
cy.get('[id^="headlessui-dialog-panel-v-"]')
|
cy.get("[data-dismissable-layer]")
|
||||||
.find("button")
|
.find("button")
|
||||||
.contains("New")
|
.contains("New")
|
||||||
.click();
|
.click();
|
||||||
@@ -156,11 +156,7 @@ describe("Batch Creation", () => {
|
|||||||
|
|
||||||
/* Add student to batch */
|
/* Add student to batch */
|
||||||
cy.get("button").contains("Add").click();
|
cy.get("button").contains("Add").click();
|
||||||
cy.get('div[id^="headlessui-dialog-panel-v-"]')
|
cy.get('div[role="dialog"]').first().find("button").eq(1).click();
|
||||||
.first()
|
|
||||||
.find("button")
|
|
||||||
.eq(1)
|
|
||||||
.click();
|
|
||||||
cy.get("input[id^='headlessui-combobox-input-v-']").type(randomEmail);
|
cy.get("input[id^='headlessui-combobox-input-v-']").type(randomEmail);
|
||||||
cy.get("div").contains(randomEmail).click();
|
cy.get("div").contains(randomEmail).click();
|
||||||
cy.get("button").contains("Submit").click();
|
cy.get("button").contains("Submit").click();
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ describe("Course Creation", () => {
|
|||||||
cy.button("Add Chapter").click();
|
cy.button("Add Chapter").click();
|
||||||
|
|
||||||
cy.wait(1000);
|
cy.wait(1000);
|
||||||
cy.get("[id^=headlessui-dialog-panel-")
|
cy.get("[data-dismissable-layer]")
|
||||||
.should("be.visible")
|
.should("be.visible")
|
||||||
.within(() => {
|
.within(() => {
|
||||||
cy.get("label").contains("Title").type("Test Chapter");
|
cy.get("label").contains("Title").type("Test Chapter");
|
||||||
@@ -143,7 +143,7 @@ describe("Course Creation", () => {
|
|||||||
cy.get("span").contains("Community").click();
|
cy.get("span").contains("Community").click();
|
||||||
cy.button("New Question").click();
|
cy.button("New Question").click();
|
||||||
cy.wait(500);
|
cy.wait(500);
|
||||||
cy.get("[id^=headlessui-dialog-panel-").within(() => {
|
cy.get("[data-dismissable-layer]").within(() => {
|
||||||
cy.get("label").contains("Title").type("Test Discussion");
|
cy.get("label").contains("Title").type("Test Discussion");
|
||||||
cy.get("div[contenteditable=true]").invoke(
|
cy.get("div[contenteditable=true]").invoke(
|
||||||
"text",
|
"text",
|
||||||
|
|||||||
Reference in New Issue
Block a user