Skip to content

Commit f6768f6

Browse files
committed
Violin Percy test
1 parent 62cbb9f commit f6768f6

File tree

4 files changed

+32
-1
lines changed

4 files changed

+32
-1
lines changed

dev/mocks.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"/percy/panelTest.json",
44
"/percy/histogram.json",
55
"/percy/histogram2d.json",
6+
"/percy/violin.json",
67
"0.json",
78
"1.json",
89
"10.json",

dev/percy/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import panelTest from './panelTest.json';
22
import histogram from './histogram.json';
33
import histogram2d from './histogram2d.json';
4+
import violin from './violin.json';
45

5-
export {panelTest, histogram, histogram2d};
6+
export {panelTest, histogram, histogram2d, violin};

dev/percy/violin.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"data": [
3+
{
4+
"type": "violin",
5+
"mode": "markers",
6+
"uid": "91db56",
7+
"box": {
8+
"visible": true
9+
},
10+
"meanline": {
11+
"visible": true
12+
},
13+
"bandwidth": 0,
14+
"x": [
15+
1,
16+
2,
17+
3
18+
],
19+
"xsrc": "x1"
20+
}
21+
],
22+
"layout": {
23+
"xaxis": {},
24+
"yaxis": {},
25+
"autosize": true
26+
},
27+
"frames": []
28+
}

src/__percy__/panels.percy.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import './percy.css';
1616
const panelsToTest = {
1717
histogram: ['GraphCreatePanel'],
1818
histogram2d: ['GraphCreatePanel', 'StyleTracesPanel'],
19+
violin: ['GraphCreatePanel', 'StyleTracesPanel'],
1920
};
2021

2122
window.URL.createObjectURL = function() {

0 commit comments

Comments
 (0)