fix(rd21): retain draft revisions and qualify conflict recovery
This commit is contained in:
@@ -28,7 +28,7 @@ const test = base.extend<{ owner: { headers: Record<string, string>; jobId: numb
|
||||
const companyId = (await company.json()).id;
|
||||
const job = await page.request.post(`${apiUrl}/jobapplications`, { headers, data: { companyId, jobTitle: "Tilgjengelig plattformutvikler", status: "Saved" } });
|
||||
expect(job.ok()).toBe(true);
|
||||
expect((await page.request.put(`${apiUrl}/career/profile`, { headers, data: { profile: { version: "1", contact: { fullName: "Åse Eksempel" }, skills: ["Norsk", "C#"] } } })).status()).toBe(200);
|
||||
expect((await page.request.put(`${apiUrl}/career/profile`, { headers, data: { expectedVersion: (await (await page.request.get(`${apiUrl}/career/profile`)).json()).revision, profile: { version: "1", contact: { fullName: "Åse Eksempel" }, skills: ["Norsk", "C#"] } } })).status()).toBe(200);
|
||||
const cv = await page.request.post(`${apiUrl}/cv/variants`, { headers, data: { name: "Readiness CV" } });
|
||||
expect(cv.status()).toBe(200);
|
||||
await provide({ headers, jobId: (await job.json()).id, companyId, cvId: (await cv.json()).id });
|
||||
|
||||
Reference in New Issue
Block a user