Skip to content

Commit 8318016

Browse files
committed
Tests - Rewrite VueUiXy component test
1 parent 15fc559 commit 8318016

File tree

4 files changed

+153
-479
lines changed

4 files changed

+153
-479
lines changed

cypress/fixtures/vdui-components.js

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,7 @@ export const components = [
16931693
name: "VueUiXy",
16941694
dataset: [
16951695
{
1696-
name: "S",
1696+
name: "A",
16971697
series: (function IIFE(n, m) {
16981698
const arr = [];
16991699
for (let i = 0; i < n; i += 1) {
@@ -1702,8 +1702,76 @@ export const components = [
17021702
return arr;
17031703
})(20, 100),
17041704
type: "line",
1705+
useArea: true,
1706+
dataLabels: true
1707+
},
1708+
{
1709+
name: "B",
1710+
series: (function IIFE(n, m) {
1711+
const arr = [];
1712+
for (let i = 0; i < n; i += 1) {
1713+
arr.push(i % 2 === 0 ? -i : i);
1714+
}
1715+
return arr;
1716+
})(20, 100),
1717+
type: "bar",
1718+
dataLabels: true
1719+
},
1720+
{
1721+
name: "C",
1722+
series: (function IIFE(n, m) {
1723+
const arr = [];
1724+
for (let i = 0; i < n; i += 1) {
1725+
arr.push(i % 2 === 0 ? -i : i);
1726+
}
1727+
return arr;
1728+
})(20, 100),
1729+
type: "plot",
1730+
dataLabels: true
17051731
},
17061732
],
1733+
config: {
1734+
line: { labels: { show: true }},
1735+
bar: { labels: { show: true }},
1736+
plot: { labels: { show: true }},
1737+
chart: {
1738+
grid: {
1739+
frame: {
1740+
show: true
1741+
},
1742+
labels: {
1743+
xAxis: {
1744+
showBaseline: true
1745+
},
1746+
yAxis: {
1747+
showBaseline: true
1748+
}
1749+
},
1750+
showHorizontalLines: true,
1751+
showVerticalLines: true
1752+
},
1753+
highlightArea: {
1754+
show: true,
1755+
from: 2,
1756+
to: 4,
1757+
color: '#1F77B4',
1758+
opacity: 20,
1759+
caption: {
1760+
text: 'Caption',
1761+
fontSize: 20,
1762+
color: '#1A1A1A',
1763+
offsetY: 0,
1764+
width: 'auto',
1765+
padding: 3,
1766+
textAlign: 'center'
1767+
}
1768+
},
1769+
title: {
1770+
text: 'Title',
1771+
subtitle: { text: 'Subtitle' }
1772+
}
1773+
}
1774+
},
17071775
wrapperClass: ".vue-ui-xy",
17081776
},
17091777
{

cypress/fixtures/xy.json

Lines changed: 0 additions & 305 deletions
This file was deleted.

0 commit comments

Comments
 (0)