Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,28 @@ describe('Appointment Form', () => {
expect(POM.popup.isRecurrenceGroupVisible()).toBe(true);
});

it('should close repeat selectbox popup when navigating to recurrence group via settings button', async () => {
const { POM, scheduler } = await createScheduler({
...getDefaultConfig(),
dataSource: [{ ...recurringAppointment }],
});

const dataSource = (scheduler as any).getDataSource();
const appointment = dataSource.items()[0];

scheduler.showAppointmentPopup(appointment);
POM.popup.editSeriesButton.click();

const repeatEditor = POM.popup.dxForm.getEditor('repeatEditor');
POM.popup.getInput('repeatEditor').click();

expect(repeatEditor?.option('opened')).toBe(true);

POM.popup.recurrenceSettingsButton.click();

expect(repeatEditor?.option('opened')).toBe(false);
});

it('should have disabled week day buttons when allowUpdating is false', async () => {
const { POM, scheduler } = await createScheduler({
...getDefaultConfig(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,8 @@ export class AppointmentForm {
}

showRecurrenceGroup(): void {
(this.dxForm.getEditor(REPEAT_EDITOR_NAME) as { close?: () => void })?.close?.();

this._popup.updateToolbarForRecurrenceGroup();

const currentHeight = this.dxPopup.option('height') as string | number | undefined;
Expand Down
Loading