test: stabilize extended Playwright coverage (#1341)

* test: align extended Playwright coverage with current UI behavior

* test: address extended suite review feedback

* test: restore Codex path hydration assertion
This commit is contained in:
shangxinyu1
2026-05-12 15:11:34 +08:00
committed by GitHub
parent 9c489aa045
commit 5d674410f2
16 changed files with 302 additions and 239 deletions
+3 -3
View File
@@ -284,9 +284,9 @@ test('BYOK fetch models hydrates model options and reuses cached results', async
apiKey: 'sk-openai-test',
});
await expect(modelSelect.getByRole('option', { name: 'AA Nightly Model (aa-nightly-model)' })).toBeVisible();
await expect(modelSelect.getByRole('option', { name: 'MM Nightly Model (mm-nightly-model)' })).toBeVisible();
await expect(modelSelect.getByRole('option', { name: 'ZZ Nightly Model (zz-nightly-model)' })).toBeVisible();
await expect(modelSelect.getByRole('option', { name: 'AA Nightly Model (aa-nightly-model)' })).toHaveCount(1);
await expect(modelSelect.getByRole('option', { name: 'MM Nightly Model (mm-nightly-model)' })).toHaveCount(1);
await expect(modelSelect.getByRole('option', { name: 'ZZ Nightly Model (zz-nightly-model)' })).toHaveCount(1);
const fetchedValues = await modelSelect.locator('option').evaluateAll((options) =>
options.slice(0, 3).map((option) => (option as HTMLOptionElement).value),