Skip to content

Commit

Permalink
Refactor 540 test, filter out "lines"
Browse files Browse the repository at this point in the history
  • Loading branch information
schaumb committed Jun 13, 2024
1 parent aeef0ed commit a98f222
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/e2e/tests/fixes.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"refs": ["05d387c"]
},
"540": {
"refs": ["108b737"]
"refs": ["5aa8779"]
},
"32303048": {
"refs": ["b5d95ea"]
Expand Down
27 changes: 23 additions & 4 deletions test/e2e/tests/fixes/540.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const testSteps = [
]
},
config: {
size: ['Foo']
size: ['Foo'],
label: ['Foo']
},
style: {
plot: {
Expand All @@ -35,17 +36,35 @@ testSteps.push(
)

testSteps.push((chart) => chart.animate({ config: { color: 'Bar', legend: null } }, 0.5))
testSteps.push((chart) =>
chart.animate(
{
config: { geometry: 'circle' },

style: {
plot: {
marker: {
label: {
position: 'top'
}
}
}
}
},
0.5
)
)

testSteps.push(
...[...Array(36).keys()].map(
...[...Array(6).keys()].map(
(i) => (chart) =>
chart.animate(
{
data: {
filter: (record) => parseInt(record.Bar) > i
filter: (record) => Math.floor(parseInt(record.Bar) / 4) % 6 > i
}
},
0.1
0.2
)
)
)
Expand Down

0 comments on commit a98f222

Please sign in to comment.