Skip to content

Commit 6ad5fed

Browse files
authored
Merge pull request #557 from vizzuhq/fix_streamgraphs
Fix stream graph tests
2 parents d40cc26 + 9bf017a commit 6ad5fed

File tree

5 files changed

+33
-33
lines changed

5 files changed

+33
-33
lines changed

test/e2e/test_cases/test_cases.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"refs": ["92f463e"]
114114
},
115115
"basic_animations/someOtherTests/merge_split_area_stream_2dis_1con": {
116-
"refs": ["8a939ae"]
116+
"refs": ["75abfe4"]
117117
},
118118
"basic_animations/someOtherTests/total_time_area_bar": {
119119
"refs": ["4439736"]
@@ -506,7 +506,7 @@
506506
"refs": ["ce56537"]
507507
},
508508
"web_content/analytical_operations/compare/stream_stacked": {
509-
"refs": ["e0966ff"]
509+
"refs": ["7692134"]
510510
},
511511
"web_content/analytical_operations/compare/waterfall": {
512512
"refs": ["16a3b23"]
@@ -620,10 +620,10 @@
620620
"refs": ["3bc3a48"]
621621
},
622622
"web_content/analytical_operations/filter/stream_1": {
623-
"refs": ["b6e5f5c"]
623+
"refs": ["fe0fc5b"]
624624
},
625625
"web_content/analytical_operations/filter/stream_2": {
626-
"refs": ["2adfbcf"]
626+
"refs": ["3e3783f"]
627627
},
628628
"web_content/analytical_operations/misc/donut_to_coxcomb": {
629629
"refs": ["20caa7e"]
@@ -770,7 +770,7 @@
770770
"refs": ["b77d3f6"]
771771
},
772772
"web_content/analytical_operations/sum/stream_stacked": {
773-
"refs": ["797580d"]
773+
"refs": ["9d75321"]
774774
},
775775
"web_content/analytical_operations/sum/treemap": {
776776
"refs": ["1cb2f0a"]
@@ -923,16 +923,16 @@
923923
"refs": ["b5996be"]
924924
},
925925
"web_content/presets/graph/stream": {
926-
"refs": ["4e887e6"]
926+
"refs": ["10a6767"]
927927
},
928928
"web_content/presets/graph/stream_vertical": {
929-
"refs": ["7f24b7f"]
929+
"refs": ["7a9f85c"]
930930
},
931931
"web_content/presets/graph/violin": {
932-
"refs": ["139a372"]
932+
"refs": ["16f0508"]
933933
},
934934
"web_content/presets/graph/violin_vertical": {
935-
"refs": ["78626c7"]
935+
"refs": ["0ca98ea"]
936936
},
937937
"web_content/presets/chart/line": {
938938
"refs": ["9b78c6e"]
@@ -1772,7 +1772,7 @@
17721772
"refs": ["ba7ad4b"]
17731773
},
17741774
"ww_next_steps/next_steps/35_C_A_violin": {
1775-
"refs": ["b1dd1e9"]
1775+
"refs": ["c001634"]
17761776
},
17771777
"ww_next_steps/next_steps/38_C_L_line": {
17781778
"refs": ["3a9b873"]
@@ -3065,19 +3065,19 @@
30653065
"refs": ["4635b93"]
30663066
},
30673067
"ww_samples_for_presets/cartesian_coo_sys/32_C_A_stream_graph": {
3068-
"refs": ["10b7209"]
3068+
"refs": ["a064221"]
30693069
},
30703070
"ww_samples_for_presets/cartesian_coo_sys/33_C_A_stream_graph_vert": {
3071-
"refs": ["25227bf"]
3071+
"refs": ["f95bc69"]
30723072
},
30733073
"ww_samples_for_presets/cartesian_coo_sys/34_C_A_violin_graph": {
3074-
"refs": ["87266d3"]
3074+
"refs": ["f6a2b5f"]
30753075
},
30763076
"ww_samples_for_presets/cartesian_coo_sys/35_C_A_violin_graph_vert": {
3077-
"refs": ["07891c6"]
3077+
"refs": ["cac7dd7"]
30783078
},
30793079
"ww_samples_for_presets/cartesian_coo_sys/36_C_A_range_area_chart": {
3080-
"refs": ["91ba861"]
3080+
"refs": ["dd7fe0a"]
30813081
},
30823082
"ww_samples_for_presets/cartesian_coo_sys/371_C_L_line_chart_nega": {
30833083
"refs": ["ebadb12"]
@@ -3131,7 +3131,7 @@
31313131
"refs": ["7054ac4"]
31323132
},
31333133
"ww_samples_for_presets/polar_coo_sys/551_P_A_polar_stream_graph": {
3134-
"refs": ["c2df43f"]
3134+
"refs": ["45f55a7"]
31353135
},
31363136
"ww_samples_for_presets/polar_coo_sys/55_P_A_polar_overlay_area_chart": {
31373137
"refs": ["852e4a1"]
@@ -3146,7 +3146,7 @@
31463146
"refs": ["2a0ba0d"]
31473147
},
31483148
"ww_samples_for_presets/without_coo_sys/602_W_R_heatmap3": {
3149-
"refs": ["6db6e71"]
3149+
"refs": ["b87a477"]
31503150
},
31513151
"ww_samples_for_presets/without_coo_sys/60_W_R_heatmap": {
31523152
"refs": ["972f61d"]
@@ -3230,7 +3230,7 @@
32303230
"refs": ["ad0cb9b"]
32313231
},
32323232
"web_content/cookbook/rendering/sparse_axis_labels": {
3233-
"refs": ["af76977"]
3233+
"refs": ["9d3b939"]
32343234
},
32353235
"web_content/cookbook/style/d3_color_palette": {
32363236
"refs": ["bd104b0"]
@@ -3278,7 +3278,7 @@
32783278
"refs": ["da8ec16"]
32793279
},
32803280
"web_content/cookbook/interactive/filter_slider": {
3281-
"refs": ["cae7314"]
3281+
"refs": ["77ee90f"]
32823282
},
32833283
"web_content/cookbook/interactive/range_slider_zoom": {
32843284
"refs": ["c8a63f6"]

test/e2e/test_cases/web_content/analytical_operations/compare/stream_stacked.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ const testSteps = [
2121

2222
(chart) =>
2323
chart.animate({
24-
data: Object.assign(data, {
25-
filter: (record) => record.Year > 1972
26-
}),
24+
data,
2725
config: {
2826
channels: {
2927
x: 'Year',

test/e2e/test_cases/web_content/analytical_operations/sum/stream_stacked.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ const testSteps = [
2222

2323
(chart) =>
2424
chart.animate({
25-
data: Object.assign(data, {
26-
filter: (record) => record.Year > 1972
27-
}),
25+
data,
2826
config: {
2927
channels: {
3028
x: 'Year',

test/e2e/test_data/music_industry_history_1.mjs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@ export const data = {
55
{ name: 'Revenue', unit: '$', type: 'measure' }
66
],
77
records: [
8-
['1972', 'Tapes', '0000000'],
9-
['1972', 'Vinyl', '0000000'],
10-
['1972', 'Cassette', '0000000'],
11-
['1972', 'CD', '0000000'],
12-
['1972', 'DVD', '0000000'],
13-
['1972', 'Other', '0000000'],
14-
['1972', 'Download', '0000000'],
15-
['1972', 'Streaming', '0000000'],
168
['1973', 'Cassette', '443000000'],
179
['1973', 'Tapes', '2941000000'],
1810
['1973', 'Vinyl', '8371000000'],
@@ -41,6 +33,7 @@ export const data = {
4133
['1981', 'Tapes', '891000000'],
4234
['1981', 'Vinyl', '7397000000'],
4335
['1982', 'Cassette', '3713000000'],
36+
['1982', 'CD', '0000000'],
4437
['1982', 'Tapes', '97000000'],
4538
['1982', 'Vinyl', '5922000000'],
4639
['1983', 'Cassette', '4706000000'],
@@ -58,6 +51,7 @@ export const data = {
5851
['1987', 'Cassette', '6776000000'],
5952
['1987', 'CD', '3631000000'],
6053
['1987', 'Vinyl', '2270000000'],
54+
['1988', 'Other', '0000000'],
6155
['1988', 'Cassette', '7531000000'],
6256
['1988', 'CD', '4594000000'],
6357
['1988', 'Vinyl', '1559000000'],
@@ -105,6 +99,7 @@ export const data = {
10599
['1999', 'CD', '20255000000'],
106100
['1999', 'Other', '585000000'],
107101
['1999', 'Vinyl', '93000000'],
102+
['2000', 'DVD', '0000000'],
108103
['2000', 'Cassette', '948000000'],
109104
['2000', 'CD', '20075000000'],
110105
['2000', 'Other', '424000000'],
@@ -121,8 +116,10 @@ export const data = {
121116
['2002', 'Vinyl', '65000000'],
122117
['2003', 'Cassette', '152000000'],
123118
['2003', 'CD', '15888000000'],
119+
['2003', 'Download', '0000000'],
124120
['2003', 'DVD', '11000000'],
125121
['2003', 'Other', '562000000'],
122+
['2003', 'Streaming', '0000000'],
126123
['2003', 'Vinyl', '61000000'],
127124
['2004', 'Cassette', '32000000'],
128125
['2004', 'CD', '15726000000'],
@@ -176,6 +173,7 @@ export const data = {
176173
['2011', 'Other', '721000000'],
177174
['2011', 'Streaming', '752000000'],
178175
['2011', 'Vinyl', '143000000'],
176+
['2011', 'DVD', '0000000'],
179177
['2012', 'CD', '2807000000'],
180178
['2012', 'Download', '3235000000'],
181179
['2012', 'Other', '515000000'],
@@ -186,6 +184,7 @@ export const data = {
186184
['2013', 'Other', '445000000'],
187185
['2013', 'Streaming', '1616000000'],
188186
['2013', 'Vinyl', '237000000'],
187+
['2013', 'DVD', '0000000'],
189188
['2014', 'CD', '1947000000'],
190189
['2014', 'Download', '2719000000'],
191190
['2014', 'DVD', '2000000'],
@@ -209,11 +208,13 @@ export const data = {
209208
['2017', 'Other', '325000000'],
210209
['2017', 'Streaming', '5721000000'],
211210
['2017', 'Vinyl', '417000000'],
211+
['2017', 'DVD', '0000000'],
212212
['2018', 'CD', '718000000'],
213213
['2018', 'Download', '1038000000'],
214214
['2018', 'Other', '351000000'],
215215
['2018', 'Streaming', '7491000000'],
216216
['2018', 'Vinyl', '438000000'],
217+
['2018', 'DVD', '0000000'],
217218
['2019', 'CD', '639000000'],
218219
['2019', 'Download', '810000000'],
219220
['2019', 'DVD', '1000000'],

test/e2e/tests/config_tests.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
},
4646
"dimension_axis_density": {
4747
"refs": ["9b330fb"]
48+
},
49+
"geometry/animated_area-circle": {
50+
"refs": ["6f40a47"]
4851
}
4952
}
5053
}

0 commit comments

Comments
 (0)