diff --git a/semcore/notice/__tests__/__snapshots__/index.test.tsx.snap b/semcore/notice/__tests__/__snapshots__/index.test.tsx.snap
new file mode 100644
index 0000000000..34118054b6
--- /dev/null
+++ b/semcore/notice/__tests__/__snapshots__/index.test.tsx.snap
@@ -0,0 +1,117 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`Notice > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Notice.Label",
+ },
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Notice.Title",
+ },
+ {
+ "children": [],
+ "uiName": "Notice.Text",
+ },
+ {
+ "children": [],
+ "uiName": "Notice.Actions",
+ },
+ ],
+ "uiName": "Notice.Content",
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "Close",
+ },
+ ],
+ "uiName": "Button.Addon",
+ },
+ ],
+ "uiName": "Notice.Close.InnerWrapper",
+ },
+ ],
+ "uiName": "Notice.Close",
+ },
+ ],
+ "uiName": "Notice",
+ },
+ ],
+ "uiName": null,
+}
+`;
+
+exports[`NoticeSmart > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Notice.Label",
+ },
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Notice.Title",
+ },
+ {
+ "children": [],
+ "uiName": "Notice.Text",
+ },
+ {
+ "children": [],
+ "uiName": "Notice.Actions",
+ },
+ ],
+ "uiName": "Notice.Content",
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "Close",
+ },
+ ],
+ "uiName": "Button.Addon",
+ },
+ ],
+ "uiName": "Notice.Close.InnerWrapper",
+ },
+ ],
+ "uiName": "Notice.Close",
+ },
+ ],
+ "uiName": "NoticeSmart",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/notice/__tests__/index.test.tsx b/semcore/notice/__tests__/index.test.tsx
index 384528e72a..a2f1373795 100644
--- a/semcore/notice/__tests__/index.test.tsx
+++ b/semcore/notice/__tests__/index.test.tsx
@@ -1,3 +1,4 @@
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
import { render, cleanup } from '@semcore/testing-utils/testing-library';
import { expect, test, describe, beforeEach, vi } from '@semcore/testing-utils/vitest';
@@ -12,6 +13,25 @@ describe('notice Dependency imports', () => {
describe('Notice', () => {
beforeEach(cleanup);
+ test('Verify data-ui-name', () => {
+ const notice = (
+
+ Label
+
+ Title
+ Text
+ Actions
+
+
+
+ );
+
+ const { container } = render(notice);
+ const result = extractUIName(container);
+
+ expect(result).toMatchSnapshot();
+ });
+
test('Verify supports custom close icon', () => {
const component = (
@@ -51,6 +71,17 @@ describe('Notice', () => {
describe('NoticeSmart', () => {
beforeEach(cleanup);
+ test('Verify data-ui-name', () => {
+ const noticeSmart = (
+
+ );
+
+ const { container } = render(noticeSmart);
+ const result = extractUIName(container);
+
+ expect(result).toMatchSnapshot();
+ });
+
test('Verify renders title and text from props', () => {
const { container } = render(
,
diff --git a/semcore/pagination/__tests__/__snapshots__/index.test.tsx.snap b/semcore/pagination/__tests__/__snapshots__/index.test.tsx.snap
new file mode 100644
index 0000000000..4490c7f710
--- /dev/null
+++ b/semcore/pagination/__tests__/__snapshots__/index.test.tsx.snap
@@ -0,0 +1,99 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`Pagination > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Button.Text",
+ },
+ ],
+ "uiName": "Pagination.FirstPage.InnerWrapper",
+ },
+ ],
+ "uiName": "Pagination.FirstPage",
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Button.Text",
+ },
+ ],
+ "uiName": "Pagination.PrevPage.InnerWrapper",
+ },
+ ],
+ "uiName": "Pagination.PrevPage",
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Button.Text",
+ },
+ ],
+ "uiName": "Pagination.NextPage.InnerWrapper",
+ },
+ ],
+ "uiName": "Pagination.NextPage",
+ },
+ {
+ "children": [],
+ "uiName": "Text",
+ },
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Pagination.PageInput.Value",
+ },
+ {
+ "children": [],
+ "uiName": "Pagination.PageInput.Addon",
+ },
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "Pagination.PageInput",
+ },
+ {
+ "children": [],
+ "uiName": "Text",
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Link.Text",
+ },
+ ],
+ "uiName": "Pagination.TotalPages.InnerWrapper",
+ },
+ ],
+ "uiName": "Pagination.TotalPages",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ ],
+ "uiName": "Pagination",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/pagination/__tests__/index.test.tsx b/semcore/pagination/__tests__/index.test.tsx
index 9de3014fff..0a6a546fb4 100644
--- a/semcore/pagination/__tests__/index.test.tsx
+++ b/semcore/pagination/__tests__/index.test.tsx
@@ -1,5 +1,6 @@
import Button, { ButtonLink } from '@semcore/button';
import Return from '@semcore/icon/Return/m';
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
import { render, cleanup, userEvent } from '@semcore/testing-utils/testing-library';
import { expect, test, describe, beforeEach, vi } from '@semcore/testing-utils/vitest';
@@ -11,6 +12,30 @@ describe('pagination Dependency imports', () => {
runDependencyCheckTests('pagination');
});
+describe('Pagination', () => {
+ beforeEach(cleanup);
+
+ test('Verify data-ui-name', () => {
+ const pagination = (
+
+ First page
+
+
+
+
+
+
+
+
+ );
+
+ const { container } = render(pagination);
+ const result = extractUIName(container);
+
+ expect(result).toMatchSnapshot();
+ });
+});
+
describe('Pagination.FirstPage', () => {
beforeEach(cleanup);
diff --git a/semcore/pills/__tests__/__snapshots__/index.test.tsx.snap b/semcore/pills/__tests__/__snapshots__/index.test.tsx.snap
new file mode 100644
index 0000000000..c66166b7a9
--- /dev/null
+++ b/semcore/pills/__tests__/__snapshots__/index.test.tsx.snap
@@ -0,0 +1,27 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`PillGroup > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Pills.Item.Addon",
+ },
+ {
+ "children": [],
+ "uiName": "Pills.Item.Text",
+ },
+ ],
+ "uiName": "Pills.Item",
+ },
+ ],
+ "uiName": "Pills",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/pills/__tests__/index.test.tsx b/semcore/pills/__tests__/index.test.tsx
index 59414dcbae..5181fdfd1e 100644
--- a/semcore/pills/__tests__/index.test.tsx
+++ b/semcore/pills/__tests__/index.test.tsx
@@ -1,4 +1,5 @@
import type { Intergalactic } from '@semcore/core';
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
import { render, cleanup, userEvent } from '@semcore/testing-utils/testing-library';
import { expect, test, describe, beforeEach, vi, assertType } from '@semcore/testing-utils/vitest';
@@ -29,6 +30,22 @@ describe('PillGroup', () => {
beforeEach(cleanup);
+ test('Verify data-ui-name', () => {
+ const pills = (
+
+
+
+ Item
+
+
+ );
+
+ const { container } = render(pills);
+ const result = extractUIName(container);
+
+ expect(result).toMatchSnapshot();
+ });
+
test.concurrent('Verify supports onChange callback', async () => {
const spy = vi.fn();
const { getByTestId } = render(
diff --git a/semcore/product-head/__tests__/__snapshots__/index.test.jsx.snap b/semcore/product-head/__tests__/__snapshots__/index.test.jsx.snap
new file mode 100644
index 0000000000..001130f5d7
--- /dev/null
+++ b/semcore/product-head/__tests__/__snapshots__/index.test.jsx.snap
@@ -0,0 +1,59 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`ProductHead > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Title.Tool",
+ },
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "Title",
+ },
+ {
+ "children": [],
+ "uiName": "ProductHead.Buttons",
+ },
+ {
+ "children": [],
+ "uiName": "ProductHead.Links",
+ },
+ ],
+ "uiName": "ProductHead.Row",
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Info.Item.Label",
+ },
+ ],
+ "uiName": "Info.Item",
+ },
+ ],
+ "uiName": "Info",
+ },
+ ],
+ "uiName": "ProductHead.Row",
+ },
+ ],
+ "uiName": "ProductHead",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/product-head/__tests__/index.test.jsx b/semcore/product-head/__tests__/index.test.jsx
index 17157d4ddf..a75e97141b 100644
--- a/semcore/product-head/__tests__/index.test.jsx
+++ b/semcore/product-head/__tests__/index.test.jsx
@@ -1,6 +1,38 @@
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
-import { describe } from '@semcore/testing-utils/vitest';
+import { render } from '@semcore/testing-utils/testing-library';
+import { describe, expect, test } from '@semcore/testing-utils/vitest';
+import React from 'react';
+
+import ProductHead, { Info, Title } from '../src';
describe('product-head Dependency imports', () => {
runDependencyCheckTests('product-head');
});
+
+describe('ProductHead', () => {
+ test('Verify data-ui-name', () => {
+ const productHead = (
+
+
+ Title
+ Buttons
+ Links
+
+
+
+
+ Label
+ Content
+
+
+
+
+ );
+
+ const { container } = render(productHead);
+ const result = extractUIName(container);
+
+ expect(result).toMatchSnapshot();
+ });
+});
diff --git a/semcore/progress-bar/__tests__/__snapshots__/index.test.jsx.snap b/semcore/progress-bar/__tests__/__snapshots__/index.test.jsx.snap
new file mode 100644
index 0000000000..a0112d48b5
--- /dev/null
+++ b/semcore/progress-bar/__tests__/__snapshots__/index.test.jsx.snap
@@ -0,0 +1,18 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`ProgressBar > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "ProgressBar.Value",
+ },
+ ],
+ "uiName": "ProgressBar",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/progress-bar/__tests__/index.test.jsx b/semcore/progress-bar/__tests__/index.test.jsx
index 2f901c1d68..ba1061b5bf 100644
--- a/semcore/progress-bar/__tests__/index.test.jsx
+++ b/semcore/progress-bar/__tests__/index.test.jsx
@@ -1,6 +1,26 @@
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
-import { describe } from '@semcore/testing-utils/vitest';
+import { render } from '@semcore/testing-utils/testing-library';
+import { describe, expect, test } from '@semcore/testing-utils/vitest';
+import React from 'react';
+
+import ProgressBar from '../src';
describe('progress-bar Dependency imports', () => {
runDependencyCheckTests('progress-bar');
});
+
+describe('ProgressBar', () => {
+ test('Verify data-ui-name', () => {
+ const progressBar = (
+
+
+
+ );
+
+ const { container } = render(progressBar);
+ const result = extractUIName(container);
+
+ expect(result).toMatchSnapshot();
+ });
+});
diff --git a/semcore/radio/__tests__/__snapshots__/index.test.tsx.snap b/semcore/radio/__tests__/__snapshots__/index.test.tsx.snap
new file mode 100644
index 0000000000..6d26b7fa3c
--- /dev/null
+++ b/semcore/radio/__tests__/__snapshots__/index.test.tsx.snap
@@ -0,0 +1,31 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`Radio > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Radio.Value",
+ },
+ {
+ "children": [],
+ "uiName": "Value.RadioMark",
+ },
+ {
+ "children": [],
+ "uiName": "Radio.Text",
+ },
+ ],
+ "uiName": "Radio",
+ },
+ ],
+ "uiName": "RadioGroup",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/radio/__tests__/index.test.tsx b/semcore/radio/__tests__/index.test.tsx
index fe2813d923..db97db5d35 100644
--- a/semcore/radio/__tests__/index.test.tsx
+++ b/semcore/radio/__tests__/index.test.tsx
@@ -1,3 +1,4 @@
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
import { cleanup, render, userEvent } from '@semcore/testing-utils/testing-library';
import { expect, test, describe, beforeEach, vi } from '@semcore/testing-utils/vitest';
@@ -12,6 +13,25 @@ describe('radio Dependency imports', () => {
describe('Radio', () => {
beforeEach(cleanup);
+ test('Verify data-ui-name', () => {
+ const radio = (
+
+
+
+
+
+
+ Label
+
+
+ );
+
+ const { container } = render(radio);
+ const result = extractUIName(container);
+
+ expect(result).toMatchSnapshot();
+ });
+
test.concurrent('Verify supports custom attributes on the input', () => {
const { getByTestId } = render(
diff --git a/semcore/select/__tests__/__snapshots__/index.test.tsx.snap b/semcore/select/__tests__/__snapshots__/index.test.tsx.snap
new file mode 100644
index 0000000000..037d6135ab
--- /dev/null
+++ b/semcore/select/__tests__/__snapshots__/index.test.tsx.snap
@@ -0,0 +1,172 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`Select > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Select.Trigger.Addon",
+ },
+ {
+ "children": [],
+ "uiName": "Select.Trigger.Text",
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "ChevronDown",
+ },
+ ],
+ "uiName": "ButtonTrigger.Addon",
+ },
+ ],
+ "uiName": "Select.Trigger.InnerTriggerWrapper",
+ },
+ ],
+ "uiName": "Select.Trigger",
+ },
+ {
+ "children": [],
+ "uiName": null,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "Search",
+ },
+ ],
+ "uiName": "Select.InputSearch.SearchIcon",
+ },
+ {
+ "children": [],
+ "uiName": "Select.InputSearch.Value",
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "Close",
+ },
+ ],
+ "uiName": "Link.Addon",
+ },
+ ],
+ "uiName": "Select.InputSearch.Clear.InnerWrapper",
+ },
+ ],
+ "uiName": "Select.InputSearch.Clear",
+ },
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "Input",
+ },
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Flex",
+ },
+ ],
+ "uiName": "Dropdown.Item",
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Select.Option.Checkbox",
+ },
+ {
+ "children": [],
+ "uiName": "Select.Option.Addon",
+ },
+ {
+ "children": [],
+ "uiName": "Select.Option.Text",
+ },
+ ],
+ "uiName": "Select.Option.Content",
+ },
+ {
+ "children": [],
+ "uiName": "Select.Option.Hint",
+ },
+ ],
+ "uiName": "Select.Option",
+ },
+ ],
+ "uiName": "Select.Group",
+ },
+ {
+ "children": [],
+ "uiName": "Select.Divider",
+ },
+ {
+ "children": [],
+ "uiName": "Select.StatusItem",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ ],
+ "uiName": null,
+ },
+ ],
+ "uiName": "ScrollArea.Container",
+ },
+ ],
+ "uiName": "Select.Menu",
+ },
+ ],
+ "uiName": "Select.Popper",
+ },
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/select/__tests__/index.test.tsx b/semcore/select/__tests__/index.test.tsx
index afdcf57b88..cbfb3d136c 100644
--- a/semcore/select/__tests__/index.test.tsx
+++ b/semcore/select/__tests__/index.test.tsx
@@ -1,3 +1,4 @@
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
import { cleanup, render, screen, userEvent, waitFor } from '@semcore/testing-utils/testing-library';
import { expect, test, describe, beforeEach, vi } from '@semcore/testing-utils/vitest';
@@ -9,6 +10,45 @@ describe('select Dependency imports', () => {
runDependencyCheckTests('select');
});
+describe('Select', () => {
+ beforeEach(cleanup);
+
+ test('Verify data-ui-name', () => {
+ const select = (
+
+ );
+
+ const { container } = render(select);
+ const result = extractUIName(container);
+
+ expect(result).toMatchSnapshot();
+ });
+});
+
describe('Select Trigger', () => {
beforeEach(() => {
cleanup();
diff --git a/semcore/side-panel/__tests__/__snapshots__/index.test.tsx.snap b/semcore/side-panel/__tests__/__snapshots__/index.test.tsx.snap
new file mode 100644
index 0000000000..67cb1fce74
--- /dev/null
+++ b/semcore/side-panel/__tests__/__snapshots__/index.test.tsx.snap
@@ -0,0 +1,86 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`SidePanel > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "ArrowLeft",
+ },
+ ],
+ "uiName": "Link.Addon",
+ },
+ {
+ "children": [],
+ "uiName": "ButtonLink.Text",
+ },
+ ],
+ "uiName": "SidePanel.Back.InnerWrapper",
+ },
+ ],
+ "uiName": "SidePanel.Back",
+ },
+ {
+ "children": [],
+ "uiName": "SidePanel.Title",
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Button.Text",
+ },
+ ],
+ "uiName": "SidePanel.Close.InnerWrapper",
+ },
+ ],
+ "uiName": "SidePanel.Close",
+ },
+ ],
+ "uiName": "SidePanel.Header",
+ },
+ {
+ "children": [],
+ "uiName": "SidePanel.Body",
+ },
+ {
+ "children": [],
+ "uiName": "SidePanel.Footer",
+ },
+ ],
+ "uiName": "SidePanel.Panel",
+ },
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "SidePanel.Overlay",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/side-panel/__tests__/index.test.tsx b/semcore/side-panel/__tests__/index.test.tsx
index 0792c7eb62..c299eb52be 100644
--- a/semcore/side-panel/__tests__/index.test.tsx
+++ b/semcore/side-panel/__tests__/index.test.tsx
@@ -1,4 +1,5 @@
import { Portal } from '@semcore/base-components';
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
import { render, cleanup, userEvent } from '@semcore/testing-utils/testing-library';
import { expect, test, describe, beforeEach, vi } from '@semcore/testing-utils/vitest';
@@ -13,6 +14,27 @@ describe('side-panel Dependency imports', () => {
describe('SidePanel', () => {
beforeEach(cleanup);
+ test('Verify data-ui-name', () => {
+ const sidePanel = (
+
+
+
+
+ Back
+ Title
+ Close
+
+ Body
+ Footer
+
+
+
+ );
+
+ const { container } = render(sidePanel);
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+
test('Verify visible property', () => {
const component = render(Content);
expect(component.queryByText('Content')).toBeNull();
diff --git a/semcore/skeleton/__tests__/__snapshots__/index.test.tsx.snap b/semcore/skeleton/__tests__/__snapshots__/index.test.tsx.snap
new file mode 100644
index 0000000000..d589cb4fbd
--- /dev/null
+++ b/semcore/skeleton/__tests__/__snapshots__/index.test.tsx.snap
@@ -0,0 +1,76 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`Skeleton > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "SkeletonSVG.Text",
+ },
+ {
+ "children": [],
+ "uiName": "SkeletonSVG.Text",
+ },
+ ],
+ "uiName": null,
+ },
+ ],
+ "uiName": null,
+ },
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "SkeletonSVG",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/skeleton/__tests__/index.test.tsx b/semcore/skeleton/__tests__/index.test.tsx
index abe8922952..c58dce48ab 100644
--- a/semcore/skeleton/__tests__/index.test.tsx
+++ b/semcore/skeleton/__tests__/index.test.tsx
@@ -1,6 +1,47 @@
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
-import { describe } from '@semcore/testing-utils/vitest';
+import { render } from '@semcore/testing-utils/testing-library';
+import { describe, expect, test } from '@semcore/testing-utils/vitest';
+import React from 'react';
+
+import SkeletonSVG, {
+ AreaChartSkeleton,
+ BarChartSkeleton,
+ BubbleChartSkeleton,
+ CompactHorizontalBarChartSkeleton,
+ DonutChartSkeleton,
+ HistogramChartSkeleton,
+ LineChartSkeleton,
+ RadialTreeChartSkeleton,
+ ScatterPlotChartSkeleton,
+ VennChartSkeleton,
+} from '../src';
describe('skeleton Dependency imports', () => {
runDependencyCheckTests('skeleton');
});
+
+describe('Skeleton', () => {
+ test('Verify data-ui-name', () => {
+ const skeletons = (
+ <>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+ );
+
+ const { container } = render(skeletons);
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+});
diff --git a/semcore/slider/__tests__/__snapshots__/index.test.tsx.snap b/semcore/slider/__tests__/__snapshots__/index.test.tsx.snap
new file mode 100644
index 0000000000..17b2a9a5b5
--- /dev/null
+++ b/semcore/slider/__tests__/__snapshots__/index.test.tsx.snap
@@ -0,0 +1,35 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`Slider > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Slider.Bar",
+ },
+ {
+ "children": [],
+ "uiName": "Slider.Knob",
+ },
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Slider.Item",
+ },
+ ],
+ "uiName": "Slider.Options",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ ],
+ "uiName": "Slider",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/slider/__tests__/index.test.tsx b/semcore/slider/__tests__/index.test.tsx
index edfef6bd17..70a42d262e 100644
--- a/semcore/slider/__tests__/index.test.tsx
+++ b/semcore/slider/__tests__/index.test.tsx
@@ -1,3 +1,4 @@
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
import { render, cleanup, userEvent } from '@semcore/testing-utils/testing-library';
import { expect, test, describe, beforeEach, vi } from '@semcore/testing-utils/vitest';
@@ -12,6 +13,21 @@ describe('slider Dependency imports', () => {
describe('Slider', () => {
beforeEach(cleanup);
+ test('Verify data-ui-name', () => {
+ const slider = (
+
+
+
+
+
+
+
+ );
+
+ const { container } = render(slider);
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+
const focusSlider = async (slider: HTMLElement) => {
await userEvent.tab();
expect(slider).toHaveFocus();
diff --git a/semcore/spin-container/__tests__/__snapshots__/index.test.tsx.snap b/semcore/spin-container/__tests__/__snapshots__/index.test.tsx.snap
new file mode 100644
index 0000000000..1b49f41f89
--- /dev/null
+++ b/semcore/spin-container/__tests__/__snapshots__/index.test.tsx.snap
@@ -0,0 +1,37 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`SpinContainer > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "SpinContainer.Content",
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "Spin",
+ },
+ ],
+ "uiName": "SpinContainer.Overlay",
+ },
+ ],
+ "uiName": "FadeInOut",
+ },
+ ],
+ "uiName": "SpinContainer",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/spin-container/__tests__/index.test.tsx b/semcore/spin-container/__tests__/index.test.tsx
index 99c42db3e3..ed88eecc8c 100644
--- a/semcore/spin-container/__tests__/index.test.tsx
+++ b/semcore/spin-container/__tests__/index.test.tsx
@@ -1,6 +1,25 @@
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
-import { describe } from '@semcore/testing-utils/vitest';
+import { render } from '@semcore/testing-utils/testing-library';
+import { describe, expect, test } from '@semcore/testing-utils/vitest';
+import React from 'react';
+
+import SpinContainer from '../src';
describe('spin-container Dependency imports', () => {
runDependencyCheckTests('spin-container');
});
+
+describe('SpinContainer', () => {
+ test('Verify data-ui-name', () => {
+ const spinContainer = (
+
+ Content
+
+
+ );
+
+ const { container } = render(spinContainer);
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+});
diff --git a/semcore/spin/__tests__/__snapshots__/index.test.tsx.snap b/semcore/spin/__tests__/__snapshots__/index.test.tsx.snap
new file mode 100644
index 0000000000..3c533d6bf6
--- /dev/null
+++ b/semcore/spin/__tests__/__snapshots__/index.test.tsx.snap
@@ -0,0 +1,18 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`Spin > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "Spin",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/spin/__tests__/index.test.tsx b/semcore/spin/__tests__/index.test.tsx
index 6f0c011907..23c8144ffa 100644
--- a/semcore/spin/__tests__/index.test.tsx
+++ b/semcore/spin/__tests__/index.test.tsx
@@ -1,6 +1,18 @@
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
-import { describe } from '@semcore/testing-utils/vitest';
+import { render } from '@semcore/testing-utils/testing-library';
+import { describe, expect, test } from '@semcore/testing-utils/vitest';
+import React from 'react';
+
+import Spin from '../src';
describe('spin Dependency imports', () => {
runDependencyCheckTests('spin');
});
+
+describe('Spin', () => {
+ test('Verify data-ui-name', () => {
+ const { container } = render();
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+});
diff --git a/semcore/switch/__tests__/__snapshots__/index.test.tsx.snap b/semcore/switch/__tests__/__snapshots__/index.test.tsx.snap
new file mode 100644
index 0000000000..373d0a5a05
--- /dev/null
+++ b/semcore/switch/__tests__/__snapshots__/index.test.tsx.snap
@@ -0,0 +1,35 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`Switch > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Switch.Addon",
+ },
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Switch.Value",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ ],
+ "uiName": "Box",
+ },
+ {
+ "children": [],
+ "uiName": "Switch.Addon",
+ },
+ ],
+ "uiName": "Switch",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/switch/__tests__/index.test.tsx b/semcore/switch/__tests__/index.test.tsx
index af13f2cc63..7ba9849af7 100644
--- a/semcore/switch/__tests__/index.test.tsx
+++ b/semcore/switch/__tests__/index.test.tsx
@@ -1,3 +1,4 @@
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
import { cleanup, render, userEvent } from '@semcore/testing-utils/testing-library';
import { expect, test, describe, beforeEach, vi } from '@semcore/testing-utils/vitest';
@@ -12,6 +13,19 @@ describe('switch Dependency imports', () => {
describe('Switch', () => {
beforeEach(cleanup);
+ test('Verify data-ui-name', () => {
+ const switchComponent = (
+
+ Before
+
+ After
+
+ );
+
+ const { container } = render(switchComponent);
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+
test('Verify supports onChange callback', async () => {
const spy = vi.fn();
const { getByTestId } = render(
diff --git a/semcore/tab-line/__tests__/__snapshots__/index.test.tsx.snap b/semcore/tab-line/__tests__/__snapshots__/index.test.tsx.snap
new file mode 100644
index 0000000000..18a7fefcdb
--- /dev/null
+++ b/semcore/tab-line/__tests__/__snapshots__/index.test.tsx.snap
@@ -0,0 +1,27 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`TabLine > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "TabLine.Item.Addon",
+ },
+ {
+ "children": [],
+ "uiName": "TabLine.Item.Text",
+ },
+ ],
+ "uiName": "TabLine.Item",
+ },
+ ],
+ "uiName": "TabLine",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/tab-line/__tests__/index.test.tsx b/semcore/tab-line/__tests__/index.test.tsx
index 0befe891c4..9436e9fca2 100644
--- a/semcore/tab-line/__tests__/index.test.tsx
+++ b/semcore/tab-line/__tests__/index.test.tsx
@@ -1,4 +1,5 @@
import type { Intergalactic } from '@semcore/core';
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
import { render, cleanup, userEvent } from '@semcore/testing-utils/testing-library';
import { expect, test, describe, beforeEach, vi, assertType } from '@semcore/testing-utils/vitest';
@@ -29,6 +30,20 @@ describe('TabLine', () => {
beforeEach(cleanup);
+ test('Verify data-ui-name', () => {
+ const tabLine = (
+
+
+
+ Item
+
+
+ );
+
+ const { container } = render(tabLine);
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+
test('Verify supports onChange callback', async () => {
const spyChange = vi.fn();
const spyClick = vi.fn();
diff --git a/semcore/tab-panel/__tests__/__snapshots__/index.test.tsx.snap b/semcore/tab-panel/__tests__/__snapshots__/index.test.tsx.snap
new file mode 100644
index 0000000000..cb949818f8
--- /dev/null
+++ b/semcore/tab-panel/__tests__/__snapshots__/index.test.tsx.snap
@@ -0,0 +1,27 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`TabPanel > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "TabPanel.Item.Addon",
+ },
+ {
+ "children": [],
+ "uiName": "TabPanel.Item.Text",
+ },
+ ],
+ "uiName": "TabPanel.Item",
+ },
+ ],
+ "uiName": "TabPanel",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/tab-panel/__tests__/index.test.tsx b/semcore/tab-panel/__tests__/index.test.tsx
index 8e2b474110..86b9841219 100644
--- a/semcore/tab-panel/__tests__/index.test.tsx
+++ b/semcore/tab-panel/__tests__/index.test.tsx
@@ -1,4 +1,5 @@
import type { Intergalactic } from '@semcore/core';
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
import { render, cleanup, userEvent } from '@semcore/testing-utils/testing-library';
import { expect, test, describe, beforeEach, vi, assertType } from '@semcore/testing-utils/vitest';
@@ -29,6 +30,20 @@ describe('TabPanel', () => {
beforeEach(cleanup);
+ test('Verify data-ui-name', () => {
+ const tabPanel = (
+
+
+
+ Item
+
+
+ );
+
+ const { container } = render(tabPanel);
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+
test('Verify supports onChange callback', async () => {
const spyChange = vi.fn();
const spyClick = vi.fn();
diff --git a/semcore/tag/__tests__/__snapshots__/index.test.tsx.snap b/semcore/tag/__tests__/__snapshots__/index.test.tsx.snap
new file mode 100644
index 0000000000..1bee0322fa
--- /dev/null
+++ b/semcore/tag/__tests__/__snapshots__/index.test.tsx.snap
@@ -0,0 +1,83 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`Tag > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Tag.Circle",
+ },
+ {
+ "children": [],
+ "uiName": "Tag.Addon",
+ },
+ {
+ "children": [],
+ "uiName": "Tag.Text",
+ },
+ ],
+ "uiName": "Tag",
+ },
+ ],
+ "uiName": null,
+}
+`;
+
+exports[`TagContainer > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "TagContainer.Circle",
+ },
+ ],
+ "uiName": "Box",
+ },
+ {
+ "children": [],
+ "uiName": "TagContainer.Addon",
+ },
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Tag.Circle",
+ },
+ {
+ "children": [],
+ "uiName": "Tag.Addon",
+ },
+ {
+ "children": [],
+ "uiName": "Tag.Text",
+ },
+ ],
+ "uiName": "TagContainer.Tag",
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "Close",
+ },
+ ],
+ "uiName": "TagContainer.Close",
+ },
+ ],
+ "uiName": "TagContainer",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/tag/__tests__/index.test.tsx b/semcore/tag/__tests__/index.test.tsx
index 79a9f55c99..c075aae1cb 100644
--- a/semcore/tag/__tests__/index.test.tsx
+++ b/semcore/tag/__tests__/index.test.tsx
@@ -1,3 +1,4 @@
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
import { render, cleanup, userEvent } from '@semcore/testing-utils/testing-library';
import { expect, test, describe, beforeEach, vi } from '@semcore/testing-utils/vitest';
@@ -12,6 +13,19 @@ describe('tag Dependency imports', () => {
describe('Tag', () => {
beforeEach(cleanup);
+ test('Verify data-ui-name', () => {
+ const tag = (
+
+
+
+ Tag
+
+ );
+
+ const { container } = render(tag);
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+
test('Verify works as Button from keyboard', async () => {
const onClick = vi.fn();
const { getByTestId } = render(
@@ -54,6 +68,24 @@ describe('Tag', () => {
describe('TagContainer', () => {
beforeEach(cleanup);
+ test('Verify data-ui-name', () => {
+ const tagContainer = (
+
+
+
+
+
+
+ Tag
+
+
+
+ );
+
+ const { container } = render(tagContainer);
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+
test.sequential('Verify calls onClick', async () => {
const onClick = vi.fn();
const { getByTestId } = render(
diff --git a/semcore/textarea/__tests__/__snapshots__/index.test.tsx.snap b/semcore/textarea/__tests__/__snapshots__/index.test.tsx.snap
new file mode 100644
index 0000000000..7f3eb44d91
--- /dev/null
+++ b/semcore/textarea/__tests__/__snapshots__/index.test.tsx.snap
@@ -0,0 +1,13 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`Textarea > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [],
+ "uiName": "Textarea",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/textarea/__tests__/index.test.tsx b/semcore/textarea/__tests__/index.test.tsx
index 429910dd5c..4e3c6e8840 100644
--- a/semcore/textarea/__tests__/index.test.tsx
+++ b/semcore/textarea/__tests__/index.test.tsx
@@ -1,3 +1,4 @@
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
import { cleanup, render, userEvent } from '@semcore/testing-utils/testing-library';
import { expect, test, describe, beforeEach, vi } from '@semcore/testing-utils/vitest';
@@ -12,6 +13,11 @@ describe('textarea Dependency imports', () => {
describe('Textarea', () => {
beforeEach(cleanup);
+ test('Verify data-ui-name', () => {
+ const { container } = render();
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+
test('Verify supports onChange callback', async () => {
const spyChange = vi.fn();
const { getByTestId } = render();
diff --git a/semcore/time-picker/__tests__/__snapshots__/index.test.tsx.snap b/semcore/time-picker/__tests__/__snapshots__/index.test.tsx.snap
new file mode 100644
index 0000000000..c8d71de6c5
--- /dev/null
+++ b/semcore/time-picker/__tests__/__snapshots__/index.test.tsx.snap
@@ -0,0 +1,51 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`TimePicker > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "TimePicker.Hours",
+ },
+ {
+ "children": [],
+ "uiName": "TimePicker.Separator",
+ },
+ {
+ "children": [],
+ "uiName": "TimePicker.Minutes",
+ },
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "TimePicker.Format",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "TimePicker",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/time-picker/__tests__/index.test.tsx b/semcore/time-picker/__tests__/index.test.tsx
index fe55c65083..9ea8ecae90 100644
--- a/semcore/time-picker/__tests__/index.test.tsx
+++ b/semcore/time-picker/__tests__/index.test.tsx
@@ -1,12 +1,32 @@
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
-import { describe, it, expect } from '@semcore/testing-utils/vitest';
+import { render } from '@semcore/testing-utils/testing-library';
+import { describe, it, expect, test } from '@semcore/testing-utils/vitest';
+import React from 'react';
+import TimePicker from '../src';
import TimePickerEntity from '../src/entity/TimePickerEntity';
describe('time-picker Dependency imports', () => {
runDependencyCheckTests('time-picker');
});
+describe('TimePicker', () => {
+ test('Verify data-ui-name', () => {
+ const timePicker = (
+
+
+
+
+
+
+ );
+
+ const { container } = render(timePicker);
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+});
+
describe('TimePickerEntity', () => {
describe('constructor', () => {
it('should initialize with default empty time when no value provided', () => {
diff --git a/semcore/tooltip/__tests__/__snapshots__/index.test.jsx.snap b/semcore/tooltip/__tests__/__snapshots__/index.test.jsx.snap
new file mode 100644
index 0000000000..50df4a0845
--- /dev/null
+++ b/semcore/tooltip/__tests__/__snapshots__/index.test.jsx.snap
@@ -0,0 +1,49 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`DescriptionTooltip > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [],
+ "uiName": "DescriptionTooltip.Trigger",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ ],
+ "uiName": null,
+}
+`;
+
+exports[`Hint > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [],
+ "uiName": "Hint.Trigger",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ ],
+ "uiName": null,
+}
+`;
+
+exports[`Tooltip > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [],
+ "uiName": "Tooltip.Trigger",
+ },
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/tooltip/__tests__/index.test.jsx b/semcore/tooltip/__tests__/index.test.jsx
index 5d0bc82abd..426bc5acfd 100644
--- a/semcore/tooltip/__tests__/index.test.jsx
+++ b/semcore/tooltip/__tests__/index.test.jsx
@@ -1,5 +1,6 @@
import Button from '@semcore/button';
import Link from '@semcore/link';
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
import { cleanup, render, userEvent, waitFor } from '@semcore/testing-utils/testing-library';
import { expect, test, describe, beforeEach, vi } from '@semcore/testing-utils/vitest';
@@ -14,6 +15,18 @@ describe('tooltip Dependency imports', () => {
describe('Tooltip', () => {
beforeEach(cleanup);
+ test('Verify data-ui-name', () => {
+ const tooltip = (
+
+ Trigger
+ Content
+
+ );
+
+ const { container } = render(tooltip);
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+
test('Verify supports className and custom attributes on Popper', async () => {
const { getByTestId } = render(
@@ -80,6 +93,18 @@ describe('Tooltip', () => {
// smoke for Hint и DescriptionTooltip
describe('Hint', () => {
+ test('Verify data-ui-name', () => {
+ const hint = (
+
+ Trigger
+ Content
+
+ );
+
+ const { container } = render(hint);
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+
test('Verify supports ref', () => {
const ref = React.createRef();
render();
@@ -100,6 +125,18 @@ describe('Hint', () => {
});
describe('DescriptionTooltip', () => {
+ test('Verify data-ui-name', () => {
+ const descriptionTooltip = (
+
+ Trigger
+ Content
+
+ );
+
+ const { container } = render(descriptionTooltip);
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+
test('Verify supports ref', () => {
const ref = React.createRef();
render();
diff --git a/semcore/typography/__tests__/__snapshots__/index.test.tsx.snap b/semcore/typography/__tests__/__snapshots__/index.test.tsx.snap
new file mode 100644
index 0000000000..0db1fe7ed4
--- /dev/null
+++ b/semcore/typography/__tests__/__snapshots__/index.test.tsx.snap
@@ -0,0 +1,49 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`Typography > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [],
+ "uiName": "Text",
+ },
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": null,
+ },
+ ],
+ "uiName": "Blockquote",
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ {
+ "children": [],
+ "uiName": "Item.Content",
+ },
+ ],
+ "uiName": "List.Item",
+ },
+ ],
+ "uiName": "List",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/typography/__tests__/index.test.tsx b/semcore/typography/__tests__/index.test.tsx
index 7459b75607..4b927d92ed 100644
--- a/semcore/typography/__tests__/index.test.tsx
+++ b/semcore/typography/__tests__/index.test.tsx
@@ -1,14 +1,36 @@
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
import { cleanup, render } from '@semcore/testing-utils/testing-library';
import { expect, test, describe, beforeEach } from '@semcore/testing-utils/vitest';
import * as React from 'react';
-import { List } from '../src';
+import { Blockquote, List, Text } from '../src';
describe('typography Dependency imports', () => {
runDependencyCheckTests('typography');
});
+describe('Typography', () => {
+ beforeEach(cleanup);
+
+ test('Verify data-ui-name', () => {
+ const typography = (
+ <>
+ Text
+ Quote
+
+
+ Item
+
+
+ >
+ );
+
+ const { container } = render(typography);
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+});
+
describe('List', () => {
beforeEach(cleanup);
test('Default List.Item should have display block for content', async () => {
diff --git a/semcore/widget-empty/__tests__/__snapshots__/index.test.tsx.snap b/semcore/widget-empty/__tests__/__snapshots__/index.test.tsx.snap
new file mode 100644
index 0000000000..896601e45a
--- /dev/null
+++ b/semcore/widget-empty/__tests__/__snapshots__/index.test.tsx.snap
@@ -0,0 +1,82 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`WidgetEmpty > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "WidgetEmpty.Title",
+ },
+ {
+ "children": [],
+ "uiName": "WidgetEmpty.Description",
+ },
+ ],
+ "uiName": "WidgetEmpty",
+ },
+ ],
+ "uiName": null,
+}
+`;
+
+exports[`WidgetError > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": null,
+ },
+ {
+ "children": [],
+ "uiName": "WidgetEmpty.Title",
+ },
+ {
+ "children": [],
+ "uiName": "WidgetEmpty.Description",
+ },
+ ],
+ "uiName": "WidgetError",
+ },
+ ],
+ "uiName": null,
+}
+`;
+
+exports[`WidgetNoData > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": null,
+ },
+ {
+ "children": [],
+ "uiName": "WidgetEmpty.Title",
+ },
+ {
+ "children": [],
+ "uiName": "WidgetEmpty.Description",
+ },
+ ],
+ "uiName": "WidgetNoData",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/widget-empty/__tests__/index.test.tsx b/semcore/widget-empty/__tests__/index.test.tsx
index bc471392a4..2707cd1dff 100644
--- a/semcore/widget-empty/__tests__/index.test.tsx
+++ b/semcore/widget-empty/__tests__/index.test.tsx
@@ -1,6 +1,39 @@
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
-import { describe } from '@semcore/testing-utils/vitest';
+import { render } from '@semcore/testing-utils/testing-library';
+import { describe, expect, test } from '@semcore/testing-utils/vitest';
+import React from 'react';
+
+import WidgetEmpty, { Error, NoData } from '../src';
describe('widget-empty Dependency imports', () => {
runDependencyCheckTests('widget-empty');
});
+
+describe('WidgetEmpty', () => {
+ test('Verify data-ui-name', () => {
+ const widgetEmpty = (
+
+ Title
+ Description
+
+ );
+
+ const { container } = render(widgetEmpty);
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+});
+
+describe('WidgetNoData', () => {
+ test('Verify data-ui-name', () => {
+ const { container } = render();
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+});
+
+describe('WidgetError', () => {
+ test('Verify data-ui-name', () => {
+ const { container } = render();
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+});
diff --git a/semcore/wizard/__tests__/__snapshots__/index.test.tsx.snap b/semcore/wizard/__tests__/__snapshots__/index.test.tsx.snap
new file mode 100644
index 0000000000..5dbbe63fad
--- /dev/null
+++ b/semcore/wizard/__tests__/__snapshots__/index.test.tsx.snap
@@ -0,0 +1,133 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`Wizard > Verify data-ui-name 1`] = `
+{
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Box",
+ },
+ {
+ "children": [],
+ "uiName": null,
+ },
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "Wizard.Stepper",
+ },
+ ],
+ "uiName": null,
+ },
+ ],
+ "uiName": "Wizard.Sidebar",
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Wizard.StepTitle",
+ },
+ ],
+ "uiName": "Wizard.Step",
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "ArrowLeft",
+ },
+ ],
+ "uiName": "Button.Addon",
+ },
+ {
+ "children": [],
+ "uiName": "Button.Text",
+ },
+ ],
+ "uiName": "Wizard.StepBack.InnerWrapper",
+ },
+ ],
+ "uiName": "Wizard.StepBack",
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": "Button.Text",
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "ArrowRight",
+ },
+ ],
+ "uiName": "Button.Addon",
+ },
+ ],
+ "uiName": "Wizard.StepNext.InnerWrapper",
+ },
+ ],
+ "uiName": "Wizard.StepNext",
+ },
+ ],
+ "uiName": "Wizard.Content",
+ },
+ ],
+ "uiName": "Wizard",
+ },
+ {
+ "children": [],
+ "uiName": null,
+ },
+ ],
+ "uiName": "Modal.Overlay.ContentWrapper",
+ },
+ ],
+ "uiName": "Modal.Overlay",
+ },
+ ],
+ "uiName": null,
+}
+`;
diff --git a/semcore/wizard/__tests__/index.test.tsx b/semcore/wizard/__tests__/index.test.tsx
index 8fe924853c..9a06b3e1ad 100644
--- a/semcore/wizard/__tests__/index.test.tsx
+++ b/semcore/wizard/__tests__/index.test.tsx
@@ -1,3 +1,4 @@
+import { extractUIName } from '@semcore/testing-utils/shared/extractUINameTree.ts';
import { runDependencyCheckTests } from '@semcore/testing-utils/shared-tests';
import { render, cleanup, userEvent } from '@semcore/testing-utils/testing-library';
import { describe, test, expect, beforeEach, vi } from '@semcore/testing-utils/vitest';
@@ -12,6 +13,27 @@ describe('wizard Dependency imports', () => {
describe('Wizard', () => {
beforeEach(cleanup);
+ test('Verify data-ui-name', () => {
+ const wizard = (
+
+
+ Step 1
+
+
+
+ Step title
+ Step content
+
+ Back
+ Next
+
+
+ );
+
+ const { container } = render(wizard);
+ expect(extractUIName(container)).toMatchSnapshot();
+ });
+
test('Should support sidebar and content', async () => {
const { getByText, getByRole } = render(