mirror of
https://github.com/nexu-io/open-design.git
synced 2026-10-27 09:51:12 +01:00
test: expand Memory and Routines coverage (#1521)
* test: expand settings and packaged coverage * test: extend memory settings coverage * test: cover routine settings failure states * test: cover routine operation failures * test: fix daemon test typing on CI * test: decouple packaged smoke from orbit bug * test: avoid live memory LLM calls in route tests * test: fix daemon fetch typing in CI * fix: restore preview comment and inspect toggles * test: align manual edit flow with current inspector UX * test: align comment attachment flow with current preview comments UI * fix: probe resolved Codex launch path during detection * fix: remove duplicate board activation helper after rebase * test: update ghost cli detection mock * test: align FileViewer toolbar expectation * ci: move full app tests to extended lane * ci: run app tests by changed scope * ci: cover shared app inputs in test scopes * ci: avoid setup-node cache in windows packaged smoke * test: align extended settings and manual edit flows
This commit is contained in:
@@ -19,7 +19,7 @@ async function openExecutionSettings(
|
||||
});
|
||||
|
||||
await page.goto('/');
|
||||
await page.getByTitle('Configure execution mode').click();
|
||||
await page.getByRole('button', { name: /Configure execution mode|配置执行模式/i }).click();
|
||||
await expect(page.getByRole('dialog')).toBeVisible();
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ async function openExecutionSettingsWithAgents(
|
||||
});
|
||||
|
||||
await page.goto('/');
|
||||
await page.getByTitle('Configure execution mode').click();
|
||||
await page.getByRole('button', { name: /Configure execution mode|配置执行模式/i }).click();
|
||||
await expect(page.getByRole('dialog')).toBeVisible();
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ test('BYOK quick fill provider updates fields and saved settings persist after c
|
||||
apiProviderBaseUrl: 'https://api.deepseek.com',
|
||||
});
|
||||
|
||||
await page.getByTitle('Configure execution mode').click();
|
||||
await page.getByRole('button', { name: /Configure execution mode|配置执行模式/i }).click();
|
||||
await expect(page.getByRole('dialog')).toBeVisible();
|
||||
const reopenedDialog = page.getByRole('dialog');
|
||||
await expect(reopenedDialog.getByRole('tab', { name: 'OpenAI', exact: true })).toHaveAttribute('aria-selected', 'true');
|
||||
@@ -342,7 +342,7 @@ test('saving Local CLI updates the entry status pill with the selected agent', a
|
||||
|
||||
const dialog = page.getByRole('dialog');
|
||||
|
||||
await dialog.getByRole('tab', { name: /Local CLI.*1 installed/i }).click();
|
||||
await dialog.getByRole('tab', { name: /Local CLI|本机 CLI/i }).click();
|
||||
await dialog.getByRole('button', { name: /Codex CLI/i }).click();
|
||||
await expect.poll(async () => readSavedConfig(page)).toMatchObject({
|
||||
mode: 'daemon',
|
||||
@@ -351,8 +351,8 @@ test('saving Local CLI updates the entry status pill with the selected agent', a
|
||||
await dialog.getByRole('button', { name: 'Close', exact: true }).click();
|
||||
await expect(page.getByRole('dialog')).toHaveCount(0);
|
||||
|
||||
const executionPill = page.getByTitle('Configure execution mode');
|
||||
await expect(executionPill).toContainText('Local CLI');
|
||||
const executionPill = page.getByRole('button', { name: /Configure execution mode|配置执行模式/i });
|
||||
await expect(executionPill).toContainText(/Local CLI|本机 CLI/i);
|
||||
await expect(executionPill).toContainText('Codex CLI');
|
||||
await expect(executionPill).toContainText('0.80.0');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user