Gate the model picker behind credentials: fetch on Get models or after OAuth login

This commit is contained in:
ZacharyZhang-NY committed 2026-05-30 01:05:14 -04:00
1 parent ddd8663ecc
commit d4ace283d1
3 files changed
+37 -25

No files matched your search

@@ -22,6 +22,7 @@ test("onboards, hires, and creates work in the Electron shell", async () => {
await expect(page.getByRole("heading", { name: "Welcome" })).toBeVisible();
await page.getByRole("button", { name: "Get started" }).click();
await page.getByLabel("API key").fill("e2e-secret");
await page.getByLabel("Model").fill("gpt-5.4");
await page.getByRole("button", { name: "Continue" }).click();
await page.getByLabel("Company name").fill("Acme Operations");
await page.getByLabel("Your name").fill("Dana Lee");
@@ -21,6 +21,7 @@ test("captures every page for visual review", async () => {
await page.getByRole("button", { name: "Get started" }).click();
await page.screenshot({ path: join(outDir, "01-onboarding-provider.png"), fullPage: false });
await page.getByLabel("API key").fill("local-dev-key");
await page.getByLabel("Model").fill("gpt-5.4");
await page.getByRole("button", { name: "Continue" }).click();
await page.getByLabel("Company name").fill("OrbitOps");