Skip to content

Commit a7767ce

Browse files
authored
Scheduler - Appointment Form - Refactor POM (#32339)
1 parent 106c92e commit a7767ce

6 files changed

Lines changed: 256 additions & 768 deletions

File tree

e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/form.functional.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ test('Subject text editor should have focus after returning from recurrence form
1919
const scheduler = new Scheduler(SCHEDULER_SELECTOR);
2020
const appointmentPopup = await scheduler.openAppointmentPopup(t, appointment, true);
2121

22-
await appointmentPopup.openRecurrenceSettings(t);
22+
await appointmentPopup.clickRecurrenceSettingsButton(t);
2323

2424
await t.click(appointmentPopup.recurrence.backButton);
2525

@@ -47,7 +47,7 @@ test('Recurrence start date editor should have focus after opening recurrence se
4747
const scheduler = new Scheduler(SCHEDULER_SELECTOR);
4848
const appointmentPopup = await scheduler.openAppointmentPopup(t, appointment, true);
4949

50-
await appointmentPopup.openRecurrenceSettings(t);
50+
await appointmentPopup.clickRecurrenceSettingsButton(t);
5151

5252
await t
5353
.expect(appointmentPopup.recurrence.startDateInput.focused)

e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/recurrence-form.visual.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const SCHEDULER_SELECTOR = '#container';
2525
const scheduler = new Scheduler(SCHEDULER_SELECTOR);
2626
const appointmentPopup = await scheduler.openAppointmentPopup(t, appointment, false);
2727

28-
await appointmentPopup.openRecurrenceForm(t, frequency);
28+
await appointmentPopup.selectRepeatValue(t, frequency);
2929

3030
await testScreenshot(
3131
t,
@@ -60,7 +60,7 @@ test('recurrence form with icons', async (t) => {
6060

6161
const scheduler = new Scheduler(SCHEDULER_SELECTOR);
6262
const appointmentPopup = await scheduler.openAppointmentPopup(t, appointment, true);
63-
await appointmentPopup.openRecurrenceSettings(t);
63+
await appointmentPopup.clickRecurrenceSettingsButton(t);
6464

6565
await testScreenshot(
6666
t,
@@ -95,7 +95,7 @@ test('recurrence form readonly state', async (t) => {
9595

9696
const scheduler = new Scheduler(SCHEDULER_SELECTOR);
9797
const appointmentPopup = await scheduler.openAppointmentPopup(t, appointment, false);
98-
await appointmentPopup.openRecurrenceSettings(t);
98+
await appointmentPopup.clickRecurrenceSettingsButton(t);
9999

100100
await testScreenshot(
101101
t,
@@ -123,7 +123,7 @@ test.meta({ browserSize: [450, 1000] })('recurrence form on mobile screen', asyn
123123
const scheduler = new Scheduler(SCHEDULER_SELECTOR);
124124

125125
const appointmentPopup = await scheduler.openAppointmentPopup(t, undefined, false);
126-
await appointmentPopup.openRecurrenceForm(t, 'Weekly');
126+
await appointmentPopup.selectRepeatValue(t, 'Weekly');
127127

128128
await testScreenshot(
129129
t,

0 commit comments

Comments
 (0)