mirror of
https://github.com/block/buzz.git
synced 2026-11-03 16:01:35 +00:00
Merge sidebar snapshot test repair from operator cron base
Signed-off-by: Elrond <28d6302a099e5225b02c4155ac4236e4912603df2ab08dbfc2f4fef08ce598c8@buzz.block.builderlab.xyz>
This commit is contained in:
@@ -487,6 +487,7 @@ test("mismatched not-modified hash falls back to a full list", async ({
|
||||
page,
|
||||
}) => {
|
||||
await seedSnapshot(page, { hash: "persisted-stale-hash" });
|
||||
await trackSnapshotRows(page);
|
||||
await installMockBridge(page, {
|
||||
channelsReadDelayMs: READ_DELAY_MS,
|
||||
channelsNotModifiedResponses: 1,
|
||||
@@ -494,9 +495,11 @@ test("mismatched not-modified hash falls back to a full list", async ({
|
||||
await page.goto("/");
|
||||
|
||||
const snapshotRows = page.locator('[data-channel-id^="snapshot-"]');
|
||||
await expect(snapshotRows).toHaveCount(FULL_SNAPSHOT.length, {
|
||||
timeout: 500,
|
||||
});
|
||||
// Record the transient boot frame independently of test-runner scheduling;
|
||||
// cold-boot coverage separately enforces the snapshot paint deadline.
|
||||
await expect
|
||||
.poll(() => getTrackedSnapshotRows(page))
|
||||
.toEqual(FULL_SNAPSHOT.map((channel) => channel.id));
|
||||
await expect
|
||||
.poll(() => getChannelsPayloads(page))
|
||||
.toEqual([{ knownHash: "persisted-stale-hash" }, { knownHash: null }]);
|
||||
|
||||
Reference in New Issue
Block a user