Update the browser, editor, settings, and installer
This commit is contained in:
@@ -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: [] },
|
||||
|
||||
Reference in New Issue
Block a user