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
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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user