This commit is contained in:
parent
6e3123091a
commit
aeddaa6972
69 changed files with 3178 additions and 424 deletions
|
|
@ -114,6 +114,24 @@ async function installFixture(page: Page) {
|
|||
}),
|
||||
),
|
||||
);
|
||||
await page.route(`**/api/sessions/${ACTIVE_SESSION_ID}/alliance-pulses`, (route) =>
|
||||
route.fulfill(
|
||||
jsonRoute({
|
||||
items: [
|
||||
{
|
||||
pulse_id: "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
|
||||
checkpoint: "pre",
|
||||
status: "ready",
|
||||
learner_locked_at: new Date().toISOString(),
|
||||
revealed_at: new Date().toISOString(),
|
||||
error_code: null,
|
||||
self_scores: { goal: 0.5, task: 0.5, bond: 0.5 },
|
||||
measurements: [],
|
||||
},
|
||||
],
|
||||
}),
|
||||
),
|
||||
);
|
||||
|
||||
return { startAttempts: () => startAttempts };
|
||||
}
|
||||
|
|
@ -129,7 +147,8 @@ test.describe("uc session continuity guard", () => {
|
|||
await expect(page).toHaveURL(
|
||||
new RegExp(`/learn/session/${ACTIVE_SESSION_ID}$`),
|
||||
);
|
||||
await expect(page.getByText("민서").first()).toBeVisible();
|
||||
await expect(page.locator(".sx-stage__client-kicker")).toHaveText("민서");
|
||||
await expect(page.locator(".sx-stage__client-kicker")).toBeVisible();
|
||||
expect(fixture.startAttempts()).toBe(1);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue