mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
fix: make sure all tests pass
This commit is contained in:
@@ -18,15 +18,15 @@ async function openContextMenu(selector) {
|
||||
}
|
||||
|
||||
async function closeContextMenu() {
|
||||
await page.click("body", { button: "left" });
|
||||
await page.keyboard.press("Escape");
|
||||
}
|
||||
|
||||
async function useContextMenu(selector, action) {
|
||||
async function useContextMenu(selector, action, close = false) {
|
||||
await openContextMenu(selector);
|
||||
|
||||
await action();
|
||||
|
||||
await closeContextMenu();
|
||||
if (close) await closeContextMenu();
|
||||
}
|
||||
|
||||
async function confirmDialog() {
|
||||
|
||||
Reference in New Issue
Block a user