Skip to content

Commit 934d02f

Browse files
authored
Scheduler: Provide the SnapToCellsMode option — hide strip for narrow appointment for Fluent theme (#33055)
1 parent 2b661ce commit 934d02f

11 files changed

+45
-0
lines changed
Loading
-75 Bytes
Loading
Loading
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import Scheduler from 'devextreme-testcafe-models/scheduler';
2+
import { createWidget } from '../../../../../helpers/createWidget';
3+
import url from '../../../../../helpers/getPageUrl';
4+
5+
fixture.disablePageReloads`Layout:Appointments:narrowAppointmentFluent`
6+
.page(url(__dirname, '../../../../container.html'));
7+
8+
test('Very narrow appointment in horizontal timeline should hide the appointment strip in Fluent theme', async (t) => {
9+
const scheduler = new Scheduler('#container');
10+
const strip = scheduler
11+
.getAppointment('short')
12+
.element.find('.dx-scheduler-appointment-strip');
13+
14+
await t
15+
.expect(strip.exists)
16+
.ok()
17+
.expect(strip.getStyleProperty('display'))
18+
.eql('none');
19+
}).before(async () => createWidget('dxScheduler', {
20+
currentDate: new Date(2016, 1, 2),
21+
dataSource: [
22+
{
23+
text: 'short',
24+
startDate: new Date(2016, 1, 2, 12, 0),
25+
endDate: new Date(2016, 1, 2, 12, 1),
26+
},
27+
],
28+
views: ['timelineWeek'],
29+
currentView: 'timelineWeek',
30+
maxAppointmentsPerCell: 'unlimited',
31+
height: 505,
32+
width: 800,
33+
startDayHour: 8,
34+
endDayHour: 20,
35+
cellDuration: 60,
36+
firstDayOfWeek: 0,
37+
}));
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)