test: add wait in jump to field

This commit is contained in:
Ejaaz Khan 2025-12-04 11:34:21 +05:30
parent c5dca5e0b9
commit e322965a3e
2 changed files with 14 additions and 14 deletions

View file

@ -99,7 +99,9 @@ context("Form", () => {
cy.new_form("User");
jump_to_field("Location"); // this is in collapsed section
cy.wait(500);
type_value("Bermuda");
cy.wait(500);
cy.get_field("location").should("have.value", "Bermuda");
});

View file

@ -248,20 +248,18 @@ frappe.ui.Sidebar = class Sidebar {
class: "navbar-search-bar hidden",
});
}
this.standard_items.push(
{
label: "Notification",
icon: "bell",
type: "Button",
class: "sidebar-notification hidden",
onClick: () => {
this.wrapper.find(".dropdown-notifications").toggleClass("hidden");
if (frappe.is_mobile()) {
this.wrapper.removeClass("expanded");
}
},
}
);
this.standard_items.push({
label: "Notification",
icon: "bell",
type: "Button",
class: "sidebar-notification hidden",
onClick: () => {
this.wrapper.find(".dropdown-notifications").toggleClass("hidden");
if (frappe.is_mobile()) {
this.wrapper.removeClass("expanded");
}
},
});
this.standard_items.forEach((w) => {
this.add_item(this.$standard_items_sections, w);
});