Merge pull request #18306 from shariquerik/ui-test-fix
This commit is contained in:
commit
14f0b8a512
3 changed files with 4 additions and 6 deletions
|
|
@ -17,7 +17,7 @@ context("Dashboard links", () => {
|
|||
.window()
|
||||
.its("frappe")
|
||||
.then((frappe) => {
|
||||
return frappe.xcall("frappe.tests.ui_test_helpers.update_child_table", {
|
||||
frappe.call("frappe.tests.ui_test_helpers.update_child_table", {
|
||||
name: child_table_doctype_name,
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -71,7 +71,6 @@ context("Workspace Blocks", () => {
|
|||
url: "api/method/frappe.desk.form.load.getdoctype?**",
|
||||
}).as("get_doctype");
|
||||
|
||||
cy.visit("/app/tools");
|
||||
cy.get(".codex-editor__redactor .ce-block");
|
||||
cy.get(".standard-actions .btn-secondary[data-label=Edit]").click();
|
||||
|
||||
|
|
@ -79,10 +78,8 @@ context("Workspace Blocks", () => {
|
|||
cy.get(".ce-block").first().click({ force: true }).type("{enter}");
|
||||
cy.get(".block-list-container .block-list-item").contains("Quick List").click();
|
||||
|
||||
cy.get_open_dialog().find(".modal-header").click();
|
||||
|
||||
cy.fill_field("label", "ToDo", "Data");
|
||||
cy.fill_field("document_type", "ToDo", "Link").blur();
|
||||
cy.fill_field("label", "ToDo", "Data").blur();
|
||||
cy.wait("@get_doctype");
|
||||
|
||||
cy.get_open_dialog().find(".filter-edit-area").should("contain", "No filters selected");
|
||||
|
|
@ -122,6 +119,7 @@ context("Workspace Blocks", () => {
|
|||
|
||||
cy.get_open_dialog()
|
||||
.find(".filter-field .input-with-feedback")
|
||||
.focus()
|
||||
.type("{selectall}Approved");
|
||||
cy.get_open_dialog().find(".modal-header").click();
|
||||
cy.get_open_dialog().find(".btn-primary").click();
|
||||
|
|
|
|||
|
|
@ -285,7 +285,7 @@ Cypress.Commands.add("get_open_dialog", () => {
|
|||
|
||||
Cypress.Commands.add("save", () => {
|
||||
cy.intercept("/api/method/frappe.desk.form.save.savedocs").as("save_call");
|
||||
cy.get(`button[data-label="Save"]:visible`).click({ scrollBehavior: false, force: true });
|
||||
cy.get(`button[data-label="Save"]:visible`).click({ scrollBehavior: "top", force: true });
|
||||
cy.wait("@save_call");
|
||||
});
|
||||
Cypress.Commands.add("hide_dialog", () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue