Resize panes and drag tabs into panes
- A divider between two panes changes their sizes, with the pointer or the keyboard. A double-click gives equal sizes. - A tab that the user drags from the tab bar to a pane replaces its content, or opens a new pane on its right or bottom side. - The file tree menu has "Open to the right", also for PDF files and boards. - "New tab to the right" and "New tab below" of a browser tab open a new tab with the home page beside it. They replace "Split right" and "Split down". - New smoke test: a PDF file beside a note.
This commit is contained in:
@@ -51,7 +51,7 @@ await runSmoke("layout/panesAndSettings", async ({ browser }) => {
|
||||
const menu = page.getByRole("menu", { name: "File actions", exact: true });
|
||||
await menu.waitFor();
|
||||
const labels = await menu.locator(":scope > button, :scope > hr").evaluateAll(nodes => nodes.map(node => node.tagName === "HR" ? "|" : node.querySelector(".action-label").textContent));
|
||||
assert.deepEqual(labels, ["Open in new tab", "Open in default app", "Open in terminal", "|", "Cut", "Copy", "Paste", "Make a copy", "|",
|
||||
assert.deepEqual(labels, ["Open in new tab", "Open to the right", "Open in default app", "Open in terminal", "|", "Cut", "Copy", "Paste", "Make a copy", "|",
|
||||
"Rename", "Remove bookmark", "Pin", "Save as template", "|", "Show in Explorer", "Copy path", "|", "Undo file move", "Redo file move", "|", "Delete", "Delete permanently"]);
|
||||
const error = await page.evaluate(() => { const probe = document.createElement("span"); probe.style.color = "var(--rs-error)"; document.body.append(probe); const color = getComputedStyle(probe).color; probe.remove(); return color; });
|
||||
assert.equal(await menu.getByRole("menuitem", { name: "Delete", exact: true }).evaluate(node => getComputedStyle(node).color), error);
|
||||
|
||||
Reference in New Issue
Block a user