diff options
| author | RomainLibert <rli@odoo.com> | 2019-09-09 10:20:58 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-09-11 09:27:41 +0000 |
| commit | 653cccfd60f1ecafaf69ca6c266a3a0b0b541303 (patch) | |
| tree | 9fa681f0128f04e8d2760c4960a6bf06d8f6f923 /addons/web/static/tests | |
| parent | ca06a0e6b3b9b1cc706b81f94c2bb73e8b1b782d (diff) | |
[FIX] web: Display event name on calendar popup instead of undefined
Purpose
=======
When you edit a Time Off Request from the dashboard. The title in the header
is undefined
https://drive.google.com/open?id=1vBg9AlVCN7rc5D6DUel8hx2uY-oOfwRs
Diffstat (limited to 'addons/web/static/tests')
| -rw-r--r-- | addons/web/static/tests/views/calendar_tests.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/tests/views/calendar_tests.js b/addons/web/static/tests/views/calendar_tests.js index 1be4764f7e8..c91b68285e4 100644 --- a/addons/web/static/tests/views/calendar_tests.js +++ b/addons/web/static/tests/views/calendar_tests.js @@ -1902,7 +1902,7 @@ QUnit.module('Views', { }); QUnit.test('Update event with filters', async function (assert) { - assert.expect(5); + assert.expect(6); var records = this.data.user.records; records.push({ @@ -1958,6 +1958,7 @@ QUnit.module('Views', { await testUtils.dom.click(calendar.$('.fc-event:contains(event 2) .fc-content')); assert.ok(calendar.$('.o_cw_popover').length, "should open a popover clicking on event"); await testUtils.dom.click(calendar.$('.o_cw_popover .o_cw_popover_edit')); + assert.strictEqual($('.modal .modal-title').text(), 'Open: event 2', "dialog should have a valid title"); await testUtils.dom.click($('.modal .o_field_widget[name="user_id"] input')); await testUtils.dom.click($('.ui-menu-item a:contains(user 5)').trigger('mouseenter')); await testUtils.dom.click($('.modal button.btn:contains(Save)')); |
