test: add wait in jump to field
This commit is contained in:
parent
c5dca5e0b9
commit
e322965a3e
2 changed files with 14 additions and 14 deletions
|
|
@ -99,7 +99,9 @@ context("Form", () => {
|
||||||
cy.new_form("User");
|
cy.new_form("User");
|
||||||
|
|
||||||
jump_to_field("Location"); // this is in collapsed section
|
jump_to_field("Location"); // this is in collapsed section
|
||||||
|
cy.wait(500);
|
||||||
type_value("Bermuda");
|
type_value("Bermuda");
|
||||||
|
cy.wait(500);
|
||||||
|
|
||||||
cy.get_field("location").should("have.value", "Bermuda");
|
cy.get_field("location").should("have.value", "Bermuda");
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -248,20 +248,18 @@ frappe.ui.Sidebar = class Sidebar {
|
||||||
class: "navbar-search-bar hidden",
|
class: "navbar-search-bar hidden",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.standard_items.push(
|
this.standard_items.push({
|
||||||
{
|
label: "Notification",
|
||||||
label: "Notification",
|
icon: "bell",
|
||||||
icon: "bell",
|
type: "Button",
|
||||||
type: "Button",
|
class: "sidebar-notification hidden",
|
||||||
class: "sidebar-notification hidden",
|
onClick: () => {
|
||||||
onClick: () => {
|
this.wrapper.find(".dropdown-notifications").toggleClass("hidden");
|
||||||
this.wrapper.find(".dropdown-notifications").toggleClass("hidden");
|
if (frappe.is_mobile()) {
|
||||||
if (frappe.is_mobile()) {
|
this.wrapper.removeClass("expanded");
|
||||||
this.wrapper.removeClass("expanded");
|
}
|
||||||
}
|
},
|
||||||
},
|
});
|
||||||
}
|
|
||||||
);
|
|
||||||
this.standard_items.forEach((w) => {
|
this.standard_items.forEach((w) => {
|
||||||
this.add_item(this.$standard_items_sections, w);
|
this.add_item(this.$standard_items_sections, w);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue