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

Function createTestNoteForConversion

e2e/tasknotes.spec.ts:3238–3250  ·  view source on GitHub ↗
(page: Page, title: string)

Source from the content-addressed store, hash-verified

3236test.describe('Issue #1337 - Convert note to task default values', () => {
3237 // Helper to create a test note for conversion
3238 async function createTestNoteForConversion(page: Page, title: string): Promise<void> {
3239 // Create a new note via command
3240 await runCommand(page, 'Create new note');
3241 await page.waitForTimeout(500);
3242
3243 // Type the title if a prompt appears
3244 const promptInput = page.locator('.prompt-input');
3245 if (await promptInput.isVisible({ timeout: 2000 }).catch(() => false)) {
3246 await promptInput.fill(title);
3247 await page.keyboard.press('Enter');
3248 await page.waitForTimeout(500);
3249 }
3250 }
3251
3252 // Helper to update plugin settings via the data.json approach
3253 async function getPluginSettings(page: Page): Promise<any> {

Callers

nothing calls this directly

Calls 1

runCommandFunction · 0.90

Tested by

no test coverage detected