feat(tests): on-hold button with reason modal, Jira comment + On Hold transition
Aegis CI / lint-and-test (push) Has been cancelled
Snyk Security Scan / Python vulnerabilities (backend) (push) Has been cancelled
Snyk Security Scan / npm vulnerabilities (frontend) (push) Has been cancelled
Snyk Security Scan / Docker image vulnerabilities (backend) (push) Has been cancelled

This commit is contained in:
kitos
2026-06-19 09:53:05 +02:00
parent 6147f15238
commit 4e1f35c250
9 changed files with 333 additions and 0 deletions
+14
View File
@@ -236,6 +236,20 @@ export async function assignTest(
return data;
}
// ── On Hold ────────────────────────────────────────────────────────
/** Place a test on hold with a mandatory reason. */
export async function holdTest(testId: string, reason: string): Promise<Test> {
const { data } = await client.post<Test>(`/tests/${testId}/hold`, { reason });
return data;
}
/** Resume a test that was placed on hold. */
export async function resumeTest(testId: string): Promise<Test> {
const { data } = await client.post<Test>(`/tests/${testId}/resume`);
return data;
}
// ── Timeline ───────────────────────────────────────────────────────
/** Get the audit-log timeline for a test. */