From a98f2229cece80d406813b3a32e314a3a61fa632 Mon Sep 17 00:00:00 2001 From: Bela Schaum Date: Thu, 13 Jun 2024 10:21:45 +0200 Subject: [PATCH] Refactor 540 test, filter out "lines" --- test/e2e/tests/fixes.json | 2 +- test/e2e/tests/fixes/540.mjs | 27 +++++++++++++++++++++++---- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/test/e2e/tests/fixes.json b/test/e2e/tests/fixes.json index aa94517e6..d78aa1bad 100644 --- a/test/e2e/tests/fixes.json +++ b/test/e2e/tests/fixes.json @@ -35,7 +35,7 @@ "refs": ["05d387c"] }, "540": { - "refs": ["108b737"] + "refs": ["5aa8779"] }, "32303048": { "refs": ["b5d95ea"] diff --git a/test/e2e/tests/fixes/540.mjs b/test/e2e/tests/fixes/540.mjs index 3cc1cbdd0..49e131544 100644 --- a/test/e2e/tests/fixes/540.mjs +++ b/test/e2e/tests/fixes/540.mjs @@ -8,7 +8,8 @@ const testSteps = [ ] }, config: { - size: ['Foo'] + size: ['Foo'], + label: ['Foo'] }, style: { plot: { @@ -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 ) ) )