wip: checkpoint host working tree
Login-page gate, notification outbox dispatcher and cron, assignment proposals/responses, coverage and training-guide updates, plus the generated training PDFs. Checkpointed from the host before merging the invite-link fix.
This commit is contained in:
+4
-7
@@ -129,21 +129,18 @@ test.describe("event photo sharing", () => {
|
||||
await page.getByLabel("Exposure").focus();
|
||||
await page.getByLabel("Exposure").press("ArrowRight");
|
||||
await page.getByRole("button", { name: "Save edited JPEG" }).click();
|
||||
await expect(page.getByText("Full-resolution JPEG saved.")).toBeVisible({
|
||||
timeout: 30_000,
|
||||
});
|
||||
// A successful save closes the editor and returns to the refreshed gallery.
|
||||
await expect(page.getByRole("dialog")).toBeHidden({ timeout: 30_000 });
|
||||
await expect(page.getByText("Edited", { exact: true })).toBeVisible();
|
||||
|
||||
const [download] = await Promise.all([
|
||||
page.waitForEvent("download"),
|
||||
page.getByRole("link", { name: "Download edited JPEG" }).click(),
|
||||
page.getByRole("link", { name: "Download edited" }).click(),
|
||||
]);
|
||||
expect(download.suggestedFilename()).toBe("photo-edited.jpg");
|
||||
const edited = await readFile((await download.path())!);
|
||||
expect(edited.subarray(0, 3).toString("hex")).toBe("ffd8ff");
|
||||
expect(edited.equals(PHOTO)).toBe(false);
|
||||
|
||||
await page.getByRole("button", { name: "Close photo editor" }).click();
|
||||
await expect(page.getByText("Edited", { exact: true })).toBeVisible();
|
||||
await expect(page.locator(`img[alt="${PHOTO_NAME}"]`)).toHaveAttribute(
|
||||
"src",
|
||||
/variant=edited/,
|
||||
|
||||
Reference in New Issue
Block a user