From b2f8c11330ff8eb5aae19c3d4c28cef962e9de2f Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 1 Dec 2023 15:01:54 +0530 Subject: [PATCH 1/3] test: flaky control_link --- cypress/integration/control_link.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress/integration/control_link.js b/cypress/integration/control_link.js index 0746f4460e..7f8123645d 100644 --- a/cypress/integration/control_link.js +++ b/cypress/integration/control_link.js @@ -152,7 +152,7 @@ context("Control Link", () => { cy.get(".frappe-control[data-fieldname=link] input").focus().as("input"); cy.wait("@search_link"); - cy.get("@input").type("todo for link"); + cy.get("@input").type("todo for link", { delay: 200 }); cy.wait("@search_link"); cy.get(".frappe-control[data-fieldname=link] ul").should("be.visible"); cy.get(".frappe-control[data-fieldname=link] input").type("{enter}", { delay: 100 }); @@ -260,7 +260,7 @@ context("Control Link", () => { cy.get(".frappe-control[data-fieldname=link] input").focus().as("input"); cy.wait("@search_link"); - cy.get("@input").type("Sonstiges", { delay: 100 }); + cy.get("@input").type("Sonstiges", { delay: 200 }); cy.wait("@search_link"); cy.get(".frappe-control[data-fieldname=link] ul").should("be.visible"); cy.get(".frappe-control[data-fieldname=link] input").type("{enter}", { delay: 100 }); @@ -291,7 +291,7 @@ context("Control Link", () => { cy.get(".frappe-control[data-fieldname=link] input").focus().as("input"); cy.wait("@search_link"); - cy.get("@input").type("Non-Conforming", { delay: 100 }); + cy.get("@input").type("Non-Conforming", { delay: 200 }); cy.wait("@search_link"); cy.get(".frappe-control[data-fieldname=link] ul").should("be.visible"); cy.get(".frappe-control[data-fieldname=link] input").type("{enter}", { delay: 100 }); From 8c2ef311bbd1d71fc1c4c20178aa0ccf774bb670 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 1 Dec 2023 15:02:06 +0530 Subject: [PATCH 2/3] test: flaky multi_select_dialog --- cypress/integration/multi_select_dialog.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cypress/integration/multi_select_dialog.js b/cypress/integration/multi_select_dialog.js index 1be56d3b3d..7b30ad8c85 100644 --- a/cypress/integration/multi_select_dialog.js +++ b/cypress/integration/multi_select_dialog.js @@ -76,6 +76,11 @@ context("MultiSelectDialog", () => { }); it("tests more button", () => { + cy.get_open_dialog() + .get(`.frappe-control[data-fieldname="search_term"]`) + .find('input[data-fieldname="search_term"]') + .should("exist") + .type("Test", { delay: 200 }); cy.get_open_dialog() .get(`.frappe-control[data-fieldname="more_child_btn"]`) .should("exist") From 33f729ebd35e9aec438102eebe772a7d8f6f9f76 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 1 Dec 2023 20:03:18 +0530 Subject: [PATCH 3/3] chore: linter fix --- frappe/integrations/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/integrations/utils.py b/frappe/integrations/utils.py index a8291a8f6e..86f8b0b1ef 100644 --- a/frappe/integrations/utils.py +++ b/frappe/integrations/utils.py @@ -41,7 +41,7 @@ def make_post_request(url, **kwargs): def make_put_request(url, **kwargs): return make_request("PUT", url, **kwargs) - + def make_patch_request(url, **kwargs): return make_request("PATCH", url, **kwargs)