fix: restore looping heaven animation footers
This commit is contained in:
@@ -354,6 +354,7 @@ test("heaven reading loading uses the matching canvas scene and stops cleanly",
|
||||
await expect(canvas).toBeVisible();
|
||||
await expect(canvas).toHaveAttribute("data-scene", scene);
|
||||
await expect(canvas).toHaveAttribute("data-running", "true");
|
||||
await expect(canvas).toHaveAttribute("data-looping", "true");
|
||||
await page.waitForTimeout(180);
|
||||
const pixels = await canvas.evaluate((element) => {
|
||||
const context = element.getContext("2d");
|
||||
@@ -368,6 +369,9 @@ test("heaven reading loading uses the matching canvas scene and stops cleanly",
|
||||
expect(pixels.width).toBeGreaterThan(300);
|
||||
expect(pixels.height).toBeGreaterThan(300);
|
||||
expect(pixels.colors).toBeGreaterThan(3);
|
||||
await page.evaluate(() => { heavenReadingAnimation.startedAt = performance.now() - 13_100; });
|
||||
await expect(canvas).toHaveAttribute("data-cycle", "1");
|
||||
await expect(canvas).toHaveAttribute("data-running", "true");
|
||||
if (mode === "trend") {
|
||||
const completionMs = await page.evaluate(async () => {
|
||||
const started = performance.now();
|
||||
@@ -380,6 +384,7 @@ test("heaven reading loading uses the matching canvas scene and stops cleanly",
|
||||
}
|
||||
await page.locator("#closeHeavenReadingDialog").click();
|
||||
await expect(canvas).toHaveAttribute("data-running", "false");
|
||||
await expect(canvas).toHaveAttribute("data-looping", "false");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user