Refactor date range directive to match the current system of directives.

pull/2980/head
mhirtie 10 years ago
parent 160457b2be
commit 65b3b7c880
  1. 3
      frontend/app/ui_components/index.js
  2. 1
      frontend/tests/integration/specs/work-packages/details-pane/custom-fields/date-editable-spec.js

@ -46,9 +46,6 @@ angular.module('openproject.uiComponents')
.directive('opTime', ['TimezoneService', require('./date/time-directive')])
.directive('opDateTime', ['$compile', 'TimezoneService', require('./date/date-time-directive')])
.directive('emptyElement', [require('./empty-element-directive')])
.directive('opDateRangePicker', ['TimezoneService', 'ConfigurationService',
'I18n', '$timeout', 'WorkPackageFieldService',
'EditableFieldsState', 'Datepicker', require('./date/date-range-picker-directive')])
.constant('ENTER_KEY', 13)
.directive('executeOnEnter', ['ENTER_KEY', require(
'./execute-on-enter-directive')])

@ -104,6 +104,7 @@ describe('details pane', function() {
describe('date selection', function() {
it('changes date by clicking on calendar', function() {
dateInput.click();
browser.waitForAngular();
datepicker.selectMonthAndYear(dateInput, 4, 2015);
datepicker.clickDate(dateInput, date, '9').then(function() {
datepicker.expectedDate(date, '2015-04-09');

Loading…
Cancel
Save