mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-11-01 13:58:18 +00:00
Select the CouchDB save action group for layout checks
This commit is contained in:
1 parent
6e38528a2f
commit
b11f650124
1 file changed
+2
-1
@@ -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.");
|
||||||
|
|||||||
Reference in new issue
Block a user