fix(library): draw one tile for a frame a catalogue holds under both spellings
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user