Fix remaining FY and work lifecycle Playwright tests

This commit is contained in:
A R R R Associates
2026-06-26 22:35:40 +05:30
parent ce9935c684
commit ab91130511
2 changed files with 52 additions and 8 deletions
+3 -2
View File
@@ -428,10 +428,11 @@ test.describe("v2.5.1 Additions - Work Lifecycle E2E", () => {
}
if (kind === 'post') {
const resp = await apiCall(request, method || 'POST', c.route);
const postMethod = c._method && c._method !== 'GET' ? c._method : 'POST';
const resp = await apiCall(request, postMethod, c.route);
await expectApiSafe(resp);
const safe = [400, 401, 403, 404, 405, 409, 422, 429].includes(resp.status());
expect(safe, `Unsafe POST status ${resp.status()} for ${c.route}`).toBeTruthy();
expect(safe, `Unsafe ${postMethod} status ${resp.status()} for ${c.route}`).toBeTruthy();
return;
}