Merge pull request #23537 from shariquerik/flaky-ui-test
This commit is contained in:
commit
da385ccefe
3 changed files with 9 additions and 4 deletions
|
|
@ -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 });
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue