@centreon/ui 26.12.15 → 26.12.16

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.
package/README.md CHANGED
@@ -57,9 +57,8 @@ To start Storybook server, run:
57
57
 
58
58
  # Tests architecture
59
59
 
60
- There are two kinds of tests in Centreon UI.
60
+ Centreon UI tests are component tests:
61
61
  - Jest + RTL and Cypress: Component testing. We want to migrate from Jest to Cypress
62
- - Chromatic: Chromatic is a tool that snapshots our stories and better handle snapshots changes using a review process
63
62
 
64
63
 
65
64
  ### Run Jest tests
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centreon/ui",
3
- "version": "26.12.15",
3
+ "version": "26.12.16",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "update:deps": "pnpx npm-check-updates -i --format group",
@@ -153,7 +153,6 @@
153
153
  "@visx/visx": "3.12.0",
154
154
  "@visx/zoom": "^3.12.0",
155
155
  "anylogger": "^1.0.11",
156
- "chromatic": "^13.3.3",
157
156
  "d3-array": "3.2.4",
158
157
  "dayjs": "^1.11.13",
159
158
  "highlight.js": "^11.11.1",
@@ -27,9 +27,6 @@ const meta = {
27
27
 
28
28
  component: ButtonSave,
29
29
 
30
- parameters: {
31
- chromatic: { delay: 300 }
32
- },
33
30
  title: 'Button/Save'
34
31
  };
35
32
 
@@ -26,12 +26,7 @@ const dataWithSmallNumber = [
26
26
  ];
27
27
 
28
28
  const meta: Meta<typeof BarStack> = {
29
- component: BarStack,
30
- parameters: {
31
- chromatic: {
32
- delay: 1000
33
- }
34
- }
29
+ component: BarStack
35
30
  };
36
31
 
37
32
  export default meta;
@@ -358,9 +358,6 @@ export const LineChartWithTimePeriod: Story = {
358
358
  end: defaultEnd,
359
359
  height: 500,
360
360
  start: defaultStart
361
- },
362
- parameters: {
363
- chromatic: { disableSnapshot: true }
364
361
  }
365
362
  };
366
363
 
@@ -18,12 +18,7 @@ const dataWithBigNumbers = [
18
18
  ];
19
19
 
20
20
  const meta: Meta<typeof ResponsivePie> = {
21
- component: ResponsivePie,
22
- parameters: {
23
- chromatic: {
24
- delay: 1000
25
- }
26
- }
21
+ component: ResponsivePie
27
22
  };
28
23
 
29
24
  export default meta;
@@ -35,11 +35,6 @@ const Template = (args): JSX.Element => {
35
35
 
36
36
  const meta: Meta<typeof Timeline> = {
37
37
  component: Timeline,
38
- parameters: {
39
- chromatic: {
40
- delay: 1000
41
- }
42
- },
43
38
  render: Template
44
39
  };
45
40
 
@@ -153,8 +153,5 @@ export const treeWithZoom: Story = {
153
153
  getStrokeWidth: ({ target }) => (target.status === 'ok' ? 1 : 2)
154
154
  }
155
155
  },
156
- parameters: {
157
- chromatic: { disableSnapshot: true }
158
- },
159
156
  render: TreeWithZoom
160
157
  };
@@ -9,9 +9,6 @@ import { dateFormat } from './models';
9
9
 
10
10
  const meta: Meta<typeof TimePeriod> = {
11
11
  component: TimePeriod,
12
- parameters: {
13
- chromatic: { disableSnapshot: true }
14
- },
15
12
  tags: ['autodocs']
16
13
  };
17
14