diff --git a/addons/board/static/tests/dashboard_tests.js b/addons/board/static/tests/dashboard_tests.js index 81bcec1dd5b..2293e1c87e6 100644 --- a/addons/board/static/tests/dashboard_tests.js +++ b/addons/board/static/tests/dashboard_tests.js @@ -783,49 +783,4 @@ QUnit.test("Views should be loaded in the user's language", function (assert) { form.destroy(); }); -QUnit.test("Views should be loaded in the user's language", function (assert) { - assert.expect(2); - - var form = createView({ - View: BoardView, - model: 'board', - data: this.data, - session: {user_context: {lang: 'fr_FR'}}, - arch: '
' + - '' + - '' + - '' + - '' + - '' + - '
', - mockRPC: function (route, args) { - if (route === "/web/dataset/search_read") { - assert.deepEqual(args.context, {lang: 'fr_FR'}, - 'The data should be loaded with the correct context'); - } - - if (route === '/web/action/load') { - return $.when({ - res_model: 'partner', - views: [[4, 'list']], - }); - } - return this._super.apply(this, arguments); - }, - archs: { - 'partner,4,list': - '', - }, - - interceptsPropagate: { - load_views: function (ev) { - assert.deepEqual(ev.data.context.eval(), {lang: 'fr_FR'}, - 'The views should be loaded with the correct context'); - } - }, - }); - - form.destroy(); -}); - });