Skip to content

Commit

Permalink
Merge pull request #557 from vizzuhq/fix_streamgraphs
Browse files Browse the repository at this point in the history
Fix stream graph tests
  • Loading branch information
schaumb authored Aug 12, 2024
2 parents d40cc26 + 9bf017a commit 6ad5fed
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 33 deletions.
38 changes: 19 additions & 19 deletions test/e2e/test_cases/test_cases.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"refs": ["92f463e"]
},
"basic_animations/someOtherTests/merge_split_area_stream_2dis_1con": {
"refs": ["8a939ae"]
"refs": ["75abfe4"]
},
"basic_animations/someOtherTests/total_time_area_bar": {
"refs": ["4439736"]
Expand Down Expand Up @@ -506,7 +506,7 @@
"refs": ["ce56537"]
},
"web_content/analytical_operations/compare/stream_stacked": {
"refs": ["e0966ff"]
"refs": ["7692134"]
},
"web_content/analytical_operations/compare/waterfall": {
"refs": ["16a3b23"]
Expand Down Expand Up @@ -620,10 +620,10 @@
"refs": ["3bc3a48"]
},
"web_content/analytical_operations/filter/stream_1": {
"refs": ["b6e5f5c"]
"refs": ["fe0fc5b"]
},
"web_content/analytical_operations/filter/stream_2": {
"refs": ["2adfbcf"]
"refs": ["3e3783f"]
},
"web_content/analytical_operations/misc/donut_to_coxcomb": {
"refs": ["20caa7e"]
Expand Down Expand Up @@ -770,7 +770,7 @@
"refs": ["b77d3f6"]
},
"web_content/analytical_operations/sum/stream_stacked": {
"refs": ["797580d"]
"refs": ["9d75321"]
},
"web_content/analytical_operations/sum/treemap": {
"refs": ["1cb2f0a"]
Expand Down Expand Up @@ -923,16 +923,16 @@
"refs": ["b5996be"]
},
"web_content/presets/graph/stream": {
"refs": ["4e887e6"]
"refs": ["10a6767"]
},
"web_content/presets/graph/stream_vertical": {
"refs": ["7f24b7f"]
"refs": ["7a9f85c"]
},
"web_content/presets/graph/violin": {
"refs": ["139a372"]
"refs": ["16f0508"]
},
"web_content/presets/graph/violin_vertical": {
"refs": ["78626c7"]
"refs": ["0ca98ea"]
},
"web_content/presets/chart/line": {
"refs": ["9b78c6e"]
Expand Down Expand Up @@ -1772,7 +1772,7 @@
"refs": ["ba7ad4b"]
},
"ww_next_steps/next_steps/35_C_A_violin": {
"refs": ["b1dd1e9"]
"refs": ["c001634"]
},
"ww_next_steps/next_steps/38_C_L_line": {
"refs": ["3a9b873"]
Expand Down Expand Up @@ -3065,19 +3065,19 @@
"refs": ["4635b93"]
},
"ww_samples_for_presets/cartesian_coo_sys/32_C_A_stream_graph": {
"refs": ["10b7209"]
"refs": ["a064221"]
},
"ww_samples_for_presets/cartesian_coo_sys/33_C_A_stream_graph_vert": {
"refs": ["25227bf"]
"refs": ["f95bc69"]
},
"ww_samples_for_presets/cartesian_coo_sys/34_C_A_violin_graph": {
"refs": ["87266d3"]
"refs": ["f6a2b5f"]
},
"ww_samples_for_presets/cartesian_coo_sys/35_C_A_violin_graph_vert": {
"refs": ["07891c6"]
"refs": ["cac7dd7"]
},
"ww_samples_for_presets/cartesian_coo_sys/36_C_A_range_area_chart": {
"refs": ["91ba861"]
"refs": ["dd7fe0a"]
},
"ww_samples_for_presets/cartesian_coo_sys/371_C_L_line_chart_nega": {
"refs": ["ebadb12"]
Expand Down Expand Up @@ -3131,7 +3131,7 @@
"refs": ["7054ac4"]
},
"ww_samples_for_presets/polar_coo_sys/551_P_A_polar_stream_graph": {
"refs": ["c2df43f"]
"refs": ["45f55a7"]
},
"ww_samples_for_presets/polar_coo_sys/55_P_A_polar_overlay_area_chart": {
"refs": ["852e4a1"]
Expand All @@ -3146,7 +3146,7 @@
"refs": ["2a0ba0d"]
},
"ww_samples_for_presets/without_coo_sys/602_W_R_heatmap3": {
"refs": ["6db6e71"]
"refs": ["b87a477"]
},
"ww_samples_for_presets/without_coo_sys/60_W_R_heatmap": {
"refs": ["972f61d"]
Expand Down Expand Up @@ -3230,7 +3230,7 @@
"refs": ["ad0cb9b"]
},
"web_content/cookbook/rendering/sparse_axis_labels": {
"refs": ["af76977"]
"refs": ["9d3b939"]
},
"web_content/cookbook/style/d3_color_palette": {
"refs": ["bd104b0"]
Expand Down Expand Up @@ -3278,7 +3278,7 @@
"refs": ["da8ec16"]
},
"web_content/cookbook/interactive/filter_slider": {
"refs": ["cae7314"]
"refs": ["77ee90f"]
},
"web_content/cookbook/interactive/range_slider_zoom": {
"refs": ["c8a63f6"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ const testSteps = [

(chart) =>
chart.animate({
data: Object.assign(data, {
filter: (record) => record.Year > 1972
}),
data,
config: {
channels: {
x: 'Year',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ const testSteps = [

(chart) =>
chart.animate({
data: Object.assign(data, {
filter: (record) => record.Year > 1972
}),
data,
config: {
channels: {
x: 'Year',
Expand Down
17 changes: 9 additions & 8 deletions test/e2e/test_data/music_industry_history_1.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@ export const data = {
{ name: 'Revenue', unit: '$', type: 'measure' }
],
records: [
['1972', 'Tapes', '0000000'],
['1972', 'Vinyl', '0000000'],
['1972', 'Cassette', '0000000'],
['1972', 'CD', '0000000'],
['1972', 'DVD', '0000000'],
['1972', 'Other', '0000000'],
['1972', 'Download', '0000000'],
['1972', 'Streaming', '0000000'],
['1973', 'Cassette', '443000000'],
['1973', 'Tapes', '2941000000'],
['1973', 'Vinyl', '8371000000'],
Expand Down Expand Up @@ -41,6 +33,7 @@ export const data = {
['1981', 'Tapes', '891000000'],
['1981', 'Vinyl', '7397000000'],
['1982', 'Cassette', '3713000000'],
['1982', 'CD', '0000000'],
['1982', 'Tapes', '97000000'],
['1982', 'Vinyl', '5922000000'],
['1983', 'Cassette', '4706000000'],
Expand All @@ -58,6 +51,7 @@ export const data = {
['1987', 'Cassette', '6776000000'],
['1987', 'CD', '3631000000'],
['1987', 'Vinyl', '2270000000'],
['1988', 'Other', '0000000'],
['1988', 'Cassette', '7531000000'],
['1988', 'CD', '4594000000'],
['1988', 'Vinyl', '1559000000'],
Expand Down Expand Up @@ -105,6 +99,7 @@ export const data = {
['1999', 'CD', '20255000000'],
['1999', 'Other', '585000000'],
['1999', 'Vinyl', '93000000'],
['2000', 'DVD', '0000000'],
['2000', 'Cassette', '948000000'],
['2000', 'CD', '20075000000'],
['2000', 'Other', '424000000'],
Expand All @@ -121,8 +116,10 @@ export const data = {
['2002', 'Vinyl', '65000000'],
['2003', 'Cassette', '152000000'],
['2003', 'CD', '15888000000'],
['2003', 'Download', '0000000'],
['2003', 'DVD', '11000000'],
['2003', 'Other', '562000000'],
['2003', 'Streaming', '0000000'],
['2003', 'Vinyl', '61000000'],
['2004', 'Cassette', '32000000'],
['2004', 'CD', '15726000000'],
Expand Down Expand Up @@ -176,6 +173,7 @@ export const data = {
['2011', 'Other', '721000000'],
['2011', 'Streaming', '752000000'],
['2011', 'Vinyl', '143000000'],
['2011', 'DVD', '0000000'],
['2012', 'CD', '2807000000'],
['2012', 'Download', '3235000000'],
['2012', 'Other', '515000000'],
Expand All @@ -186,6 +184,7 @@ export const data = {
['2013', 'Other', '445000000'],
['2013', 'Streaming', '1616000000'],
['2013', 'Vinyl', '237000000'],
['2013', 'DVD', '0000000'],
['2014', 'CD', '1947000000'],
['2014', 'Download', '2719000000'],
['2014', 'DVD', '2000000'],
Expand All @@ -209,11 +208,13 @@ export const data = {
['2017', 'Other', '325000000'],
['2017', 'Streaming', '5721000000'],
['2017', 'Vinyl', '417000000'],
['2017', 'DVD', '0000000'],
['2018', 'CD', '718000000'],
['2018', 'Download', '1038000000'],
['2018', 'Other', '351000000'],
['2018', 'Streaming', '7491000000'],
['2018', 'Vinyl', '438000000'],
['2018', 'DVD', '0000000'],
['2019', 'CD', '639000000'],
['2019', 'Download', '810000000'],
['2019', 'DVD', '1000000'],
Expand Down
3 changes: 3 additions & 0 deletions test/e2e/tests/config_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
},
"dimension_axis_density": {
"refs": ["9b330fb"]
},
"geometry/animated_area-circle": {
"refs": ["6f40a47"]
}
}
}

0 comments on commit 6ad5fed

Please sign in to comment.