MCPcopy
hub / github.com/callumalpass/tasknotes / moveToPopoutWindow

Function moveToPopoutWindow

e2e/tasknotes.spec.ts:3442–3457  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

3440test.describe('Issue #1409 - Popout window functionality', () => {
3441 // Helper to move current pane to a new popout window
3442 async function moveToPopoutWindow(page: Page): Promise<Page | null> {
3443 // Use Obsidian command to move pane to new window
3444 await runCommand(page, 'Move current pane to new window');
3445 await page.waitForTimeout(2000);
3446
3447 // Get the browser context to find the new window
3448 const context = page.context();
3449 const pages = context.pages();
3450
3451 // Return the newest page (the popout window) if one was created
3452 if (pages.length > 1) {
3453 // The popout window is typically the last page
3454 return pages[pages.length - 1];
3455 }
3456 return null;
3457 }
3458
3459 test.fixme('calendar drag and drop should work in popout window (Issue #1409, #979)', async () => {
3460 // STATUS: BUG - Issue #1409, related to #979

Callers 1

tasknotes.spec.tsFile · 0.70

Calls 1

runCommandFunction · 0.90

Tested by

no test coverage detected