@digigov/ui 2.0.0-b15d5d44 → 2.0.0-b19b7fe2

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 (86) hide show
  1. package/cjs/feedback/ErrorSummary/ErrorSummary.stories/index.js +0 -3
  2. package/cjs/feedback/ErrorSummary/ErrorSummary.stories.js.map +2 -2
  3. package/cjs/registry/index.js +62 -64
  4. package/cjs/registry.js.map +2 -2
  5. package/cjs/utils/hooks/useScreen/index.js +1 -1
  6. package/cjs/utils/hooks/useScreen.js.map +2 -2
  7. package/feedback/ErrorSummary/ErrorSummary.stories/index.js +0 -2
  8. package/feedback/ErrorSummary/ErrorSummary.stories.d.ts +0 -1
  9. package/feedback/ErrorSummary/ErrorSummary.stories.js.map +2 -2
  10. package/index.js +1 -1
  11. package/package.json +5 -5
  12. package/registry/index.js +62 -64
  13. package/src/app/BannerContainer/index.test.tsx +11 -10
  14. package/src/app/Footer/index.test.tsx +32 -31
  15. package/src/app/Header/index.test.tsx +23 -22
  16. package/src/app/Loader/index.test.tsx +14 -13
  17. package/src/app/Masthead/index.test.tsx +20 -19
  18. package/src/app/Modal/index.test.tsx +26 -25
  19. package/src/app/NotFound/index.test.tsx +11 -10
  20. package/src/app/Panel/index.test.tsx +11 -10
  21. package/src/app/PhaseBannerHeader/index.test.tsx +11 -10
  22. package/src/app/QrCodeViewer/index.test.tsx +14 -13
  23. package/src/app/Skeleton/index.test.tsx +35 -34
  24. package/src/content/Accordion/index.test.tsx +20 -19
  25. package/src/content/Blockquote/index.test.tsx +14 -13
  26. package/src/content/Card/index.test.tsx +41 -40
  27. package/src/content/Chip/index.test.tsx +23 -22
  28. package/src/content/Details/index.test.tsx +11 -10
  29. package/src/content/List/index.test.tsx +26 -25
  30. package/src/content/Markdown/index.test.tsx +11 -10
  31. package/src/content/SafeHTML/index.test.tsx +11 -10
  32. package/src/content/StepNav/index.test.tsx +23 -22
  33. package/src/content/SummaryList/index.test.tsx +32 -31
  34. package/src/content/Table/index.test.tsx +63 -62
  35. package/src/content/TaskList/index.test.tsx +14 -13
  36. package/src/content/Timeline/index.test.tsx +14 -13
  37. package/src/feedback/CopyToClipboard/index.test.tsx +17 -16
  38. package/src/feedback/ErrorSummary/ErrorSummary.stories.js +0 -1
  39. package/src/feedback/ErrorSummary/index.test.tsx +26 -29
  40. package/src/feedback/NotificationBanner/index.test.tsx +17 -16
  41. package/src/feedback/PhaseBanner/index.test.tsx +14 -13
  42. package/src/feedback/WarningText/index.test.tsx +17 -16
  43. package/src/form/AutoComplete/index.test.tsx +38 -37
  44. package/src/form/Button/index.test.tsx +44 -43
  45. package/src/form/Checkbox/index.test.tsx +38 -37
  46. package/src/form/DateInputContainer/index.test.tsx +23 -22
  47. package/src/form/ErrorMessage/index.test.tsx +17 -16
  48. package/src/form/FileUpload/index.test.tsx +14 -13
  49. package/src/form/RadioContainer/index.test.tsx +38 -37
  50. package/src/form/SearchContainer/index.test.tsx +11 -10
  51. package/src/form/SelectContainer/index.test.tsx +20 -19
  52. package/src/form/SingleCharacterInputs/index.test.tsx +24 -20
  53. package/src/form/TextArea/index.test.tsx +32 -31
  54. package/src/form/TextInput/index.test.tsx +38 -37
  55. package/src/layouts/Basic/index.test.tsx +20 -19
  56. package/src/layouts/Grid/index.test.tsx +17 -16
  57. package/src/layouts/Screen/index.test.tsx +20 -19
  58. package/src/layouts/Stack/index.test.tsx +26 -25
  59. package/src/navigation/BackLink/index.test.tsx +11 -10
  60. package/src/navigation/BackToTopLink/index.test.tsx +14 -13
  61. package/src/navigation/Breadcrumbs/index.test.tsx +23 -22
  62. package/src/navigation/Drawer/index.test.tsx +17 -16
  63. package/src/navigation/Dropdown/index.test.tsx +41 -40
  64. package/src/navigation/Link/index.test.tsx +29 -28
  65. package/src/navigation/NavList/index.test.tsx +35 -34
  66. package/src/navigation/Pagination/index.test.tsx +29 -28
  67. package/src/navigation/SkipLink/index.test.tsx +11 -10
  68. package/src/navigation/Tabs/index.test.tsx +20 -19
  69. package/src/registry.js +62 -64
  70. package/src/typography/CodeBlock/index.test.tsx +20 -19
  71. package/src/typography/Heading/index.test.tsx +11 -10
  72. package/src/typography/HeadingCaption/index.test.tsx +14 -13
  73. package/src/typography/Hint/index.test.tsx +14 -13
  74. package/src/typography/NormalText/index.test.tsx +20 -19
  75. package/src/typography/Paragraph/index.test.tsx +23 -22
  76. package/src/utils/VisuallyHidden/index.test.tsx +11 -10
  77. package/src/utils/hooks/useScreen.ts +3 -2
  78. package/utils/hooks/useScreen/index.js +1 -1
  79. package/utils/hooks/useScreen.js.map +2 -2
  80. package/cjs/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput/index.js +0 -49
  81. package/cjs/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput.js.map +0 -7
  82. package/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput/index.js +0 -16
  83. package/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput/package.json +0 -6
  84. package/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput.d.ts +0 -3
  85. package/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput.js.map +0 -7
  86. package/src/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput.tsx +0 -47
@@ -1,40 +1,41 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
- import TestVariant from '@digigov/ui/utils/TestVariant'
4
3
  import { BulletList } from '@digigov/ui/content/List/__stories__/BulletList';
5
4
  import { Default } from '@digigov/ui/content/List/__stories__/Default';
6
5
  import { HorizontalList } from '@digigov/ui/content/List/__stories__/HorizontalList';
7
6
  import { NestedBulletList } from '@digigov/ui/content/List/__stories__/NestedBulletList';
8
7
  import { NumberedList } from '@digigov/ui/content/List/__stories__/NumberedList';
9
8
  import { WithExtraSpace } from '@digigov/ui/content/List/__stories__/WithExtraSpace';
9
+ import TestVariant from '@digigov/ui/utils/TestVariant';
10
10
 
11
11
  test('renders the All List variants', async ({ mount, page }) => {
12
12
  await mount(
13
-
14
- <div>
15
- <TestVariant title="BulletList">
16
- <BulletList />
17
- </TestVariant>
18
- <TestVariant title="Default">
19
- <Default />
20
- </TestVariant>
21
- <TestVariant title="HorizontalList">
22
- <HorizontalList />
23
- </TestVariant>
24
- <TestVariant title="NestedBulletList">
25
- <NestedBulletList />
26
- </TestVariant>
27
- <TestVariant title="NumberedList">
28
- <NumberedList />
29
- </TestVariant>
30
- <TestVariant title="WithExtraSpace">
31
- <WithExtraSpace />
32
- </TestVariant>
33
- </div>
34
- )
13
+ <div>
14
+ <TestVariant title="BulletList">
15
+ <BulletList />
16
+ </TestVariant>
17
+ <TestVariant title="Default">
18
+ <Default />
19
+ </TestVariant>
20
+ <TestVariant title="HorizontalList">
21
+ <HorizontalList />
22
+ </TestVariant>
23
+ <TestVariant title="NestedBulletList">
24
+ <NestedBulletList />
25
+ </TestVariant>
26
+ <TestVariant title="NumberedList">
27
+ <NumberedList />
28
+ </TestVariant>
29
+ <TestVariant title="WithExtraSpace">
30
+ <WithExtraSpace />
31
+ </TestVariant>
32
+ </div>
33
+ );
35
34
  await page.evaluate(() => document.fonts.ready);
36
35
 
37
- const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
36
+ const screenshot = await page.screenshot({
37
+ fullPage: true,
38
+ animations: 'disabled',
39
+ });
38
40
  expect(screenshot).toMatchSnapshot();
39
41
  });
40
-
@@ -1,20 +1,21 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
- import TestVariant from '@digigov/ui/utils/TestVariant'
4
3
  import { Default } from '@digigov/ui/content/Markdown/__stories__/Default';
4
+ import TestVariant from '@digigov/ui/utils/TestVariant';
5
5
 
6
6
  test('renders the All Markdown variants', async ({ mount, page }) => {
7
7
  await mount(
8
-
9
- <div>
10
- <TestVariant title="Default">
11
- <Default />
12
- </TestVariant>
13
- </div>
14
- )
8
+ <div>
9
+ <TestVariant title="Default">
10
+ <Default />
11
+ </TestVariant>
12
+ </div>
13
+ );
15
14
  await page.evaluate(() => document.fonts.ready);
16
15
 
17
- const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
16
+ const screenshot = await page.screenshot({
17
+ fullPage: true,
18
+ animations: 'disabled',
19
+ });
18
20
  expect(screenshot).toMatchSnapshot();
19
21
  });
20
-
@@ -1,20 +1,21 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
- import TestVariant from '@digigov/ui/utils/TestVariant'
4
3
  import { Default } from '@digigov/ui/content/SafeHTML/__stories__/Default';
4
+ import TestVariant from '@digigov/ui/utils/TestVariant';
5
5
 
6
6
  test('renders the All SafeHTML variants', async ({ mount, page }) => {
7
7
  await mount(
8
-
9
- <div>
10
- <TestVariant title="Default">
11
- <Default />
12
- </TestVariant>
13
- </div>
14
- )
8
+ <div>
9
+ <TestVariant title="Default">
10
+ <Default />
11
+ </TestVariant>
12
+ </div>
13
+ );
15
14
  await page.evaluate(() => document.fonts.ready);
16
15
 
17
- const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
16
+ const screenshot = await page.screenshot({
17
+ fullPage: true,
18
+ animations: 'disabled',
19
+ });
18
20
  expect(screenshot).toMatchSnapshot();
19
21
  });
20
-
@@ -1,36 +1,37 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
- import TestVariant from '@digigov/ui/utils/TestVariant'
4
3
  import { Auto } from '@digigov/ui/content/StepNav/__stories__/Auto';
5
4
  import { Default } from '@digigov/ui/content/StepNav/__stories__/Default';
6
5
  import { Dense } from '@digigov/ui/content/StepNav/__stories__/Dense';
7
6
  import { WithHints } from '@digigov/ui/content/StepNav/__stories__/WithHints';
8
7
  import { WithHook } from '@digigov/ui/content/StepNav/__stories__/WithHook';
8
+ import TestVariant from '@digigov/ui/utils/TestVariant';
9
9
 
10
10
  test('renders the All StepNav variants', async ({ mount, page }) => {
11
11
  await mount(
12
-
13
- <div>
14
- <TestVariant title="Auto">
15
- <Auto />
16
- </TestVariant>
17
- <TestVariant title="Default">
18
- <Default />
19
- </TestVariant>
20
- <TestVariant title="Dense">
21
- <Dense />
22
- </TestVariant>
23
- <TestVariant title="WithHints">
24
- <WithHints />
25
- </TestVariant>
26
- <TestVariant title="WithHook">
27
- <WithHook />
28
- </TestVariant>
29
- </div>
30
- )
12
+ <div>
13
+ <TestVariant title="Auto">
14
+ <Auto />
15
+ </TestVariant>
16
+ <TestVariant title="Default">
17
+ <Default />
18
+ </TestVariant>
19
+ <TestVariant title="Dense">
20
+ <Dense />
21
+ </TestVariant>
22
+ <TestVariant title="WithHints">
23
+ <WithHints />
24
+ </TestVariant>
25
+ <TestVariant title="WithHook">
26
+ <WithHook />
27
+ </TestVariant>
28
+ </div>
29
+ );
31
30
  await page.evaluate(() => document.fonts.ready);
32
31
 
33
- const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
32
+ const screenshot = await page.screenshot({
33
+ fullPage: true,
34
+ animations: 'disabled',
35
+ });
34
36
  expect(screenshot).toMatchSnapshot();
35
37
  });
36
-
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
- import TestVariant from '@digigov/ui/utils/TestVariant'
4
3
  import { Default } from '@digigov/ui/content/SummaryList/__stories__/Default';
5
4
  import { RowVariations } from '@digigov/ui/content/SummaryList/__stories__/RowVariations';
6
5
  import { SummaryListExample } from '@digigov/ui/content/SummaryList/__stories__/SummaryListExample';
@@ -9,40 +8,42 @@ import { WithKeyAndAction } from '@digigov/ui/content/SummaryList/__stories__/Wi
9
8
  import { WithNoLastBorder } from '@digigov/ui/content/SummaryList/__stories__/WithNoLastBorder';
10
9
  import { WithoutActions } from '@digigov/ui/content/SummaryList/__stories__/WithoutActions';
11
10
  import { WithoutBorders } from '@digigov/ui/content/SummaryList/__stories__/WithoutBorders';
11
+ import TestVariant from '@digigov/ui/utils/TestVariant';
12
12
 
13
13
  test('renders the All SummaryList variants', async ({ mount, page }) => {
14
14
  await mount(
15
-
16
- <div>
17
- <TestVariant title="Default">
18
- <Default />
19
- </TestVariant>
20
- <TestVariant title="RowVariations">
21
- <RowVariations />
22
- </TestVariant>
23
- <TestVariant title="SummaryListExample">
24
- <SummaryListExample />
25
- </TestVariant>
26
- <TestVariant title="WithActions">
27
- <WithActions />
28
- </TestVariant>
29
- <TestVariant title="WithKeyAndAction">
30
- <WithKeyAndAction />
31
- </TestVariant>
32
- <TestVariant title="WithNoLastBorder">
33
- <WithNoLastBorder />
34
- </TestVariant>
35
- <TestVariant title="WithoutActions">
36
- <WithoutActions />
37
- </TestVariant>
38
- <TestVariant title="WithoutBorders">
39
- <WithoutBorders />
40
- </TestVariant>
41
- </div>
42
- )
15
+ <div>
16
+ <TestVariant title="Default">
17
+ <Default />
18
+ </TestVariant>
19
+ <TestVariant title="RowVariations">
20
+ <RowVariations />
21
+ </TestVariant>
22
+ <TestVariant title="SummaryListExample">
23
+ <SummaryListExample />
24
+ </TestVariant>
25
+ <TestVariant title="WithActions">
26
+ <WithActions />
27
+ </TestVariant>
28
+ <TestVariant title="WithKeyAndAction">
29
+ <WithKeyAndAction />
30
+ </TestVariant>
31
+ <TestVariant title="WithNoLastBorder">
32
+ <WithNoLastBorder />
33
+ </TestVariant>
34
+ <TestVariant title="WithoutActions">
35
+ <WithoutActions />
36
+ </TestVariant>
37
+ <TestVariant title="WithoutBorders">
38
+ <WithoutBorders />
39
+ </TestVariant>
40
+ </div>
41
+ );
43
42
  await page.evaluate(() => document.fonts.ready);
44
43
 
45
- const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
44
+ const screenshot = await page.screenshot({
45
+ fullPage: true,
46
+ animations: 'disabled',
47
+ });
46
48
  expect(screenshot).toMatchSnapshot();
47
49
  });
48
-
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
- import TestVariant from '@digigov/ui/utils/TestVariant'
4
3
  import { DarkVariant } from '@digigov/ui/content/Table/__stories__/DarkVariant';
5
4
  import { DarkVariantWithVerticalHeaders } from '@digigov/ui/content/Table/__stories__/DarkVariantWithVerticalHeaders';
6
5
  import { Default } from '@digigov/ui/content/Table/__stories__/Default';
@@ -19,73 +18,75 @@ import { WithFloatingScroll } from '@digigov/ui/content/Table/__stories__/WithFl
19
18
  import { WithLoader } from '@digigov/ui/content/Table/__stories__/WithLoader';
20
19
  import { WithSortFilters } from '@digigov/ui/content/Table/__stories__/WithSortFilters';
21
20
  import { ZebraProp } from '@digigov/ui/content/Table/__stories__/ZebraProp';
21
+ import TestVariant from '@digigov/ui/utils/TestVariant';
22
22
  const SCREENSHOT_DELAY = 2_000;
23
- const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
23
+ const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
24
24
 
25
25
  test('renders the All Table variants', async ({ mount, page }) => {
26
26
  await mount(
27
-
28
- <div>
29
- <TestVariant title="DarkVariant">
30
- <DarkVariant />
31
- </TestVariant>
32
- <TestVariant title="DarkVariantWithVerticalHeaders">
33
- <DarkVariantWithVerticalHeaders />
34
- </TestVariant>
35
- <TestVariant title="Default">
36
- <Default />
37
- </TestVariant>
38
- <TestVariant title="DefinedWidth">
39
- <DefinedWidth />
40
- </TestVariant>
41
- <TestVariant title="Dense">
42
- <Dense />
43
- </TestVariant>
44
- <TestVariant title="Full">
45
- <Full />
46
- </TestVariant>
47
- <TestVariant title="MultipleProps">
48
- <MultipleProps />
49
- </TestVariant>
50
- <TestVariant title="NoData">
51
- <NoData />
52
- </TestVariant>
53
- <TestVariant title="NumericDataType">
54
- <NumericDataType />
55
- </TestVariant>
56
- <TestVariant title="RowColors">
57
- <RowColors />
58
- </TestVariant>
59
- <TestVariant title="Stacked">
60
- <Stacked />
61
- </TestVariant>
62
- <TestVariant title="TableCaptions">
63
- <TableCaptions />
64
- </TestVariant>
65
- <TestVariant title="VerticalBorders">
66
- <VerticalBorders />
67
- </TestVariant>
68
- <TestVariant title="VerticalHeaders">
69
- <VerticalHeaders />
70
- </TestVariant>
71
- <TestVariant title="WithFloatingScroll">
72
- <WithFloatingScroll />
73
- </TestVariant>
74
- <TestVariant title="WithLoader">
75
- <WithLoader />
76
- </TestVariant>
77
- <TestVariant title="WithSortFilters">
78
- <WithSortFilters />
79
- </TestVariant>
80
- <TestVariant title="ZebraProp">
81
- <ZebraProp />
82
- </TestVariant>
83
- </div>
84
- )
27
+ <div>
28
+ <TestVariant title="DarkVariant">
29
+ <DarkVariant />
30
+ </TestVariant>
31
+ <TestVariant title="DarkVariantWithVerticalHeaders">
32
+ <DarkVariantWithVerticalHeaders />
33
+ </TestVariant>
34
+ <TestVariant title="Default">
35
+ <Default />
36
+ </TestVariant>
37
+ <TestVariant title="DefinedWidth">
38
+ <DefinedWidth />
39
+ </TestVariant>
40
+ <TestVariant title="Dense">
41
+ <Dense />
42
+ </TestVariant>
43
+ <TestVariant title="Full">
44
+ <Full />
45
+ </TestVariant>
46
+ <TestVariant title="MultipleProps">
47
+ <MultipleProps />
48
+ </TestVariant>
49
+ <TestVariant title="NoData">
50
+ <NoData />
51
+ </TestVariant>
52
+ <TestVariant title="NumericDataType">
53
+ <NumericDataType />
54
+ </TestVariant>
55
+ <TestVariant title="RowColors">
56
+ <RowColors />
57
+ </TestVariant>
58
+ <TestVariant title="Stacked">
59
+ <Stacked />
60
+ </TestVariant>
61
+ <TestVariant title="TableCaptions">
62
+ <TableCaptions />
63
+ </TestVariant>
64
+ <TestVariant title="VerticalBorders">
65
+ <VerticalBorders />
66
+ </TestVariant>
67
+ <TestVariant title="VerticalHeaders">
68
+ <VerticalHeaders />
69
+ </TestVariant>
70
+ <TestVariant title="WithFloatingScroll">
71
+ <WithFloatingScroll />
72
+ </TestVariant>
73
+ <TestVariant title="WithLoader">
74
+ <WithLoader />
75
+ </TestVariant>
76
+ <TestVariant title="WithSortFilters">
77
+ <WithSortFilters />
78
+ </TestVariant>
79
+ <TestVariant title="ZebraProp">
80
+ <ZebraProp />
81
+ </TestVariant>
82
+ </div>
83
+ );
85
84
  await page.evaluate(() => document.fonts.ready);
86
85
  await delay(SCREENSHOT_DELAY);
87
86
 
88
- const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
87
+ const screenshot = await page.screenshot({
88
+ fullPage: true,
89
+ animations: 'disabled',
90
+ });
89
91
  expect(screenshot).toMatchSnapshot();
90
92
  });
91
-
@@ -1,24 +1,25 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
- import TestVariant from '@digigov/ui/utils/TestVariant'
4
3
  import { Default } from '@digigov/ui/content/TaskList/__stories__/Default';
5
4
  import { Dense } from '@digigov/ui/content/TaskList/__stories__/Dense';
5
+ import TestVariant from '@digigov/ui/utils/TestVariant';
6
6
 
7
7
  test('renders the All TaskList variants', async ({ mount, page }) => {
8
8
  await mount(
9
-
10
- <div>
11
- <TestVariant title="Default">
12
- <Default />
13
- </TestVariant>
14
- <TestVariant title="Dense">
15
- <Dense />
16
- </TestVariant>
17
- </div>
18
- )
9
+ <div>
10
+ <TestVariant title="Default">
11
+ <Default />
12
+ </TestVariant>
13
+ <TestVariant title="Dense">
14
+ <Dense />
15
+ </TestVariant>
16
+ </div>
17
+ );
19
18
  await page.evaluate(() => document.fonts.ready);
20
19
 
21
- const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
20
+ const screenshot = await page.screenshot({
21
+ fullPage: true,
22
+ animations: 'disabled',
23
+ });
22
24
  expect(screenshot).toMatchSnapshot();
23
25
  });
24
-
@@ -1,24 +1,25 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
- import TestVariant from '@digigov/ui/utils/TestVariant'
4
3
  import { Default } from '@digigov/ui/content/Timeline/__stories__/Default';
5
4
  import { Dense } from '@digigov/ui/content/Timeline/__stories__/Dense';
5
+ import TestVariant from '@digigov/ui/utils/TestVariant';
6
6
 
7
7
  test('renders the All Timeline variants', async ({ mount, page }) => {
8
8
  await mount(
9
-
10
- <div>
11
- <TestVariant title="Default">
12
- <Default />
13
- </TestVariant>
14
- <TestVariant title="Dense">
15
- <Dense />
16
- </TestVariant>
17
- </div>
18
- )
9
+ <div>
10
+ <TestVariant title="Default">
11
+ <Default />
12
+ </TestVariant>
13
+ <TestVariant title="Dense">
14
+ <Dense />
15
+ </TestVariant>
16
+ </div>
17
+ );
19
18
  await page.evaluate(() => document.fonts.ready);
20
19
 
21
- const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
20
+ const screenshot = await page.screenshot({
21
+ fullPage: true,
22
+ animations: 'disabled',
23
+ });
22
24
  expect(screenshot).toMatchSnapshot();
23
25
  });
24
-
@@ -1,28 +1,29 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
- import TestVariant from '@digigov/ui/utils/TestVariant'
4
3
  import { Banner } from '@digigov/ui/feedback/CopyToClipboard/__stories__/Banner';
5
4
  import { Default } from '@digigov/ui/feedback/CopyToClipboard/__stories__/Default';
6
5
  import { Dense } from '@digigov/ui/feedback/CopyToClipboard/__stories__/Dense';
6
+ import TestVariant from '@digigov/ui/utils/TestVariant';
7
7
 
8
8
  test('renders the All CopyToClipboard variants', async ({ mount, page }) => {
9
9
  await mount(
10
-
11
- <div>
12
- <TestVariant title="Banner">
13
- <Banner />
14
- </TestVariant>
15
- <TestVariant title="Default">
16
- <Default />
17
- </TestVariant>
18
- <TestVariant title="Dense">
19
- <Dense />
20
- </TestVariant>
21
- </div>
22
- )
10
+ <div>
11
+ <TestVariant title="Banner">
12
+ <Banner />
13
+ </TestVariant>
14
+ <TestVariant title="Default">
15
+ <Default />
16
+ </TestVariant>
17
+ <TestVariant title="Dense">
18
+ <Dense />
19
+ </TestVariant>
20
+ </div>
21
+ );
23
22
  await page.evaluate(() => document.fonts.ready);
24
23
 
25
- const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
24
+ const screenshot = await page.screenshot({
25
+ fullPage: true,
26
+ animations: 'disabled',
27
+ });
26
28
  expect(screenshot).toMatchSnapshot();
27
29
  });
28
-
@@ -12,5 +12,4 @@ export { Dense } from '@digigov/ui/feedback/ErrorSummary/__stories__/Dense';
12
12
  export { LinkedToInput } from '@digigov/ui/feedback/ErrorSummary/__stories__/LinkedToInput';
13
13
  export { LinkedToField } from '@digigov/ui/feedback/ErrorSummary/__stories__/LinkedToField';
14
14
  export { LinkedToCheckbox } from '@digigov/ui/feedback/ErrorSummary/__stories__/LinkedToCheckbox';
15
- export { ErrorGroupLinkedToInput } from '@digigov/ui/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput';
16
15
  export { WithBackLinkAndButton } from '@digigov/ui/feedback/ErrorSummary/__stories__/WithBackLinkAndButton';
@@ -1,44 +1,41 @@
1
1
  import React from 'react';
2
2
  import { test, expect } from '@playwright/experimental-ct-react';
3
- import TestVariant from '@digigov/ui/utils/TestVariant'
4
3
  import { Default } from '@digigov/ui/feedback/ErrorSummary/__stories__/Default';
5
4
  import { Dense } from '@digigov/ui/feedback/ErrorSummary/__stories__/Dense';
6
- import { ErrorGroupLinkedToInput } from '@digigov/ui/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput';
7
5
  import { LinkedToCheckbox } from '@digigov/ui/feedback/ErrorSummary/__stories__/LinkedToCheckbox';
8
6
  import { LinkedToField } from '@digigov/ui/feedback/ErrorSummary/__stories__/LinkedToField';
9
7
  import { LinkedToInput } from '@digigov/ui/feedback/ErrorSummary/__stories__/LinkedToInput';
10
8
  import { WithBackLinkAndButton } from '@digigov/ui/feedback/ErrorSummary/__stories__/WithBackLinkAndButton';
9
+ import TestVariant from '@digigov/ui/utils/TestVariant';
11
10
 
12
11
  test('renders the All ErrorSummary variants', async ({ mount, page }) => {
13
12
  await mount(
14
-
15
- <div>
16
- <TestVariant title="Default">
17
- <Default />
18
- </TestVariant>
19
- <TestVariant title="Dense">
20
- <Dense />
21
- </TestVariant>
22
- <TestVariant title="ErrorGroupLinkedToInput">
23
- <ErrorGroupLinkedToInput />
24
- </TestVariant>
25
- <TestVariant title="LinkedToCheckbox">
26
- <LinkedToCheckbox />
27
- </TestVariant>
28
- <TestVariant title="LinkedToField">
29
- <LinkedToField />
30
- </TestVariant>
31
- <TestVariant title="LinkedToInput">
32
- <LinkedToInput />
33
- </TestVariant>
34
- <TestVariant title="WithBackLinkAndButton">
35
- <WithBackLinkAndButton />
36
- </TestVariant>
37
- </div>
38
- )
13
+ <div>
14
+ <TestVariant title="Default">
15
+ <Default />
16
+ </TestVariant>
17
+ <TestVariant title="Dense">
18
+ <Dense />
19
+ </TestVariant>
20
+ <TestVariant title="LinkedToCheckbox">
21
+ <LinkedToCheckbox />
22
+ </TestVariant>
23
+ <TestVariant title="LinkedToField">
24
+ <LinkedToField />
25
+ </TestVariant>
26
+ <TestVariant title="LinkedToInput">
27
+ <LinkedToInput />
28
+ </TestVariant>
29
+ <TestVariant title="WithBackLinkAndButton">
30
+ <WithBackLinkAndButton />
31
+ </TestVariant>
32
+ </div>
33
+ );
39
34
  await page.evaluate(() => document.fonts.ready);
40
35
 
41
- const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
36
+ const screenshot = await page.screenshot({
37
+ fullPage: true,
38
+ animations: 'disabled',
39
+ });
42
40
  expect(screenshot).toMatchSnapshot();
43
41
  });
44
-