mirror of
https://github.com/frappe/frappe.git
synced 2024-06-13 04:42:20 +00:00
fix(Navbar Settings): reload page after save (#26274)
* fix(Navbar Settings): reload page after save * test: file uploader flake --------- Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
parent
0a34f8b28e
commit
8eb8c64fbd
|
@ -5,6 +5,7 @@ context("FileUploader", () => {
|
|||
|
||||
beforeEach(() => {
|
||||
cy.visit("/app");
|
||||
cy.wait(2000); // workspace can load async and clear active dialog
|
||||
});
|
||||
|
||||
function open_upload_dialog() {
|
||||
|
@ -13,7 +14,7 @@ context("FileUploader", () => {
|
|||
.then((frappe) => {
|
||||
new frappe.ui.FileUploader();
|
||||
});
|
||||
cy.wait(1000);
|
||||
cy.wait(500);
|
||||
}
|
||||
|
||||
it("upload dialog api works", () => {
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
// Copyright (c) 2020, Frappe Technologies and contributors
|
||||
// For license information, please see license.txt
|
||||
|
||||
frappe.ui.form.on("Navbar Settings", {});
|
||||
frappe.ui.form.on("Navbar Settings", {
|
||||
after_save: function (frm) {
|
||||
frappe.ui.toolbar.clear_cache();
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user