Select the CouchDB save action group for layout checks

This commit is contained in:
vorotamoroz committed 2026-10-30 11:48:19 +00:00
1 parent 6e38528a2f
commit b11f650124
1 file changed
+2 -1
+2 -1
View File
@@ -530,7 +530,8 @@ async function assertCouchDBKeyboardFormSpace(page: Page, modal: Locator): Promi
const bounds = await modal.evaluate((element) => { const bounds = await modal.evaluate((element) => {
const host = element.querySelector(".dialog-host"); const host = element.querySelector(".dialog-host");
const content = element.querySelector(".modal-content"); const content = element.querySelector(".modal-content");
const footerElement = host?.querySelector(":scope > .button-group"); const actionGroups = host?.querySelectorAll(":scope > .button-group");
const footerElement = actionGroups?.item(actionGroups.length - 1);
const rowElement = host?.querySelector(".row"); const rowElement = host?.querySelector(".row");
if (!host || !content || !footerElement || !rowElement) if (!host || !content || !footerElement || !rowElement)
throw new Error("CouchDB form layout is unavailable."); throw new Error("CouchDB form layout is unavailable.");