Skip to content

Commit

Permalink
Add 2 more wrong testcases, fix detaches
Browse files Browse the repository at this point in the history
  • Loading branch information
schaumb committed Nov 7, 2024
1 parent f5205d1 commit 80fe780
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
3 changes: 1 addition & 2 deletions test/e2e/test_cases/operations/all_operations.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const testSteps = [
chart.animate({
config: {
channels: {
size: { detach: ['Values 3', 'Timeseries', 'Categ. Child'] },
size: { detach: ['Categ. Child'] },
y: {
set: ['Categ. Parent', 'Values 1'],
range: { min: '0%', max: '110%' }
Expand All @@ -54,7 +54,6 @@ const testSteps = [
chart.animate({
config: {
channels: {
size: { detach: ['Values 3', 'Timeseries', 'Categ. Child'] },
y: {
set: ['Categ. Parent', 'Categ. Child', 'Values 1'],
range: { min: '0%', max: '110%' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const testSteps = [
chart.animate({
config: {
channels: {
y: { detach: ['Categ. Parent', 'Categ. Child'] }
y: { detach: ['Categ. Parent'] }
},
title: 'Operations: Circle - Merged.',
split: false
Expand Down
24 changes: 24 additions & 0 deletions test/e2e/tests/config_tests/wrong_channels.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,30 @@ const testCases = [
}
})
]
},
{
testName: 'err_wrong_aggregator_type_1',
errorMsg: 'error: dataframe error: aggregator: measure',
testSteps: [
Chart.animate({
data: 'simpleDataWithOneValue',
config: {
x: { name: 'Bar', aggregator: 'distinct' }
}
})
]
},
{
testName: 'err_wrong_aggregator_type_2',
errorMsg: 'error: dataframe error: aggregator: dimension',
testSteps: [
Chart.animate({
data: 'simpleDataWithOneValue',
config: {
x: { name: 'Foo', aggregator: 'sum' }
}
})
]
}
]

Expand Down

0 comments on commit 80fe780

Please sign in to comment.