This commit is contained in:
@@ -617,6 +617,10 @@ test('expand/collapse all preserves visible selection and rehomes hidden selecti
|
||||
await expand.click();
|
||||
await expect(page.getByRole('treeitem')).toHaveCount(42);
|
||||
await expect(page.locator('[data-tree-count]')).toHaveText('42 / 42 objects');
|
||||
const labelsOnly = await page.locator('.demo-node:not(.root-mark)').evaluateAll((nodes) => nodes.every((node) =>
|
||||
node.textContent === node.querySelector('.node-label')!.textContent + (node.querySelector('.node-indicator')?.textContent ?? '')
|
||||
));
|
||||
expect(labelsOnly).toBe(true);
|
||||
await expect(page.locator('.demo-node:not([aria-expanded])')).toHaveCount(26);
|
||||
await expect(nodeAt(page, initialPath)).toHaveAttribute('aria-selected', 'true');
|
||||
await checkGlyphRefs(page);
|
||||
|
||||
Reference in New Issue
Block a user