@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,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/navigation/BackLink/__stories__/Default';
4
+ import TestVariant from '@digigov/ui/utils/TestVariant';
5
5
 
6
6
  test('renders the All BackLink 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,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/navigation/BackToTopLink/__stories__/Default';
5
4
  import { InMain } from '@digigov/ui/navigation/BackToTopLink/__stories__/InMain';
5
+ import TestVariant from '@digigov/ui/utils/TestVariant';
6
6
 
7
7
  test('renders the All BackToTopLink variants', async ({ mount, page }) => {
8
8
  await mount(
9
-
10
- <div>
11
- <TestVariant title="Default">
12
- <Default />
13
- </TestVariant>
14
- <TestVariant title="InMain">
15
- <InMain />
16
- </TestVariant>
17
- </div>
18
- )
9
+ <div>
10
+ <TestVariant title="Default">
11
+ <Default />
12
+ </TestVariant>
13
+ <TestVariant title="InMain">
14
+ <InMain />
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,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/navigation/Breadcrumbs/__stories__/Auto';
5
4
  import { Default } from '@digigov/ui/navigation/Breadcrumbs/__stories__/Default';
6
5
  import { WithHook } from '@digigov/ui/navigation/Breadcrumbs/__stories__/WithHook';
7
6
  import { WithoutCurrentPage } from '@digigov/ui/navigation/Breadcrumbs/__stories__/WithoutCurrentPage';
8
7
  import { WithProvider } from '@digigov/ui/navigation/Breadcrumbs/__stories__/WithProvider';
8
+ import TestVariant from '@digigov/ui/utils/TestVariant';
9
9
 
10
10
  test('renders the All Breadcrumbs 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="WithHook">
21
- <WithHook />
22
- </TestVariant>
23
- <TestVariant title="WithoutCurrentPage">
24
- <WithoutCurrentPage />
25
- </TestVariant>
26
- <TestVariant title="WithProvider">
27
- <WithProvider />
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="WithHook">
20
+ <WithHook />
21
+ </TestVariant>
22
+ <TestVariant title="WithoutCurrentPage">
23
+ <WithoutCurrentPage />
24
+ </TestVariant>
25
+ <TestVariant title="WithProvider">
26
+ <WithProvider />
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,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 { Auto } from '@digigov/ui/navigation/Drawer/__stories__/Auto';
5
4
  import { Default } from '@digigov/ui/navigation/Drawer/__stories__/Default';
6
5
  import { WithHook } from '@digigov/ui/navigation/Drawer/__stories__/WithHook';
6
+ import TestVariant from '@digigov/ui/utils/TestVariant';
7
7
 
8
8
  test('renders the All Drawer variants', async ({ mount, page }) => {
9
9
  await mount(
10
-
11
- <div>
12
- <TestVariant title="Auto">
13
- <Auto />
14
- </TestVariant>
15
- <TestVariant title="Default">
16
- <Default />
17
- </TestVariant>
18
- <TestVariant title="WithHook">
19
- <WithHook />
20
- </TestVariant>
21
- </div>
22
- )
10
+ <div>
11
+ <TestVariant title="Auto">
12
+ <Auto />
13
+ </TestVariant>
14
+ <TestVariant title="Default">
15
+ <Default />
16
+ </TestVariant>
17
+ <TestVariant title="WithHook">
18
+ <WithHook />
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
-
@@ -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 { AlignRight } from '@digigov/ui/navigation/Dropdown/__stories__/AlignRight';
5
4
  import { ContentPosition } from '@digigov/ui/navigation/Dropdown/__stories__/ContentPosition';
6
5
  import { Default } from '@digigov/ui/navigation/Dropdown/__stories__/Default';
@@ -12,49 +11,51 @@ import { Secondary } from '@digigov/ui/navigation/Dropdown/__stories__/Secondary
12
11
  import { VariantLink } from '@digigov/ui/navigation/Dropdown/__stories__/VariantLink';
13
12
  import { Warning } from '@digigov/ui/navigation/Dropdown/__stories__/Warning';
14
13
  import { WithIcons } from '@digigov/ui/navigation/Dropdown/__stories__/WithIcons';
14
+ import TestVariant from '@digigov/ui/utils/TestVariant';
15
15
 
16
16
  test('renders the All Dropdown variants', async ({ mount, page }) => {
17
17
  await mount(
18
-
19
- <div>
20
- <TestVariant title="AlignRight">
21
- <AlignRight />
22
- </TestVariant>
23
- <TestVariant title="ContentPosition">
24
- <ContentPosition />
25
- </TestVariant>
26
- <TestVariant title="Default">
27
- <Default />
28
- </TestVariant>
29
- <TestVariant title="Dense">
30
- <Dense />
31
- </TestVariant>
32
- <TestVariant title="Disabled">
33
- <Disabled />
34
- </TestVariant>
35
- <TestVariant title="PlacementTop">
36
- <PlacementTop />
37
- </TestVariant>
38
- <TestVariant title="ScrollableContent">
39
- <ScrollableContent />
40
- </TestVariant>
41
- <TestVariant title="Secondary">
42
- <Secondary />
43
- </TestVariant>
44
- <TestVariant title="VariantLink">
45
- <VariantLink />
46
- </TestVariant>
47
- <TestVariant title="Warning">
48
- <Warning />
49
- </TestVariant>
50
- <TestVariant title="WithIcons">
51
- <WithIcons />
52
- </TestVariant>
53
- </div>
54
- )
18
+ <div>
19
+ <TestVariant title="AlignRight">
20
+ <AlignRight />
21
+ </TestVariant>
22
+ <TestVariant title="ContentPosition">
23
+ <ContentPosition />
24
+ </TestVariant>
25
+ <TestVariant title="Default">
26
+ <Default />
27
+ </TestVariant>
28
+ <TestVariant title="Dense">
29
+ <Dense />
30
+ </TestVariant>
31
+ <TestVariant title="Disabled">
32
+ <Disabled />
33
+ </TestVariant>
34
+ <TestVariant title="PlacementTop">
35
+ <PlacementTop />
36
+ </TestVariant>
37
+ <TestVariant title="ScrollableContent">
38
+ <ScrollableContent />
39
+ </TestVariant>
40
+ <TestVariant title="Secondary">
41
+ <Secondary />
42
+ </TestVariant>
43
+ <TestVariant title="VariantLink">
44
+ <VariantLink />
45
+ </TestVariant>
46
+ <TestVariant title="Warning">
47
+ <Warning />
48
+ </TestVariant>
49
+ <TestVariant title="WithIcons">
50
+ <WithIcons />
51
+ </TestVariant>
52
+ </div>
53
+ );
55
54
  await page.evaluate(() => document.fonts.ready);
56
55
 
57
- const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
56
+ const screenshot = await page.screenshot({
57
+ fullPage: true,
58
+ animations: 'disabled',
59
+ });
58
60
  expect(screenshot).toMatchSnapshot();
59
61
  });
60
-
@@ -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 { DarkBackground } from '@digigov/ui/navigation/Link/__stories__/DarkBackground';
5
4
  import { DarkBackgroundNoUnderline } from '@digigov/ui/navigation/Link/__stories__/DarkBackgroundNoUnderline';
6
5
  import { Default } from '@digigov/ui/navigation/Link/__stories__/Default';
@@ -8,37 +7,39 @@ import { ExternalLink } from '@digigov/ui/navigation/Link/__stories__/ExternalLi
8
7
  import { NoUnderline } from '@digigov/ui/navigation/Link/__stories__/NoUnderline';
9
8
  import { OpensInNewTab } from '@digigov/ui/navigation/Link/__stories__/OpensInNewTab';
10
9
  import { WithProvider } from '@digigov/ui/navigation/Link/__stories__/WithProvider';
10
+ import TestVariant from '@digigov/ui/utils/TestVariant';
11
11
 
12
12
  test('renders the All Link variants', async ({ mount, page }) => {
13
13
  await mount(
14
-
15
- <div>
16
- <TestVariant title="DarkBackground">
17
- <DarkBackground />
18
- </TestVariant>
19
- <TestVariant title="DarkBackgroundNoUnderline">
20
- <DarkBackgroundNoUnderline />
21
- </TestVariant>
22
- <TestVariant title="Default">
23
- <Default />
24
- </TestVariant>
25
- <TestVariant title="ExternalLink">
26
- <ExternalLink />
27
- </TestVariant>
28
- <TestVariant title="NoUnderline">
29
- <NoUnderline />
30
- </TestVariant>
31
- <TestVariant title="OpensInNewTab">
32
- <OpensInNewTab />
33
- </TestVariant>
34
- <TestVariant title="WithProvider">
35
- <WithProvider />
36
- </TestVariant>
37
- </div>
38
- )
14
+ <div>
15
+ <TestVariant title="DarkBackground">
16
+ <DarkBackground />
17
+ </TestVariant>
18
+ <TestVariant title="DarkBackgroundNoUnderline">
19
+ <DarkBackgroundNoUnderline />
20
+ </TestVariant>
21
+ <TestVariant title="Default">
22
+ <Default />
23
+ </TestVariant>
24
+ <TestVariant title="ExternalLink">
25
+ <ExternalLink />
26
+ </TestVariant>
27
+ <TestVariant title="NoUnderline">
28
+ <NoUnderline />
29
+ </TestVariant>
30
+ <TestVariant title="OpensInNewTab">
31
+ <OpensInNewTab />
32
+ </TestVariant>
33
+ <TestVariant title="WithProvider">
34
+ <WithProvider />
35
+ </TestVariant>
36
+ </div>
37
+ );
39
38
  await page.evaluate(() => document.fonts.ready);
40
39
 
41
- const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
40
+ const screenshot = await page.screenshot({
41
+ fullPage: true,
42
+ animations: 'disabled',
43
+ });
42
44
  expect(screenshot).toMatchSnapshot();
43
45
  });
44
-
@@ -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/navigation/NavList/__stories__/Default';
5
4
  import { HorizontalWithDrawer } from '@digigov/ui/navigation/NavList/__stories__/HorizontalWithDrawer';
6
5
  import { HorizontalWithoutDrawer } from '@digigov/ui/navigation/NavList/__stories__/HorizontalWithoutDrawer';
@@ -10,43 +9,45 @@ import { UsingNavListAuto } from '@digigov/ui/navigation/NavList/__stories__/Usi
10
9
  import { Vertical } from '@digigov/ui/navigation/NavList/__stories__/Vertical';
11
10
  import { VerticalWithoutDrawer } from '@digigov/ui/navigation/NavList/__stories__/VerticalWithoutDrawer';
12
11
  import { WithBadge } from '@digigov/ui/navigation/NavList/__stories__/WithBadge';
12
+ import TestVariant from '@digigov/ui/utils/TestVariant';
13
13
 
14
14
  test('renders the All NavList variants', async ({ mount, page }) => {
15
15
  await mount(
16
-
17
- <div>
18
- <TestVariant title="Default">
19
- <Default />
20
- </TestVariant>
21
- <TestVariant title="HorizontalWithDrawer">
22
- <HorizontalWithDrawer />
23
- </TestVariant>
24
- <TestVariant title="HorizontalWithoutDrawer">
25
- <HorizontalWithoutDrawer />
26
- </TestVariant>
27
- <TestVariant title="NavListWithoutNav">
28
- <NavListWithoutNav />
29
- </TestVariant>
30
- <TestVariant title="UsingHeaderButton">
31
- <UsingHeaderButton />
32
- </TestVariant>
33
- <TestVariant title="UsingNavListAuto">
34
- <UsingNavListAuto />
35
- </TestVariant>
36
- <TestVariant title="Vertical">
37
- <Vertical />
38
- </TestVariant>
39
- <TestVariant title="VerticalWithoutDrawer">
40
- <VerticalWithoutDrawer />
41
- </TestVariant>
42
- <TestVariant title="WithBadge">
43
- <WithBadge />
44
- </TestVariant>
45
- </div>
46
- )
16
+ <div>
17
+ <TestVariant title="Default">
18
+ <Default />
19
+ </TestVariant>
20
+ <TestVariant title="HorizontalWithDrawer">
21
+ <HorizontalWithDrawer />
22
+ </TestVariant>
23
+ <TestVariant title="HorizontalWithoutDrawer">
24
+ <HorizontalWithoutDrawer />
25
+ </TestVariant>
26
+ <TestVariant title="NavListWithoutNav">
27
+ <NavListWithoutNav />
28
+ </TestVariant>
29
+ <TestVariant title="UsingHeaderButton">
30
+ <UsingHeaderButton />
31
+ </TestVariant>
32
+ <TestVariant title="UsingNavListAuto">
33
+ <UsingNavListAuto />
34
+ </TestVariant>
35
+ <TestVariant title="Vertical">
36
+ <Vertical />
37
+ </TestVariant>
38
+ <TestVariant title="VerticalWithoutDrawer">
39
+ <VerticalWithoutDrawer />
40
+ </TestVariant>
41
+ <TestVariant title="WithBadge">
42
+ <WithBadge />
43
+ </TestVariant>
44
+ </div>
45
+ );
47
46
  await page.evaluate(() => document.fonts.ready);
48
47
 
49
- const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
48
+ const screenshot = await page.screenshot({
49
+ fullPage: true,
50
+ animations: 'disabled',
51
+ });
50
52
  expect(screenshot).toMatchSnapshot();
51
53
  });
52
-
@@ -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 { Auto } from '@digigov/ui/navigation/Pagination/__stories__/Auto';
5
4
  import { Default } from '@digigov/ui/navigation/Pagination/__stories__/Default';
6
5
  import { PaginationSmall } from '@digigov/ui/navigation/Pagination/__stories__/PaginationSmall';
@@ -8,37 +7,39 @@ import { PaginationWithSmallFont } from '@digigov/ui/navigation/Pagination/__sto
8
7
  import { WithHook } from '@digigov/ui/navigation/Pagination/__stories__/WithHook';
9
8
  import { WithInactiveValues } from '@digigov/ui/navigation/Pagination/__stories__/WithInactiveValues';
10
9
  import { WithResultsPerPage } from '@digigov/ui/navigation/Pagination/__stories__/WithResultsPerPage';
10
+ import TestVariant from '@digigov/ui/utils/TestVariant';
11
11
 
12
12
  test('renders the All Pagination variants', async ({ mount, page }) => {
13
13
  await mount(
14
-
15
- <div>
16
- <TestVariant title="Auto">
17
- <Auto />
18
- </TestVariant>
19
- <TestVariant title="Default">
20
- <Default />
21
- </TestVariant>
22
- <TestVariant title="PaginationSmall">
23
- <PaginationSmall />
24
- </TestVariant>
25
- <TestVariant title="PaginationWithSmallFont">
26
- <PaginationWithSmallFont />
27
- </TestVariant>
28
- <TestVariant title="WithHook">
29
- <WithHook />
30
- </TestVariant>
31
- <TestVariant title="WithInactiveValues">
32
- <WithInactiveValues />
33
- </TestVariant>
34
- <TestVariant title="WithResultsPerPage">
35
- <WithResultsPerPage />
36
- </TestVariant>
37
- </div>
38
- )
14
+ <div>
15
+ <TestVariant title="Auto">
16
+ <Auto />
17
+ </TestVariant>
18
+ <TestVariant title="Default">
19
+ <Default />
20
+ </TestVariant>
21
+ <TestVariant title="PaginationSmall">
22
+ <PaginationSmall />
23
+ </TestVariant>
24
+ <TestVariant title="PaginationWithSmallFont">
25
+ <PaginationWithSmallFont />
26
+ </TestVariant>
27
+ <TestVariant title="WithHook">
28
+ <WithHook />
29
+ </TestVariant>
30
+ <TestVariant title="WithInactiveValues">
31
+ <WithInactiveValues />
32
+ </TestVariant>
33
+ <TestVariant title="WithResultsPerPage">
34
+ <WithResultsPerPage />
35
+ </TestVariant>
36
+ </div>
37
+ );
39
38
  await page.evaluate(() => document.fonts.ready);
40
39
 
41
- const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
40
+ const screenshot = await page.screenshot({
41
+ fullPage: true,
42
+ animations: 'disabled',
43
+ });
42
44
  expect(screenshot).toMatchSnapshot();
43
45
  });
44
-
@@ -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/navigation/SkipLink/__stories__/Default';
4
+ import TestVariant from '@digigov/ui/utils/TestVariant';
5
5
 
6
6
  test('renders the All SkipLink 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,32 +1,33 @@
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/navigation/Tabs/__stories__/Auto';
5
4
  import { Default } from '@digigov/ui/navigation/Tabs/__stories__/Default';
6
5
  import { Dense } from '@digigov/ui/navigation/Tabs/__stories__/Dense';
7
6
  import { UsingAccordion } from '@digigov/ui/navigation/Tabs/__stories__/UsingAccordion';
7
+ import TestVariant from '@digigov/ui/utils/TestVariant';
8
8
 
9
9
  test('renders the All Tabs variants', async ({ mount, page }) => {
10
10
  await mount(
11
-
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="UsingAccordion">
23
- <UsingAccordion />
24
- </TestVariant>
25
- </div>
26
- )
11
+ <div>
12
+ <TestVariant title="Auto">
13
+ <Auto />
14
+ </TestVariant>
15
+ <TestVariant title="Default">
16
+ <Default />
17
+ </TestVariant>
18
+ <TestVariant title="Dense">
19
+ <Dense />
20
+ </TestVariant>
21
+ <TestVariant title="UsingAccordion">
22
+ <UsingAccordion />
23
+ </TestVariant>
24
+ </div>
25
+ );
27
26
  await page.evaluate(() => document.fonts.ready);
28
27
 
29
- const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
28
+ const screenshot = await page.screenshot({
29
+ fullPage: true,
30
+ animations: 'disabled',
31
+ });
30
32
  expect(screenshot).toMatchSnapshot();
31
33
  });
32
-