Update the browser, editor, settings, and installer

This commit is contained in:
Knotty Wyvern
2026-10-12 14:46:21 -07:00
parent 909894b9c8
commit f6eaa52949
163 changed files with 146260 additions and 534 deletions
+8 -1
View File
@@ -123,7 +123,14 @@ try {
await page.locator(".live-writer td").first().click({ button: "right" });
assert.deepEqual(await metrics(menu("Table actions")), reference, "Table and file menus share styles");
await dismiss();
await page.getByText("Original text.", { exact: true }).click({ button: "right" });
const wordPoint = await page.getByText("Original text.", { exact: true }).evaluate(element => {
const node = element.firstChild;
const range = document.createRange();
range.setStart(node, 0); range.setEnd(node, "Original".length);
const bounds = range.getBoundingClientRect();
return { x: bounds.left + bounds.width / 2, y: bounds.top + bounds.height / 2 };
});
await page.mouse.click(wordPoint.x, wordPoint.y, { button: "right" });
await page.evaluate(() => window.spellingTest.emit({ request: "spelling-1", items: [
{ id: 71, name: "suggestion", label: "Original", shortcut: "", kind: 0, enabled: true, checked: false, children: [] },
{ id: 72, name: "addToDictionary", label: "Add to dictionary", shortcut: "", kind: 0, enabled: true, checked: false, children: [] },