mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-23 16:36:23 +00:00
fix(desktop): stabilize dead-provider E2E
This commit is contained in:
parent
2c184ed3d1
commit
92eb59c99d
1 changed files with 7 additions and 4 deletions
|
|
@ -398,7 +398,9 @@ export async function setupDeadBackend(): Promise<DeadBackendFixture> {
|
|||
fs.writeFileSync(
|
||||
configPath,
|
||||
`# Auto-generated by E2E test fixtures — dead provider
|
||||
model: mock-model
|
||||
model:
|
||||
default: mock-model
|
||||
provider: mock
|
||||
providers:
|
||||
mock:
|
||||
api: http://127.0.0.1:1/v1
|
||||
|
|
@ -598,15 +600,16 @@ export async function waitForBootFailure(page: Page, timeoutMs = 60_000): Promis
|
|||
|
||||
const text = root.textContent ?? ''
|
||||
|
||||
// The boot failure overlay shows an error message + retry/repair
|
||||
// buttons. Look for error-related text.
|
||||
// A dead provider either produces a boot failure or falls back to the
|
||||
// provider onboarding screen after the runtime check fails.
|
||||
return (
|
||||
text.includes('error') ||
|
||||
text.includes('Error') ||
|
||||
text.includes('failed') ||
|
||||
text.includes('Failed') ||
|
||||
text.includes('Retry') ||
|
||||
text.includes('Repair')
|
||||
text.includes('Repair') ||
|
||||
text.includes("Let's get you setup")
|
||||
)
|
||||
},
|
||||
undefined,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue