Skip to content

Commit 5d4872a

Browse files
committed
VueUiDonut add e2e component test
1 parent fd514b6 commit 5d4872a

File tree

3 files changed

+501
-28
lines changed

3 files changed

+501
-28
lines changed

cypress/fixtures/donut.json

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
{
2+
"dataset": [
3+
{
4+
"name": "serie 1",
5+
"color": "#3366cc",
6+
"values": [
7+
1
8+
]
9+
},
10+
{
11+
"name": "serie 2",
12+
"color": "#dc3912",
13+
"values": [
14+
2
15+
]
16+
},
17+
{
18+
"name": "serie 3",
19+
"color": "#ff9900",
20+
"values": [
21+
3
22+
]
23+
},
24+
{
25+
"name": "serie 4",
26+
"color": "#109618",
27+
"values": [
28+
3,
29+
5
30+
]
31+
}
32+
],
33+
"config": {
34+
"useCssAnimation": true,
35+
"style": {
36+
"fontFamily": "inherit",
37+
"chart": {
38+
"useGradient": true,
39+
"gradientIntensity": 40,
40+
"backgroundColor": "#FFFFFF",
41+
"color": "#2D353C",
42+
"layout": {
43+
"useDiv": false,
44+
"labels": {
45+
"dataLabels": {
46+
"show": true,
47+
"hideUnderValue": 3
48+
},
49+
"percentage": {
50+
"color": "#2D353C",
51+
"bold": true,
52+
"fontSize": 18
53+
},
54+
"name": {
55+
"color": "#2D353C",
56+
"bold": false,
57+
"fontSize": 14
58+
},
59+
"hollow": {
60+
"total": {
61+
"show": true,
62+
"bold": false,
63+
"fontSize": 18,
64+
"color": "#AAAAAA",
65+
"text": "Total",
66+
"offsetY": 0,
67+
"value": {
68+
"color": "#2D353C",
69+
"fontSize": 18,
70+
"bold": true,
71+
"suffix": "",
72+
"prefix": "",
73+
"offsetY": 0,
74+
"rounding": 0
75+
}
76+
},
77+
"average": {
78+
"show": true,
79+
"bold": false,
80+
"fontSize": 18,
81+
"color": "#AAAAAA",
82+
"text": "Average",
83+
"offsetY": 0,
84+
"value": {
85+
"color": "#2D353C",
86+
"fontSize": 18,
87+
"bold": true,
88+
"suffix": "",
89+
"prefix": "",
90+
"offsetY": 0,
91+
"rounding": 0
92+
}
93+
}
94+
}
95+
},
96+
"donut": {
97+
"strokeWidth": 64
98+
}
99+
},
100+
"legend": {
101+
"backgroundColor": "#FFFFFF",
102+
"color": "#2D353C",
103+
"show": true,
104+
"fontSize": 16,
105+
"bold": false,
106+
"roundingValue": 0,
107+
"roundingPercentage": 0
108+
},
109+
"title": {
110+
"text": "Title",
111+
"color": "#2D353C",
112+
"fontSize": 20,
113+
"bold": true,
114+
"subtitle": {
115+
"color": "#A1A1A1",
116+
"text": "Subtitle",
117+
"fontSize": 16,
118+
"bold": false
119+
}
120+
},
121+
"tooltip": {
122+
"show": true,
123+
"color": "#2D353C",
124+
"backgroundColor": "#FFFFFF",
125+
"fontSize": 14,
126+
"showValue": true,
127+
"showPercentage": true,
128+
"roundingValue": 0,
129+
"roundingPercentage": 0
130+
}
131+
}
132+
},
133+
"userOptions": {
134+
"show": true,
135+
"title": "options",
136+
"labels": {
137+
"dataLabels": "Show datalabels",
138+
"useDiv": "Title & legend inside",
139+
"showTable": "Show table"
140+
}
141+
},
142+
"translations": {
143+
"total": "Total",
144+
"average": "Average"
145+
},
146+
"table": {
147+
"show": false,
148+
"th": {
149+
"backgroundColor": "#FAFAFA",
150+
"color": "#2D353C",
151+
"outline": "1px solid #e1e5e8"
152+
},
153+
"td": {
154+
"backgroundColor": "#FFFFFF",
155+
"color": "#2D353C",
156+
"outline": "1px solid #e1e5e8",
157+
"roundingValue": 0,
158+
"roundingPercentage": 0
159+
}
160+
}
161+
}
162+
}

0 commit comments

Comments
 (0)