diff --git a/cypress/integration/form.js b/cypress/integration/form.js index c533d14f03..6319e8ae80 100644 --- a/cypress/integration/form.js +++ b/cypress/integration/form.js @@ -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"); }); diff --git a/frappe/public/js/frappe/ui/sidebar/sidebar.js b/frappe/public/js/frappe/ui/sidebar/sidebar.js index 47f63d81a6..293aeb5698 100644 --- a/frappe/public/js/frappe/ui/sidebar/sidebar.js +++ b/frappe/public/js/frappe/ui/sidebar/sidebar.js @@ -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); });