test: get indicatior by parent class

This commit is contained in:
Ejaaz Khan 2025-12-16 22:43:01 +05:30
parent 467947f18d
commit 64474d4597
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@ context("Data Control", () => {
.should("have.class", "reqd");
//Checking if the status is "Not Saved" initially
cy.get(".indicator-pill").should("have.text", "Not Saved");
cy.get(".page-head-content .indicator-pill").should("have.text", "Not Saved");
//Inputting data in the field
cy.fill_field("name1", "@@###", "Data");

View file

@ -78,7 +78,7 @@ frappe.ui.form.Toolbar = class Toolbar {
!!(this.is_title_editable() || this.can_rename())
);
// this.set_indicator();
this.set_indicator();
}
is_title_editable() {
let title_field = this.frm.meta.title_field;