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");
|
||||
|
||||
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");
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue