Skip to content
Permalink
Browse files

[FIX] web: adapt new test to new version

Oversight of previous forward-port.
  • Loading branch information...
KangOl committed Mar 19, 2019
1 parent 23cb7a9 commit 6faf9b76cde1cdfdb591ba3c636f384cffd691aa
Showing with 4 additions and 4 deletions.
  1. +4 −4 addons/web/static/tests/views/pivot_tests.js
@@ -1118,7 +1118,7 @@ QUnit.module('Views', {
pivot_row_groupby: []};

// Check that column groupbys were not lost
assert.deepEqual(pivot.getContext(), expectedContext,
assert.deepEqual(pivot.getOwnedQueryParams(), {context: expectedContext},
'Column groupby not lost after first reload');

// Set a column groupby
@@ -1132,7 +1132,7 @@ QUnit.module('Views', {
pivot_measures: ['__count'],
pivot_row_groupby: []};

assert.deepEqual(pivot.getContext(), expectedContext,
assert.deepEqual(pivot.getOwnedQueryParams(), {context: expectedContext},
'Column groupby not lost after second reload');

pivot.destroy();
@@ -1158,13 +1158,13 @@ QUnit.module('Views', {
var expectedContext = {pivot_column_groupby: ['customer'],
pivot_measures: ['__count'],
pivot_row_groupby: []};
assert.deepEqual(pivot.getContext(), expectedContext,
assert.deepEqual(pivot.getOwnedQueryParams(), {context: expectedContext},
'Column groupby not lost after empty results');

// Set a domain for not empty results
pivot.update({domain: [['product_id', '=', 37]]});

assert.deepEqual(pivot.getContext(), expectedContext,
assert.deepEqual(pivot.getOwnedQueryParams(), {context: expectedContext},
'Column groupby not lost after reload after empty results');

pivot.destroy();

0 comments on commit 6faf9b7

Please sign in to comment.
You can’t perform that action at this time.