test(smoke-flake): poll for quit/restart registration before querying
app/index.js registers quit and restart async during init(). The test's
single-shot cmd:query-commands + 2s timeout raced against that boot path
and failed intermittently when the query fired before the registrations
landed. Use the existing waitForCommand helper (200ms poll, 10s cap)
before the detail query so the assertion runs only once both commands
are present.