@digigov/ui 2.0.0-aefd0709 → 2.0.0-b15d5d44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/cjs/feedback/ErrorSummary/ErrorSummary.stories/index.js +3 -0
  2. package/cjs/feedback/ErrorSummary/ErrorSummary.stories.js.map +2 -2
  3. package/cjs/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput/index.js +49 -0
  4. package/cjs/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput.js.map +7 -0
  5. package/cjs/i18n/index.js +18 -1
  6. package/cjs/i18n/index.js.map +2 -2
  7. package/cjs/i18n/locales/el/index.js +18 -1
  8. package/cjs/i18n/locales/el.js.map +2 -2
  9. package/cjs/i18n/locales/en/index.js +25 -2
  10. package/cjs/i18n/locales/en.js.map +2 -2
  11. package/cjs/lazy/index.js +330 -1650
  12. package/cjs/lazy.js.map +3 -3
  13. package/cjs/registry/index.js +885 -501
  14. package/cjs/registry.js.map +3 -3
  15. package/cjs/utils/hooks/useScreen/index.js +1 -1
  16. package/cjs/utils/hooks/useScreen.js.map +2 -2
  17. package/feedback/ErrorSummary/ErrorSummary.stories/index.js +2 -0
  18. package/feedback/ErrorSummary/ErrorSummary.stories.d.ts +1 -0
  19. package/feedback/ErrorSummary/ErrorSummary.stories.js.map +2 -2
  20. package/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput/index.js +16 -0
  21. package/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput/package.json +6 -0
  22. package/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput.d.ts +3 -0
  23. package/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput.js.map +7 -0
  24. package/i18n/index.js +18 -1
  25. package/i18n/index.js.map +2 -2
  26. package/i18n/locales/el/index.js +18 -1
  27. package/i18n/locales/el.d.ts +17 -0
  28. package/i18n/locales/el.js.map +2 -2
  29. package/i18n/locales/en/index.js +25 -2
  30. package/i18n/locales/en.d.ts +23 -0
  31. package/i18n/locales/en.js.map +2 -2
  32. package/index.js +1 -1
  33. package/lazy/index.js +332 -1656
  34. package/package.json +5 -5
  35. package/registry/index.js +960 -576
  36. package/src/app/BannerContainer/index.test.tsx +10 -11
  37. package/src/app/Footer/index.test.tsx +31 -32
  38. package/src/app/Header/index.test.tsx +22 -23
  39. package/src/app/Loader/index.test.tsx +13 -14
  40. package/src/app/Masthead/index.test.tsx +19 -20
  41. package/src/app/Modal/index.test.tsx +25 -26
  42. package/src/app/NotFound/index.test.tsx +10 -11
  43. package/src/app/Panel/index.test.tsx +10 -11
  44. package/src/app/PhaseBannerHeader/index.test.tsx +10 -11
  45. package/src/app/QrCodeViewer/index.test.tsx +13 -14
  46. package/src/app/Skeleton/index.test.tsx +34 -35
  47. package/src/content/Accordion/index.test.tsx +19 -20
  48. package/src/content/Blockquote/index.test.tsx +13 -14
  49. package/src/content/Card/index.test.tsx +40 -41
  50. package/src/content/Chip/index.test.tsx +22 -23
  51. package/src/content/Details/index.test.tsx +10 -11
  52. package/src/content/List/index.test.tsx +25 -26
  53. package/src/content/Markdown/index.test.tsx +10 -11
  54. package/src/content/SafeHTML/index.test.tsx +10 -11
  55. package/src/content/StepNav/index.test.tsx +22 -23
  56. package/src/content/SummaryList/index.test.tsx +31 -32
  57. package/src/content/Table/index.test.tsx +62 -63
  58. package/src/content/TaskList/index.test.tsx +13 -14
  59. package/src/content/Timeline/index.test.tsx +13 -14
  60. package/src/feedback/CopyToClipboard/index.test.tsx +16 -17
  61. package/src/feedback/ErrorSummary/ErrorSummary.stories.js +1 -0
  62. package/src/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput.tsx +47 -0
  63. package/src/feedback/ErrorSummary/index.test.tsx +29 -26
  64. package/src/feedback/NotificationBanner/index.test.tsx +16 -17
  65. package/src/feedback/PhaseBanner/index.test.tsx +13 -14
  66. package/src/feedback/WarningText/index.test.tsx +16 -17
  67. package/src/form/AutoComplete/index.test.tsx +37 -38
  68. package/src/form/Button/index.test.tsx +43 -44
  69. package/src/form/Checkbox/index.test.tsx +37 -38
  70. package/src/form/DateInputContainer/index.test.tsx +22 -23
  71. package/src/form/ErrorMessage/index.test.tsx +16 -17
  72. package/src/form/FileUpload/index.test.tsx +13 -14
  73. package/src/form/RadioContainer/index.test.tsx +37 -38
  74. package/src/form/SearchContainer/index.test.tsx +10 -11
  75. package/src/form/SelectContainer/index.test.tsx +19 -20
  76. package/src/form/SingleCharacterInputs/index.test.tsx +20 -24
  77. package/src/form/TextArea/index.test.tsx +31 -32
  78. package/src/form/TextInput/index.test.tsx +37 -38
  79. package/src/i18n/index.tsx +14 -1
  80. package/src/i18n/locales/el.ts +22 -0
  81. package/src/i18n/locales/en.ts +23 -0
  82. package/src/layouts/Basic/index.test.tsx +19 -20
  83. package/src/layouts/Grid/index.test.tsx +16 -17
  84. package/src/layouts/Screen/index.test.tsx +19 -20
  85. package/src/layouts/Stack/index.test.tsx +25 -26
  86. package/src/lazy.js +330 -1650
  87. package/src/navigation/BackLink/index.test.tsx +10 -11
  88. package/src/navigation/BackToTopLink/index.test.tsx +13 -14
  89. package/src/navigation/Breadcrumbs/index.test.tsx +22 -23
  90. package/src/navigation/Drawer/index.test.tsx +16 -17
  91. package/src/navigation/Dropdown/index.test.tsx +40 -41
  92. package/src/navigation/Link/index.test.tsx +28 -29
  93. package/src/navigation/NavList/index.test.tsx +34 -35
  94. package/src/navigation/Pagination/index.test.tsx +28 -29
  95. package/src/navigation/SkipLink/index.test.tsx +10 -11
  96. package/src/navigation/Tabs/index.test.tsx +19 -20
  97. package/src/registry.js +1026 -701
  98. package/src/typography/CodeBlock/index.test.tsx +19 -20
  99. package/src/typography/Heading/index.test.tsx +10 -11
  100. package/src/typography/HeadingCaption/index.test.tsx +13 -14
  101. package/src/typography/Hint/index.test.tsx +13 -14
  102. package/src/typography/NormalText/index.test.tsx +19 -20
  103. package/src/typography/Paragraph/index.test.tsx +22 -23
  104. package/src/utils/VisuallyHidden/index.test.tsx +10 -11
  105. package/src/utils/hooks/useScreen.ts +2 -3
  106. package/utils/hooks/useScreen/index.js +1 -1
  107. package/utils/hooks/useScreen.js.map +2 -2
  108. package/cjs/test-utils/delay/index.js +0 -35
  109. package/cjs/test-utils/delay.js.map +0 -7
  110. package/lazy.d.ts +0 -361
  111. package/lazy.js.map +0 -7
  112. package/registry.d.ts +0 -315
  113. package/registry.js.map +0 -7
  114. package/src/test-utils/delay.ts +0 -9
  115. package/test-utils/delay/index.js +0 -12
  116. package/test-utils/delay/package.json +0 -6
  117. package/test-utils/delay.d.ts +0 -2
  118. package/test-utils/delay.js.map +0 -7
@@ -1,21 +1,20 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
+ import TestVariant from '@digigov/ui/utils/TestVariant'
3
4
  import { CookiesBanner } from '@digigov/ui/app/BannerContainer/__stories__/CookiesBanner';
4
- import TestVariant from '@digigov/ui/utils/TestVariant';
5
5
 
6
6
  test('renders the All BannerContainer variants', async ({ mount, page }) => {
7
7
  await mount(
8
- <div>
9
- <TestVariant title="CookiesBanner">
10
- <CookiesBanner />
11
- </TestVariant>
12
- </div>
13
- );
8
+
9
+ <div>
10
+ <TestVariant title="CookiesBanner">
11
+ <CookiesBanner />
12
+ </TestVariant>
13
+ </div>
14
+ )
14
15
  await page.evaluate(() => document.fonts.ready);
15
16
 
16
- const screenshot = await page.screenshot({
17
- fullPage: true,
18
- animations: 'disabled',
19
- });
17
+ const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
20
18
  expect(screenshot).toMatchSnapshot();
21
19
  });
20
+
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
+ import TestVariant from '@digigov/ui/utils/TestVariant'
3
4
  import { Default } from '@digigov/ui/app/Footer/__stories__/Default';
4
5
  import { DefaultCopyright } from '@digigov/ui/app/Footer/__stories__/DefaultCopyright';
5
6
  import { FooterAllInclusive } from '@digigov/ui/app/Footer/__stories__/FooterAllInclusive';
@@ -8,42 +9,40 @@ import { FooterWithLogo } from '@digigov/ui/app/Footer/__stories__/FooterWithLog
8
9
  import { FooterWithSecondaryNavigation } from '@digigov/ui/app/Footer/__stories__/FooterWithSecondaryNavigation';
9
10
  import { FooterWithText } from '@digigov/ui/app/Footer/__stories__/FooterWithText';
10
11
  import { YearCopyright } from '@digigov/ui/app/Footer/__stories__/YearCopyright';
11
- import TestVariant from '@digigov/ui/utils/TestVariant';
12
12
 
13
13
  test('renders the All Footer variants', async ({ mount, page }) => {
14
14
  await mount(
15
- <div>
16
- <TestVariant title="Default">
17
- <Default />
18
- </TestVariant>
19
- <TestVariant title="DefaultCopyright">
20
- <DefaultCopyright />
21
- </TestVariant>
22
- <TestVariant title="FooterAllInclusive">
23
- <FooterAllInclusive />
24
- </TestVariant>
25
- <TestVariant title="FooterWithLink">
26
- <FooterWithLink />
27
- </TestVariant>
28
- <TestVariant title="FooterWithLogo">
29
- <FooterWithLogo />
30
- </TestVariant>
31
- <TestVariant title="FooterWithSecondaryNavigation">
32
- <FooterWithSecondaryNavigation />
33
- </TestVariant>
34
- <TestVariant title="FooterWithText">
35
- <FooterWithText />
36
- </TestVariant>
37
- <TestVariant title="YearCopyright">
38
- <YearCopyright />
39
- </TestVariant>
40
- </div>
41
- );
15
+
16
+ <div>
17
+ <TestVariant title="Default">
18
+ <Default />
19
+ </TestVariant>
20
+ <TestVariant title="DefaultCopyright">
21
+ <DefaultCopyright />
22
+ </TestVariant>
23
+ <TestVariant title="FooterAllInclusive">
24
+ <FooterAllInclusive />
25
+ </TestVariant>
26
+ <TestVariant title="FooterWithLink">
27
+ <FooterWithLink />
28
+ </TestVariant>
29
+ <TestVariant title="FooterWithLogo">
30
+ <FooterWithLogo />
31
+ </TestVariant>
32
+ <TestVariant title="FooterWithSecondaryNavigation">
33
+ <FooterWithSecondaryNavigation />
34
+ </TestVariant>
35
+ <TestVariant title="FooterWithText">
36
+ <FooterWithText />
37
+ </TestVariant>
38
+ <TestVariant title="YearCopyright">
39
+ <YearCopyright />
40
+ </TestVariant>
41
+ </div>
42
+ )
42
43
  await page.evaluate(() => document.fonts.ready);
43
44
 
44
- const screenshot = await page.screenshot({
45
- fullPage: true,
46
- animations: 'disabled',
47
- });
45
+ const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
48
46
  expect(screenshot).toMatchSnapshot();
49
47
  });
48
+
@@ -1,37 +1,36 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
+ import TestVariant from '@digigov/ui/utils/TestVariant'
3
4
  import { Default } from '@digigov/ui/app/Header/__stories__/Default';
4
5
  import { WithHeaderNavigation } from '@digigov/ui/app/Header/__stories__/WithHeaderNavigation';
5
6
  import { WithNavigation } from '@digigov/ui/app/Header/__stories__/WithNavigation';
6
7
  import { WithServiceName } from '@digigov/ui/app/Header/__stories__/WithServiceName';
7
8
  import { WithServiceNameAndLogo } from '@digigov/ui/app/Header/__stories__/WithServiceNameAndLogo';
8
- import TestVariant from '@digigov/ui/utils/TestVariant';
9
9
 
10
10
  test('renders the All Header variants', async ({ mount, page }) => {
11
11
  await mount(
12
- <div>
13
- <TestVariant title="Default">
14
- <Default />
15
- </TestVariant>
16
- <TestVariant title="WithHeaderNavigation">
17
- <WithHeaderNavigation />
18
- </TestVariant>
19
- <TestVariant title="WithNavigation">
20
- <WithNavigation />
21
- </TestVariant>
22
- <TestVariant title="WithServiceName">
23
- <WithServiceName />
24
- </TestVariant>
25
- <TestVariant title="WithServiceNameAndLogo">
26
- <WithServiceNameAndLogo />
27
- </TestVariant>
28
- </div>
29
- );
12
+
13
+ <div>
14
+ <TestVariant title="Default">
15
+ <Default />
16
+ </TestVariant>
17
+ <TestVariant title="WithHeaderNavigation">
18
+ <WithHeaderNavigation />
19
+ </TestVariant>
20
+ <TestVariant title="WithNavigation">
21
+ <WithNavigation />
22
+ </TestVariant>
23
+ <TestVariant title="WithServiceName">
24
+ <WithServiceName />
25
+ </TestVariant>
26
+ <TestVariant title="WithServiceNameAndLogo">
27
+ <WithServiceNameAndLogo />
28
+ </TestVariant>
29
+ </div>
30
+ )
30
31
  await page.evaluate(() => document.fonts.ready);
31
32
 
32
- const screenshot = await page.screenshot({
33
- fullPage: true,
34
- animations: 'disabled',
35
- });
33
+ const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
36
34
  expect(screenshot).toMatchSnapshot();
37
35
  });
36
+
@@ -1,25 +1,24 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
+ import TestVariant from '@digigov/ui/utils/TestVariant'
3
4
  import { Default } from '@digigov/ui/app/Loader/__stories__/Default';
4
5
  import { FullPageLoader } from '@digigov/ui/app/Loader/__stories__/FullPageLoader';
5
- import TestVariant from '@digigov/ui/utils/TestVariant';
6
6
 
7
7
  test('renders the All Loader variants', async ({ mount, page }) => {
8
8
  await mount(
9
- <div>
10
- <TestVariant title="Default">
11
- <Default />
12
- </TestVariant>
13
- <TestVariant title="FullPageLoader">
14
- <FullPageLoader />
15
- </TestVariant>
16
- </div>
17
- );
9
+
10
+ <div>
11
+ <TestVariant title="Default">
12
+ <Default />
13
+ </TestVariant>
14
+ <TestVariant title="FullPageLoader">
15
+ <FullPageLoader />
16
+ </TestVariant>
17
+ </div>
18
+ )
18
19
  await page.evaluate(() => document.fonts.ready);
19
20
 
20
- const screenshot = await page.screenshot({
21
- fullPage: true,
22
- animations: 'disabled',
23
- });
21
+ const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
24
22
  expect(screenshot).toMatchSnapshot();
25
23
  });
24
+
@@ -1,33 +1,32 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
+ import TestVariant from '@digigov/ui/utils/TestVariant'
3
4
  import { Default } from '@digigov/ui/app/Masthead/__stories__/Default';
4
5
  import { Secondary } from '@digigov/ui/app/Masthead/__stories__/Secondary';
5
6
  import { WithElements } from '@digigov/ui/app/Masthead/__stories__/WithElements';
6
7
  import { WithLogo } from '@digigov/ui/app/Masthead/__stories__/WithLogo';
7
- import TestVariant from '@digigov/ui/utils/TestVariant';
8
8
 
9
9
  test('renders the All Masthead variants', async ({ mount, page }) => {
10
10
  await mount(
11
- <div>
12
- <TestVariant title="Default">
13
- <Default />
14
- </TestVariant>
15
- <TestVariant title="Secondary">
16
- <Secondary />
17
- </TestVariant>
18
- <TestVariant title="WithElements">
19
- <WithElements />
20
- </TestVariant>
21
- <TestVariant title="WithLogo">
22
- <WithLogo />
23
- </TestVariant>
24
- </div>
25
- );
11
+
12
+ <div>
13
+ <TestVariant title="Default">
14
+ <Default />
15
+ </TestVariant>
16
+ <TestVariant title="Secondary">
17
+ <Secondary />
18
+ </TestVariant>
19
+ <TestVariant title="WithElements">
20
+ <WithElements />
21
+ </TestVariant>
22
+ <TestVariant title="WithLogo">
23
+ <WithLogo />
24
+ </TestVariant>
25
+ </div>
26
+ )
26
27
  await page.evaluate(() => document.fonts.ready);
27
28
 
28
- const screenshot = await page.screenshot({
29
- fullPage: true,
30
- animations: 'disabled',
31
- });
29
+ const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
32
30
  expect(screenshot).toMatchSnapshot();
33
31
  });
32
+
@@ -1,41 +1,40 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
+ import TestVariant from '@digigov/ui/utils/TestVariant'
3
4
  import { AlertDialog } from '@digigov/ui/app/Modal/__stories__/AlertDialog';
4
5
  import { Auto } from '@digigov/ui/app/Modal/__stories__/Auto';
5
6
  import { Default } from '@digigov/ui/app/Modal/__stories__/Default';
6
7
  import { Dense } from '@digigov/ui/app/Modal/__stories__/Dense';
7
8
  import { WithHooks } from '@digigov/ui/app/Modal/__stories__/WithHooks';
8
9
  import { WithoutModalGaps } from '@digigov/ui/app/Modal/__stories__/WithoutModalGaps';
9
- import TestVariant from '@digigov/ui/utils/TestVariant';
10
10
 
11
11
  test('renders the All Modal variants', async ({ mount, page }) => {
12
12
  await mount(
13
- <div>
14
- <TestVariant title="AlertDialog">
15
- <AlertDialog />
16
- </TestVariant>
17
- <TestVariant title="Auto">
18
- <Auto />
19
- </TestVariant>
20
- <TestVariant title="Default">
21
- <Default />
22
- </TestVariant>
23
- <TestVariant title="Dense">
24
- <Dense />
25
- </TestVariant>
26
- <TestVariant title="WithHooks">
27
- <WithHooks />
28
- </TestVariant>
29
- <TestVariant title="WithoutModalGaps">
30
- <WithoutModalGaps />
31
- </TestVariant>
32
- </div>
33
- );
13
+
14
+ <div>
15
+ <TestVariant title="AlertDialog">
16
+ <AlertDialog />
17
+ </TestVariant>
18
+ <TestVariant title="Auto">
19
+ <Auto />
20
+ </TestVariant>
21
+ <TestVariant title="Default">
22
+ <Default />
23
+ </TestVariant>
24
+ <TestVariant title="Dense">
25
+ <Dense />
26
+ </TestVariant>
27
+ <TestVariant title="WithHooks">
28
+ <WithHooks />
29
+ </TestVariant>
30
+ <TestVariant title="WithoutModalGaps">
31
+ <WithoutModalGaps />
32
+ </TestVariant>
33
+ </div>
34
+ )
34
35
  await page.evaluate(() => document.fonts.ready);
35
36
 
36
- const screenshot = await page.screenshot({
37
- fullPage: true,
38
- animations: 'disabled',
39
- });
37
+ const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
40
38
  expect(screenshot).toMatchSnapshot();
41
39
  });
40
+
@@ -1,21 +1,20 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
+ import TestVariant from '@digigov/ui/utils/TestVariant'
3
4
  import { Default } from '@digigov/ui/app/NotFound/__stories__/Default';
4
- import TestVariant from '@digigov/ui/utils/TestVariant';
5
5
 
6
6
  test('renders the All NotFound variants', async ({ mount, page }) => {
7
7
  await mount(
8
- <div>
9
- <TestVariant title="Default">
10
- <Default />
11
- </TestVariant>
12
- </div>
13
- );
8
+
9
+ <div>
10
+ <TestVariant title="Default">
11
+ <Default />
12
+ </TestVariant>
13
+ </div>
14
+ )
14
15
  await page.evaluate(() => document.fonts.ready);
15
16
 
16
- const screenshot = await page.screenshot({
17
- fullPage: true,
18
- animations: 'disabled',
19
- });
17
+ const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
20
18
  expect(screenshot).toMatchSnapshot();
21
19
  });
20
+
@@ -1,21 +1,20 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
+ import TestVariant from '@digigov/ui/utils/TestVariant'
3
4
  import { Default } from '@digigov/ui/app/Panel/__stories__/Default';
4
- import TestVariant from '@digigov/ui/utils/TestVariant';
5
5
 
6
6
  test('renders the All Panel variants', async ({ mount, page }) => {
7
7
  await mount(
8
- <div>
9
- <TestVariant title="Default">
10
- <Default />
11
- </TestVariant>
12
- </div>
13
- );
8
+
9
+ <div>
10
+ <TestVariant title="Default">
11
+ <Default />
12
+ </TestVariant>
13
+ </div>
14
+ )
14
15
  await page.evaluate(() => document.fonts.ready);
15
16
 
16
- const screenshot = await page.screenshot({
17
- fullPage: true,
18
- animations: 'disabled',
19
- });
17
+ const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
20
18
  expect(screenshot).toMatchSnapshot();
21
19
  });
20
+
@@ -1,21 +1,20 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
+ import TestVariant from '@digigov/ui/utils/TestVariant'
3
4
  import { Default } from '@digigov/ui/app/PhaseBannerHeader/__stories__/Default';
4
- import TestVariant from '@digigov/ui/utils/TestVariant';
5
5
 
6
6
  test('renders the All PhaseBannerHeader variants', async ({ mount, page }) => {
7
7
  await mount(
8
- <div>
9
- <TestVariant title="Default">
10
- <Default />
11
- </TestVariant>
12
- </div>
13
- );
8
+
9
+ <div>
10
+ <TestVariant title="Default">
11
+ <Default />
12
+ </TestVariant>
13
+ </div>
14
+ )
14
15
  await page.evaluate(() => document.fonts.ready);
15
16
 
16
- const screenshot = await page.screenshot({
17
- fullPage: true,
18
- animations: 'disabled',
19
- });
17
+ const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
20
18
  expect(screenshot).toMatchSnapshot();
21
19
  });
20
+
@@ -1,25 +1,24 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
+ import TestVariant from '@digigov/ui/utils/TestVariant'
3
4
  import { Custom } from '@digigov/ui/app/QrCodeViewer/__stories__/Custom';
4
5
  import { Default } from '@digigov/ui/app/QrCodeViewer/__stories__/Default';
5
- import TestVariant from '@digigov/ui/utils/TestVariant';
6
6
 
7
7
  test('renders the All QrCodeViewer variants', async ({ mount, page }) => {
8
8
  await mount(
9
- <div>
10
- <TestVariant title="Custom">
11
- <Custom />
12
- </TestVariant>
13
- <TestVariant title="Default">
14
- <Default />
15
- </TestVariant>
16
- </div>
17
- );
9
+
10
+ <div>
11
+ <TestVariant title="Custom">
12
+ <Custom />
13
+ </TestVariant>
14
+ <TestVariant title="Default">
15
+ <Default />
16
+ </TestVariant>
17
+ </div>
18
+ )
18
19
  await page.evaluate(() => document.fonts.ready);
19
20
 
20
- const screenshot = await page.screenshot({
21
- fullPage: true,
22
- animations: 'disabled',
23
- });
21
+ const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
24
22
  expect(screenshot).toMatchSnapshot();
25
23
  });
24
+
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
+ import TestVariant from '@digigov/ui/utils/TestVariant'
3
4
  import { Button } from '@digigov/ui/app/Skeleton/__stories__/Button';
4
5
  import { Circular } from '@digigov/ui/app/Skeleton/__stories__/Circular';
5
6
  import { Default } from '@digigov/ui/app/Skeleton/__stories__/Default';
@@ -9,45 +10,43 @@ import { SpecificWidthAndHeight } from '@digigov/ui/app/Skeleton/__stories__/Spe
9
10
  import { TextSizes } from '@digigov/ui/app/Skeleton/__stories__/TextSizes';
10
11
  import { UnderTypography } from '@digigov/ui/app/Skeleton/__stories__/UnderTypography';
11
12
  import { WithChildren } from '@digigov/ui/app/Skeleton/__stories__/WithChildren';
12
- import TestVariant from '@digigov/ui/utils/TestVariant';
13
13
 
14
14
  test('renders the All Skeleton variants', async ({ mount, page }) => {
15
15
  await mount(
16
- <div>
17
- <TestVariant title="Button">
18
- <Button />
19
- </TestVariant>
20
- <TestVariant title="Circular">
21
- <Circular />
22
- </TestVariant>
23
- <TestVariant title="Default">
24
- <Default />
25
- </TestVariant>
26
- <TestVariant title="NoAnimation">
27
- <NoAnimation />
28
- </TestVariant>
29
- <TestVariant title="Rectangular">
30
- <Rectangular />
31
- </TestVariant>
32
- <TestVariant title="SpecificWidthAndHeight">
33
- <SpecificWidthAndHeight />
34
- </TestVariant>
35
- <TestVariant title="TextSizes">
36
- <TextSizes />
37
- </TestVariant>
38
- <TestVariant title="UnderTypography">
39
- <UnderTypography />
40
- </TestVariant>
41
- <TestVariant title="WithChildren">
42
- <WithChildren />
43
- </TestVariant>
44
- </div>
45
- );
16
+
17
+ <div>
18
+ <TestVariant title="Button">
19
+ <Button />
20
+ </TestVariant>
21
+ <TestVariant title="Circular">
22
+ <Circular />
23
+ </TestVariant>
24
+ <TestVariant title="Default">
25
+ <Default />
26
+ </TestVariant>
27
+ <TestVariant title="NoAnimation">
28
+ <NoAnimation />
29
+ </TestVariant>
30
+ <TestVariant title="Rectangular">
31
+ <Rectangular />
32
+ </TestVariant>
33
+ <TestVariant title="SpecificWidthAndHeight">
34
+ <SpecificWidthAndHeight />
35
+ </TestVariant>
36
+ <TestVariant title="TextSizes">
37
+ <TextSizes />
38
+ </TestVariant>
39
+ <TestVariant title="UnderTypography">
40
+ <UnderTypography />
41
+ </TestVariant>
42
+ <TestVariant title="WithChildren">
43
+ <WithChildren />
44
+ </TestVariant>
45
+ </div>
46
+ )
46
47
  await page.evaluate(() => document.fonts.ready);
47
48
 
48
- const screenshot = await page.screenshot({
49
- fullPage: true,
50
- animations: 'disabled',
51
- });
49
+ const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
52
50
  expect(screenshot).toMatchSnapshot();
53
51
  });
52
+
@@ -1,33 +1,32 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
+ import TestVariant from '@digigov/ui/utils/TestVariant'
3
4
  import { Auto } from '@digigov/ui/content/Accordion/__stories__/Auto';
4
5
  import { Default } from '@digigov/ui/content/Accordion/__stories__/Default';
5
6
  import { WithHints } from '@digigov/ui/content/Accordion/__stories__/WithHints';
6
7
  import { WithHook } from '@digigov/ui/content/Accordion/__stories__/WithHook';
7
- import TestVariant from '@digigov/ui/utils/TestVariant';
8
8
 
9
9
  test('renders the All Accordion variants', async ({ mount, page }) => {
10
10
  await mount(
11
- <div>
12
- <TestVariant title="Auto">
13
- <Auto />
14
- </TestVariant>
15
- <TestVariant title="Default">
16
- <Default />
17
- </TestVariant>
18
- <TestVariant title="WithHints">
19
- <WithHints />
20
- </TestVariant>
21
- <TestVariant title="WithHook">
22
- <WithHook />
23
- </TestVariant>
24
- </div>
25
- );
11
+
12
+ <div>
13
+ <TestVariant title="Auto">
14
+ <Auto />
15
+ </TestVariant>
16
+ <TestVariant title="Default">
17
+ <Default />
18
+ </TestVariant>
19
+ <TestVariant title="WithHints">
20
+ <WithHints />
21
+ </TestVariant>
22
+ <TestVariant title="WithHook">
23
+ <WithHook />
24
+ </TestVariant>
25
+ </div>
26
+ )
26
27
  await page.evaluate(() => document.fonts.ready);
27
28
 
28
- const screenshot = await page.screenshot({
29
- fullPage: true,
30
- animations: 'disabled',
31
- });
29
+ const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
32
30
  expect(screenshot).toMatchSnapshot();
33
31
  });
32
+