diff --git a/loveship/components/inputs/__tests__/Rating.test.tsx b/loveship/components/inputs/__tests__/Rating.test.tsx deleted file mode 100644 index 88cb7fdb8e..0000000000 --- a/loveship/components/inputs/__tests__/Rating.test.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import React from 'react'; -import { renderSnapshotWithContextAsync } from '@epam/uui-test-utils'; -import { Rating } from '../Rating'; - -describe('Rating', () => { - const value = 2; - const onChange = jest.fn(); - - it('should be rendered correctly', async () => { - const tree = await renderSnapshotWithContextAsync(); - - expect(tree).toMatchSnapshot(); - }); - - it('should be rendered correctly with props', async () => { - const tree = await renderSnapshotWithContextAsync(); - - expect(tree).toMatchSnapshot(); - }); -}); diff --git a/loveship/components/inputs/__tests__/__snapshots__/Rating.test.tsx.snap b/loveship/components/inputs/__tests__/__snapshots__/Rating.test.tsx.snap deleted file mode 100644 index 00107f1a1d..0000000000 --- a/loveship/components/inputs/__tests__/__snapshots__/Rating.test.tsx.snap +++ /dev/null @@ -1,309 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Rating should be rendered correctly 1`] = ` -
-
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
-
-`; - -exports[`Rating should be rendered correctly with props 1`] = ` -
-
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
-
-`; diff --git a/epam-promo/components/inputs/__tests__/Rating.test.tsx b/uui/components/inputs/__tests__/Rating.test.tsx similarity index 77% rename from epam-promo/components/inputs/__tests__/Rating.test.tsx rename to uui/components/inputs/__tests__/Rating.test.tsx index a0aeca07a8..81bfdbedcb 100644 --- a/epam-promo/components/inputs/__tests__/Rating.test.tsx +++ b/uui/components/inputs/__tests__/Rating.test.tsx @@ -9,8 +9,8 @@ describe('Rating', () => { expect(tree).toMatchSnapshot(); }); - it('should be rendered correctly', async () => { - const tree = await renderSnapshotWithContextAsync(); + it('should be rendered correctly with more props', async () => { + const tree = await renderSnapshotWithContextAsync(); expect(tree).toMatchSnapshot(); }); diff --git a/epam-promo/components/inputs/__tests__/__snapshots__/Rating.test.tsx.snap b/uui/components/inputs/__tests__/__snapshots__/Rating.test.tsx.snap similarity index 65% rename from epam-promo/components/inputs/__tests__/__snapshots__/Rating.test.tsx.snap rename to uui/components/inputs/__tests__/__snapshots__/Rating.test.tsx.snap index fcdb10309b..d69e2b0ed8 100644 --- a/epam-promo/components/inputs/__tests__/__snapshots__/Rating.test.tsx.snap +++ b/uui/components/inputs/__tests__/__snapshots__/Rating.test.tsx.snap @@ -5,7 +5,7 @@ exports[`Rating should be rendered correctly 1`] = ` aria-valuemax={5} aria-valuemin={1} aria-valuenow={0} - className="container root size-18" + className="container root uui-size-18" onKeyDown={[Function]} onMouseLeave={[Function]} onMouseMove={[Function]} @@ -159,7 +159,161 @@ exports[`Rating should be rendered correctly 2`] = ` aria-valuemax={5} aria-valuemin={1} aria-valuenow={0} - className="container root size-18" + className="container root uui-size-18" + onKeyDown={[Function]} + onMouseLeave={[Function]} + onMouseMove={[Function]} + onMouseUp={[Function]} + onTouchEnd={[Function]} + role="slider" + tabIndex={0} +> +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +`; + +exports[`Rating should be rendered correctly with more props 1`] = ` +