Skip to content

Commit

Permalink
Make panel title reactive in designer fix #5720 (#5722)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtelnov authored Jul 23, 2024
1 parent e191d68 commit acc409f
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion testCafe/property-grid/panels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,28 @@ test("Panel stay focused on question change", async (t) => {
.click(Selector("div [data-name=\"minWidth\"] input"))
.click(question1)
.expect(Selector("div [data-name=\"minWidth\"] input").focused).ok();
});
});
test("Show/hide panel header on entering/deleting the panel title, Bug#5720", async (t) => {
const json = {
elements: [
{
type: "panel",
name: "panel1"
}
]
};
const panel = Selector(".svc-panel__placeholder");
const hiddenPanelTitle = Selector(".sd-element__title--hidden");
const titleEditor = Selector("[data-name='title']").find("textarea");
await setJSON(json);
await t
.click(panel)
.expect(hiddenPanelTitle.exists).ok()
.click(titleEditor)
.typeText(titleEditor, "MyTitle")
.expect(hiddenPanelTitle.exists).notOk()
.expect(Selector(".sv-string-editor").withText("MyTitle").exists).ok()
.selectText(titleEditor)
.pressKey("delete")
.expect(hiddenPanelTitle.exists).ok();
});

0 comments on commit acc409f

Please sign in to comment.