fix(library): draw one tile for a frame a catalogue holds under both spellings

This commit is contained in:
2026-10-13 15:02:22 +07:00
parent e543f21764
commit 6f2c9cc780
2 changed files with 28 additions and 1 deletions
@@ -218,6 +218,14 @@ await page.waitForSelector('[data-key^="lib-node-"]', { timeout: 60_000 });
const before = await rows();
step('the doubled catalogue is read', before.photos.length === names.length * 2, `${before.photos.length} rows: ${before.photos.map((p) => p.id).join(' | ')}`);
// The wall, before any repair: the frames of the drive are drawn once each, even
// while the catalogue holds two rows for every one of them.
await page.locator('[data-key^="lib-node-"]').first().click();
await page.click('[data-key="lib-view-grid"]');
await page.waitForTimeout(3000);
const tiles = await page.evaluate(() => document.querySelectorAll('.lib-tile, .mob-lib-thumb-cell').length);
step('the wall draws each frame once', tiles === names.length, `tiles=${tiles}`);
// UPDATE on the drive row.
await page.locator('[data-key^="lib-node-"]').first().click({ button: 'right' });
await page.waitForSelector('[data-key^="lib-update-"]', { timeout: 20_000 });