mirror of
https://github.com/frappe/frappe.git
synced 2024-06-13 00:22:23 +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(() => {
|
beforeEach(() => {
|
||||||
cy.visit("/app");
|
cy.visit("/app");
|
||||||
|
cy.wait(2000); // workspace can load async and clear active dialog
|
||||||
});
|
});
|
||||||
|
|
||||||
function open_upload_dialog() {
|
function open_upload_dialog() {
|
||||||
|
@ -13,7 +14,7 @@ context("FileUploader", () => {
|
||||||
.then((frappe) => {
|
.then((frappe) => {
|
||||||
new frappe.ui.FileUploader();
|
new frappe.ui.FileUploader();
|
||||||
});
|
});
|
||||||
cy.wait(1000);
|
cy.wait(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
it("upload dialog api works", () => {
|
it("upload dialog api works", () => {
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
// Copyright (c) 2020, Frappe Technologies and contributors
|
// Copyright (c) 2020, Frappe Technologies and contributors
|
||||||
// For license information, please see license.txt
|
// 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