Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/ai-provider.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { analyzeWithHttpProvider } from "../dist/ai/http-provider.js";
import { AI_PROVIDER_REGISTRY, getAiProviderMetadata } from "../dist/ai/provider-registry.js";
import { APP_XRAY_ANALYSIS_JSON_INSTRUCTIONS, buildStructuredAnalysisPrompt } from "../dist/ai/structured-prompt.js";

const SECRET_API_KEY = "sk-test-secret-key-1234567890";
const SECRET_API_KEY = "test-api-key-redacted-1234567890";

const sourceDocument = {
id: "src_test",
Expand Down
4 changes: 2 additions & 2 deletions test/ui-project-lifecycle.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ test("AI provider switch clears the previous provider API key before saving", as
await renderApp("#/settings/ai");

await fillLabeledControl("AI 제공자", "openai");
await fillLabeledControl("API Key", "sk-openai-secret-1234567890");
await fillLabeledControl("API Key", "test-openai-key-redacted-1234567890");
await clickButton("설정 저장");
assert.match(localStorage.getItem("app-xray.ai-settings.v1"), /sk-openai-secret/);
assert.match(localStorage.getItem("app-xray.ai-settings.v1"), /test-openai-key-redacted/);

await fillLabeledControl("AI 제공자", "anthropic");
await clickButton("설정 저장");
Expand Down
Loading