Skip to content

Commit

Permalink
Add testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
schaumb committed May 22, 2024
1 parent 8152203 commit eceb8e5
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/e2e/tests/fixes.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
"450": {
"refs": ["761380e"]
},
"530": {
"refs": ["1ad4684"]
},
"32303048": {
"refs": ["b5d95ea"]
},
Expand Down
45 changes: 45 additions & 0 deletions test/e2e/tests/fixes/530.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
const testSteps = [
(chart) => chart.animate({
data: {
series: [
{
name: 'Year',
type: 'dimension',
values: ['2005', 'Total']
},
{
name: 'Result',
type: 'dimension',
values: ['Won', 'Lost']
}
]
}
}),
(chart) => chart.animate({
data: {
filter: (record) => {
return record.Year !== 'Total'
}
},
config: {
x: 'Year'
}
}),

(chart) => chart.animate(
{
data: {
filter: (record) => {
return (
record.Year === 'Total'
)
}
},
config: {
y: 'Result'
}
}
)
]

export default testSteps

0 comments on commit eceb8e5

Please sign in to comment.