fix(e2e): template API returns 201 not 200
CI/CD Pipeline / Staging E2E Tests (push) Failing after 68h46m53s
CI/CD Pipeline / Deploy Staging (push) Failing after 68h49m33s
CI/CD Pipeline / Frontend Lint (push) Failing after 68h52m35s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 68h54m29s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1727h18m8s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1727h23m5s
CI/CD Pipeline / Deploy Production (push) Failing after 1727h49m37s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 68h46m53s
CI/CD Pipeline / Deploy Staging (push) Failing after 68h49m33s
CI/CD Pipeline / Frontend Lint (push) Failing after 68h52m35s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 68h54m29s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1727h18m8s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1727h23m5s
CI/CD Pipeline / Deploy Production (push) Failing after 1727h49m37s
The POST /api/v1/templates endpoint returns HTTP 201 Created, but the E2E test was asserting 200, causing immediate test failure. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -146,7 +146,7 @@ test.describe("Core generation flow", () => {
|
||||
tags: ["e2e"],
|
||||
},
|
||||
});
|
||||
expect(template.status(), await template.text()).toBe(200);
|
||||
expect(template.status(), await template.text()).toBe(201);
|
||||
const templateData = (await template.json()) as TemplateResponse;
|
||||
expect(templateData.id).toBeTruthy();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user