Fix remaining FY and work lifecycle Playwright tests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user