feat: Create tree component #2827
Annotations
3 errors and 1 notice
Run npm run e2e:coverage -- --preview --shard=7/10:
e2e/samplesMarkup.singlebrowser-e2e-spec.ts#L37
1) [singleBrowser:svelte:chromium] › samplesMarkup.singlebrowser-e2e-spec.ts:32:4 › Samples markup consistency check › Sample bootstrap/tree/basic › should have a consistent markup
Error: Snapshot comparison failed:
<body>
<div
class="container p-3"
id="root"
>
<ul
class="au-tree"
role="tree"
>
<li
aria-expanded="true"
aria-selected="false"
role="treeitem"
>
<span
class="au-tree-item"
>
<button
aria-label="Toggle Node 1"
class="au-tree-expand-button au-tree-expand-button-expanded"
/>
"Node 1"
</span>
<ul
role="group"
>
<li
aria-expanded="false"
aria-selected="false"
role="treeitem"
>
<span
class="au-tree-item"
>
<button
aria-label="Toggle Node 1.1"
class="au-tree-expand-button"
/>
"Node 1.1"
</span>
</li>
</ul>
<ul
role="group"
>
<li
aria-selected="false"
role="treeitem"
>
<span
class="au-tree-item"
>
<span
class="au-tree-expand-button-placeholder"
/>
"Node 1.2"
</span>
</li>
</ul>
</li>
</ul>
</div>
</body>
Expected: /home/runner/work/AgnosUI/AgnosUI/e2e/samplesMarkup.singlebrowser-e2e-spec.ts-snapshots/bootstrap-tree-basic.html
Received: /home/runner/work/AgnosUI/AgnosUI/test-results/samplesMarkup.singlebrowse-e1d94-ld-have-a-consistent-markup-singleBrowser-svelte-chromium/bootstrap-tree-basic-actual.html
35 | await expect.poll(async () => (await page.locator('#root').innerHTML()).trim().length).toBeGreaterThan(0);
36 | await samplesExtraAction[sampleKey]?.(page);
> 37 | expect(await htmlSnapshot(page.locator('body'))).toMatchSnapshot(`${sampleKey.toLowerCase()}.html`);
| ^
38 | });
39 | });
40 | }
at /home/runner/work/AgnosUI/AgnosUI/e2e/samplesMarkup.singlebrowser-e2e-spec.ts:37:54
|
Run npm run e2e:coverage -- --preview --shard=7/10:
e2e/samplesMarkup.singlebrowser-e2e-spec.ts#L37
1) [singleBrowser:svelte:chromium] › samplesMarkup.singlebrowser-e2e-spec.ts:32:4 › Samples markup consistency check › Sample bootstrap/tree/basic › should have a consistent markup
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Snapshot comparison failed:
<body>
<div
class="container p-3"
id="root"
>
<ul
class="au-tree"
role="tree"
>
<li
aria-expanded="true"
aria-selected="false"
role="treeitem"
>
<span
class="au-tree-item"
>
<button
aria-label="Toggle Node 1"
class="au-tree-expand-button au-tree-expand-button-expanded"
/>
"Node 1"
</span>
<ul
role="group"
>
<li
aria-expanded="false"
aria-selected="false"
role="treeitem"
>
<span
class="au-tree-item"
>
<button
aria-label="Toggle Node 1.1"
class="au-tree-expand-button"
/>
"Node 1.1"
</span>
</li>
</ul>
<ul
role="group"
>
<li
aria-selected="false"
role="treeitem"
>
<span
class="au-tree-item"
>
<span
class="au-tree-expand-button-placeholder"
/>
"Node 1.2"
</span>
</li>
</ul>
</li>
</ul>
</div>
</body>
Expected: /home/runner/work/AgnosUI/AgnosUI/e2e/samplesMarkup.singlebrowser-e2e-spec.ts-snapshots/bootstrap-tree-basic.html
Received: /home/runner/work/AgnosUI/AgnosUI/test-results/samplesMarkup.singlebrowse-e1d94-ld-have-a-consistent-markup-singleBrowser-svelte-chromium-retry1/bootstrap-tree-basic-actual.html
35 | await expect.poll(async () => (await page.locator('#root').innerHTML()).trim().length).toBeGreaterThan(0);
36 | await samplesExtraAction[sampleKey]?.(page);
> 37 | expect(await htmlSnapshot(page.locator('body'))).toMatchSnapshot(`${sampleKey.toLowerCase()}.html`);
| ^
38 | });
39 | });
40 | }
at /home/runner/work/AgnosUI/AgnosUI/e2e/samplesMarkup.singlebrowser-e2e-spec.ts:37:54
|
Run npm run e2e:coverage -- --preview --shard=7/10
Process completed with exit code 1.
|
Run npm run e2e:coverage -- --preview --shard=7/10
1 failed
[singleBrowser:svelte:chromium] › samplesMarkup.singlebrowser-e2e-spec.ts:32:4 › Samples markup consistency check › Sample bootstrap/tree/basic › should have a consistent markup
1 skipped
103 passed (2.2m)
|
Loading