Skip to content

Commit 44aa4ec

Browse files
Scheduler - Extend firstDayOfWeek propagation test with recurrence week day buttons
1 parent 6a1cdf2 commit 44aa4ec

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/devextreme/js/__internal/scheduler/appointment_popup/appointment_popup.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ describe('Isolated AppointmentPopup environment', () => {
329329
});
330330
});
331331

332-
it('should propagate firstDayOfWeek to editor calendars', async () => {
332+
it('should propagate firstDayOfWeek to editor calendars and recurrence week day buttons', async () => {
333333
const { POM } = await createAppointmentPopup({
334334
appointmentData: {
335335
text: 'common-app',
@@ -343,9 +343,11 @@ describe('Isolated AppointmentPopup environment', () => {
343343
const startDateFDOW = POM.dxForm.getEditor('startDateEditor')?.option('calendarOptions.firstDayOfWeek');
344344
const endDateFDOW = POM.dxForm.getEditor('endDateEditor')?.option('calendarOptions.firstDayOfWeek');
345345
const recurrenceStartFDOW = POM.dxForm.getEditor('recurrenceStartDateEditor')?.option('calendarOptions.firstDayOfWeek');
346+
const weekDayButtonsText = POM.recurrenceWeekDayButtons.textContent;
346347

347348
expect(startDateFDOW).toBe(1);
348349
expect(endDateFDOW).toBe(1);
349350
expect(recurrenceStartFDOW).toBe(1);
351+
expect(weekDayButtonsText).toBe('MTWTFSS');
350352
});
351353
});

0 commit comments

Comments
 (0)