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>; companyId:
|
||||
});
|
||||
const company = await page.request.post(`${apiUrl}/companies`, { headers, data: { name: "Nordlys æøå AS", location: "Tromsø" } });
|
||||
expect(company.status()).toBe(201);
|
||||
expect((await page.request.put(`${apiUrl}/career/profile`, { headers, data: { profile: {
|
||||
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", headline: "Engineer" },
|
||||
jobs: [{ title: "Engineer", company: "Nordlys AS", bullets: ["Built reliable APIs"] }], skills: ["C#", "Norsk"],
|
||||
} } })).status()).toBe(200);
|
||||
|
||||
Reference in New Issue
Block a user