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
19 changes: 2 additions & 17 deletions apps/e2e/tests/backend/endpoints/api/v1/ai-query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ describe("AI Query Endpoint - Validation", () => {
});

it("rejects invalid tool names", async ({ expect }) => {
// Deterministic non-AI check: this payload is schema-valid, then rejected by
// route-level tool-name validation before any model/provider call.
const response = await niceBackendFetch("/api/v1/ai/query/generate", {
method: "POST",
accessType: "admin",
Expand Down Expand Up @@ -196,23 +198,6 @@ describe("AI Query Endpoint - Validation", () => {
expect(response.body).toMatchObject({ code: "SCHEMA_ERROR", error: expect.stringContaining("messages") });
});

it("accepts valid request body with all required fields", async ({ expect }) => {
// This will forward to production, so we just verify it doesn't fail validation
const response = await niceBackendFetch("/api/v1/ai/query/generate", {
method: "POST",
accessType: "admin",
body: {
quality: "dumb",
speed: "fast",
tools: [],
systemPrompt: "command-center-ask-ai",
messages: [{ role: "user", content: "test" }],
},
});

expect(response.body).not.toMatchObject({ code: "SCHEMA_ERROR" });

}, 10000); // 60 seconds for AI API call
});

describeWithAi("AI Query Endpoint - Authentication", () => {
Expand Down
8 changes: 5 additions & 3 deletions apps/e2e/tests/general/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,9 @@ describe("Stack CLI", () => {

// --- init command tests ---

it("init create writes stack.config.ts with selected apps", async ({ expect }) => {
// TODO: Re-enable these create-mode tests once init mode handling is finalized.
// We keep these skipped (instead of todo) so the test logic remains visible and easy to re-enable.
it.skip("init create writes stack.config.ts with selected apps", async ({ expect }) => {
const initDir = path.join(tmpDir, "init-create");
fs.mkdirSync(initDir, { recursive: true });

Expand All @@ -367,7 +369,7 @@ describe("Stack CLI", () => {
expect(parsed.apps.installed.teams).toEqual({ enabled: true });
});

it("init create with single app", async ({ expect }) => {
it.skip("init create with single app", async ({ expect }) => {
const initDir = path.join(tmpDir, "init-create-single");
fs.mkdirSync(initDir, { recursive: true });

Expand Down Expand Up @@ -450,7 +452,7 @@ describe("Stack CLI", () => {
expect(stderr).toContain("not found");
});

it("init outputs setup instructions", async ({ expect }) => {
it.skip("init outputs setup instructions", async ({ expect }) => {
const initDir = path.join(tmpDir, "init-instructions");
fs.mkdirSync(initDir, { recursive: true });

Expand Down
Loading