experiments in a post-browser web
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

test(cmd): catch cmd-panel-repeat up to hello world rename

The hello → hello world feature rename missed this serial test, which
waits on `_cmdState.commands.hello` and types `hello` into the panel.
Both updated to `hello world`.

+7 -7
+7 -7
tests/desktop-serial/cmd-panel-repeat.spec.ts
··· 65 65 const cmdWindow = await sharedApp.getWindow('cmd/panel.html', 5000); 66 66 await cmdWindow.waitForSelector('input', { timeout: 5000 }); 67 67 68 - // Wait for the panel to have the `hello` command registered specifically. 69 - // `waitForPanelCommandsLoaded` returns as soon as ANY command is in the 70 - // registry (often the 13 built-ins) — extension commands like `hello` 71 - // arrive over the cmd:register-batch / cmd:register pubsub topics and 72 - // can lag the initial query response. 68 + // Wait for the panel to have the `hello world` command registered 69 + // specifically. `waitForPanelCommandsLoaded` returns as soon as ANY 70 + // command is in the registry (often the 13 built-ins) — extension 71 + // commands like `hello world` arrive over the cmd:register-batch / 72 + // cmd:register pubsub topics and can lag the initial query response. 73 73 await cmdWindow.waitForFunction( 74 - () => !!(window as any)._cmdState?.commands?.hello, 74 + () => !!(window as any)._cmdState?.commands?.['hello world'], 75 75 undefined, 76 76 { timeout: 10000 } 77 77 ); ··· 93 93 for (let i = 1; i <= 20; i++) { 94 94 const { cmdWindow } = await openCmdPanel(); 95 95 96 - await cmdWindow.fill('input', 'hello'); 96 + await cmdWindow.fill('input', 'hello world'); 97 97 await cmdWindow.keyboard.press('ArrowDown'); 98 98 await cmdWindow.keyboard.press('Enter'); 99 99