test(cli): fix AppRig timeouts and update ConfigInitDisplay snapshot for refreshed UX

This commit is contained in:
Keith Guerin
2026-03-12 15:27:22 -07:00
parent 24b5179e4e
commit d92ce45af2
2 changed files with 11 additions and 7 deletions

View File

@@ -170,6 +170,16 @@ export class AppRig {
);
this.sessionId = `test-session-${uniqueId}`;
activeRigs.set(this.sessionId, this);
// Pre-create the persistent state file to bypass the terminal setup prompt
const geminiDir = path.join(this.testDir, '.gemini');
if (!fs.existsSync(geminiDir)) {
fs.mkdirSync(geminiDir, { recursive: true });
}
fs.writeFileSync(
path.join(geminiDir, 'state.json'),
JSON.stringify({ terminalSetupPromptShown: true }),
);
}
async initialize() {
@@ -695,7 +705,7 @@ export class AppRig {
);
}
async waitForIdle(timeout = 20000) {
async waitForIdle(timeout = 30000) {
await this.waitForOutput('Type your message', timeout);
}

View File

@@ -23,9 +23,3 @@ exports[`ConfigInitDisplay > updates message on McpClientUpdate event 1`] = `
Spinner Connecting to MCP servers... (1/2) - Waiting for: server2
"
`;
exports[`ConfigInitDisplay > updates message on McpClientUpdate event 2`] = `
"
Spinner Connecting to MCP servers... (1/2) - Waiting for: server2
"
`;