diff --git a/test/e2e-obsidian/scripts/dialog-mounts.ts b/test/e2e-obsidian/scripts/dialog-mounts.ts index 6839c2ca..d65fe153 100644 --- a/test/e2e-obsidian/scripts/dialog-mounts.ts +++ b/test/e2e-obsidian/scripts/dialog-mounts.ts @@ -530,7 +530,8 @@ async function assertCouchDBKeyboardFormSpace(page: Page, modal: Locator): Promi const bounds = await modal.evaluate((element) => { const host = element.querySelector(".dialog-host"); 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"); if (!host || !content || !footerElement || !rowElement) throw new Error("CouchDB form layout is unavailable.");