File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ import Scheduler from 'devextreme-testcafe-models/scheduler' ;
2+ import dataSource from './init/widget.data' ;
3+ import createScheduler from './init/widget.setup' ;
4+ import url from '../../../../helpers/getPageUrl' ;
5+
6+ fixture . disablePageReloads `Resize appointments with virtual scrolling`
7+ . page ( url ( __dirname , '../../../container.html' ) ) ;
8+
9+ test ( 'T1325041: Appointment resize works with virtual scrolling enabled' , async ( t ) => {
10+ const scheduler = new Scheduler ( '#container' ) ;
11+ const resizableAppointment = scheduler . getAppointment ( 'Brochure Design Review' ) ;
12+
13+ await t
14+ . drag ( resizableAppointment . resizableHandle . right , 400 , 0 )
15+ . expect ( resizableAppointment . size . width ) . eql ( '800px' )
16+ . expect ( resizableAppointment . date . time )
17+ . eql ( '10:00 AM - 12:00 PM' ) ;
18+ } ) . before ( async ( ) => createScheduler ( {
19+ views : [ {
20+ type : 'timelineWorkWeek' ,
21+ groupOrientation : 'vertical' ,
22+ } ] ,
23+ currentView : 'timelineWorkWeek' ,
24+ dataSource,
25+ groups : [ 'resourceId' ] ,
26+ scrolling : { mode : 'virtual' } ,
27+ } ) ) ;
You can’t perform that action at this time.
0 commit comments