summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorOdoo's Mergebot <xmo+roboto@odoo.com>2019-09-20 17:13:28 +0200
committerGitHub <noreply@github.com>2019-09-20 17:13:28 +0200
commit8901146b911e2e9d56a0cb55529f6ff4567a2211 (patch)
tree4815d0784d4981bc935e172e2082fb0acd9c41e2 /addons/web/static/tests/fields/basic_fields_tests.js
parentc5fa4771fcec91c06a26d5103126a1373f962f0b (diff)
parentc49bd8dcdb014474f0af78485b8af1a0b9274571 (diff)
[IMP] web: multiple improvements on datepicker
* Changed the default value of datetime to "is between" with "today" as the default value (same day 00:00:00 to 23:59:59). * Changed the style of the "Close" button to match the one on the "primary buttons". * added increments to the minutes in daterange Minutes can now be chosen by increments of 5 instead of 10. Task 2068164 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#36775 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
-rw-r--r--addons/web/static/tests/fields/basic_fields_tests.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web/static/tests/fields/basic_fields_tests.js b/addons/web/static/tests/fields/basic_fields_tests.js
index aa86ff925e4..63ce02be614 100644
--- a/addons/web/static/tests/fields/basic_fields_tests.js
+++ b/addons/web/static/tests/fields/basic_fields_tests.js
@@ -2636,7 +2636,7 @@ QUnit.module('basic_fields', {
QUnit.module('FieldDateRange');
QUnit.test('Datetime field', async function (assert) {
- assert.expect(19);
+ assert.expect(20);
this.data.partner.fields.datetime_end = {string: 'Datetime End', type: 'datetime'};
this.data.partner.records[0].datetime_end = '2017-03-13 00:00:00';
@@ -2685,6 +2685,8 @@ QUnit.module('basic_fields', {
"active end date hour should be '5' in date range picker");
assert.strictEqual($('.daterangepicker:first .drp-calendar.right .minuteselect').val(), '30',
"active end date minute should be '30' in date range picker");
+ assert.containsN($('.daterangepicker:first .drp-calendar.left .minuteselect'), 'option', 12,
+ "minute selection should contain 12 options (1 for each 5 minutes)");
// Close picker
await testUtils.dom.click($('.daterangepicker:first .cancelBtn'));