@@ -660,59 +660,6 @@ supportedScrollingModes.forEach(scrollingMode => {
660660 $ ( '.dx-dialog-buttons .dx-button' ) . eq ( 1 ) . trigger ( 'dxclick' ) ;
661661 } ) ;
662662
663- test ( 'Recurrent Task editing, single mode' , async function ( assert ) {
664- const data = new DataSource ( {
665- store : [
666- {
667- text : 'Task 1' ,
668- startDate : new Date ( 2015 , 1 , 9 , 1 , 0 ) ,
669- endDate : new Date ( 2015 , 1 , 9 , 2 , 0 ) ,
670- recurrenceRule : 'FREQ=DAILY'
671- }
672- ]
673- } ) ;
674-
675- const updatedItem = {
676- text : 'Task 2' ,
677- startDate : new Date ( 2015 , 1 , 11 , 3 ) ,
678- endDate : new Date ( 2015 , 1 , 11 , 4 ) ,
679- allDay : false ,
680- recurrenceRule : '' ,
681- } ;
682-
683- const scheduler = await this . createInstance ( {
684- currentDate : new Date ( 2015 , 1 , 9 ) ,
685- dataSource : data ,
686- currentView : 'week' ,
687- firstDayOfWeek : 1 ,
688-
689- } ) ;
690-
691- const clock = sinon . useFakeTimers ( ) ;
692- await scheduler . appointments . click ( 2 , clock ) ;
693- scheduler . tooltip . clickOnItem ( ) ;
694- $ ( '.dx-dialog-buttons .dx-button' ) . eq ( 1 ) . trigger ( 'dxclick' ) ;
695-
696- const $title = $ ( '.dx-textbox' ) . eq ( 0 ) ;
697- const title = $title . dxTextBox ( 'instance' ) ;
698- const $startTime = $ ( '.dx-datebox' ) . eq ( 1 ) ;
699- const startTime = $startTime . dxDateBox ( 'instance' ) ;
700-
701- title . option ( 'value' , 'Task 2' ) ;
702- startTime . option ( 'value' , new Date ( 2015 , 1 , 11 , 3 , 0 ) ) ;
703- $ ( '.dx-button.dx-popup-done' ) . eq ( 0 ) . trigger ( 'dxclick' ) ;
704- await clock . tickAsync ( 300 ) ;
705- clock . restore ( ) ;
706-
707- const updatedSingleItem = scheduler . instance . option ( 'dataSource' ) . items ( ) [ 1 ] ;
708- const updatedRecurringItem = scheduler . instance . option ( 'dataSource' ) . items ( ) [ 0 ] ;
709- const exceptionDate = new Date ( 2015 , 1 , 11 , 1 , 0 , 0 , 0 ) ;
710-
711- assert . deepEqual ( updatedSingleItem , updatedItem , 'New data is correct' ) ;
712-
713- assert . equal ( updatedRecurringItem . recurrenceException , dateSerialization . serializeDate ( exceptionDate , 'yyyyMMddTHHmmssZ' ) , 'Exception for recurrence appointment is correct' ) ;
714- } ) ;
715-
716663 test ( 'Recurrent Task editing, single mode, should not reference copy recurrent data (T1228488)' , async function ( assert ) {
717664 const updatedItem = {
718665 text : 'Task 2' ,
@@ -763,78 +710,6 @@ supportedScrollingModes.forEach(scrollingMode => {
763710 assert . deepEqual ( updatedRecurringItem . customData . texts , [ '123' ] , 'Recurrence data is correct' ) ;
764711 } ) ;
765712
766- test ( 'Recurrent Task edition canceling, single mode' , async function ( assert ) {
767- const data = new DataSource ( {
768- store : [
769- {
770- text : 'Task 1' ,
771- startDate : new Date ( 2015 , 1 , 9 , 1 , 0 ) ,
772- endDate : new Date ( 2015 , 1 , 9 , 2 , 0 ) ,
773- recurrenceRule : 'FREQ=DAILY'
774- }
775- ]
776- } ) ;
777-
778- const scheduler = await this . createInstance ( {
779- currentDate : new Date ( 2015 , 1 , 9 ) ,
780- dataSource : data ,
781- currentView : 'week' ,
782- firstDayOfWeek : 1
783- } ) ;
784-
785- const clock = sinon . useFakeTimers ( ) ;
786- $ ( scheduler . instance . $element ( ) ) . find ( '.dx-scheduler-appointment' ) . eq ( 2 ) . trigger ( 'dxclick' ) ;
787- await clock . tickAsync ( 300 ) ;
788- $ ( '.dx-scheduler-appointment-tooltip-buttons .dx-button' ) . eq ( 1 ) . trigger ( 'dxclick' ) ;
789- $ ( '.dx-dialog-buttons .dx-button' ) . eq ( 1 ) . trigger ( 'dxclick' ) ;
790- $ ( '.dx-button.dx-popup-cancel' ) . eq ( 0 ) . trigger ( 'dxclick' ) ;
791-
792- $ ( scheduler . instance . $element ( ) ) . find ( '.dx-scheduler-appointment' ) . eq ( 2 ) . trigger ( 'dxclick' ) ;
793- await clock . tickAsync ( 300 ) ;
794- $ ( '.dx-scheduler-appointment-tooltip-buttons .dx-button' ) . eq ( 1 ) . trigger ( 'dxclick' ) ;
795- $ ( '.dx-dialog-buttons .dx-button' ) . eq ( 0 ) . trigger ( 'dxclick' ) ;
796- $ ( '.dx-button.dx-popup-done' ) . eq ( 0 ) . trigger ( 'dxclick' ) ;
797- clock . restore ( ) ;
798-
799- const items = scheduler . instance . option ( 'dataSource' ) . items ( ) ;
800-
801- assert . equal ( items . length , 1 , 'Items are correct' ) ;
802- } ) ;
803-
804- test ( 'Recurrent Task editing, single mode - canceling' , async function ( assert ) {
805- const data = new DataSource ( {
806- store : [
807- {
808- text : 'Task 1' ,
809- startDate : new Date ( 2015 , 1 , 9 , 1 , 0 ) ,
810- endDate : new Date ( 2015 , 1 , 9 , 2 , 0 ) ,
811- recurrenceRule : 'FREQ=DAILY'
812- }
813- ]
814- } ) ;
815-
816- const scheduler = await this . createInstance ( {
817- currentDate : new Date ( 2015 , 1 , 9 ) ,
818- dataSource : data ,
819- currentView : 'week' ,
820- firstDayOfWeek : 1
821- } ) ;
822-
823- const clock = sinon . useFakeTimers ( ) ;
824- $ ( scheduler . instance . $element ( ) ) . find ( '.dx-scheduler-appointment' ) . eq ( 2 ) . trigger ( 'dxclick' ) ;
825- await clock . tickAsync ( 300 ) ;
826- $ ( '.dx-scheduler-appointment-tooltip-buttons .dx-button' ) . eq ( 1 ) . trigger ( 'dxclick' ) ;
827- $ ( '.dx-dialog-buttons .dx-button' ) . eq ( 1 ) . trigger ( 'dxclick' ) ;
828-
829- $ ( '.dx-button.dx-popup-cancel' ) . eq ( 0 ) . trigger ( 'dxclick' ) ;
830- await clock . tickAsync ( 300 ) ;
831- clock . restore ( ) ;
832-
833- const recurrentItem = scheduler . instance . option ( 'dataSource' ) . items ( ) [ 0 ] ;
834-
835- assert . equal ( recurrentItem . recurrenceException , undefined , 'Exception for recurrence appointment is correct' ) ;
836- } ) ;
837-
838713 test ( 'Recurrent Task editing, confirmation tooltip should be shown after double click on recurrent appointment' , async function ( assert ) {
839714 const data = new DataSource ( {
840715 store : [
0 commit comments