Skip to content

Commit 54409f5

Browse files
committed
fix testcafe test
1 parent b2a6d6c commit 54409f5

File tree

1 file changed

+2
-5
lines changed
  • e2e/testcafe-devextreme/tests/scheduler/common/keyboardNavigation

1 file changed

+2
-5
lines changed

e2e/testcafe-devextreme/tests/scheduler/common/keyboardNavigation/appointments.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,10 @@ test('Document should not scroll on \'End\' press when appointment is focused',
5656

5757
test('Document should not scroll on \'Home\' press when appointment is focused', async (t) => {
5858
const scheduler = new Scheduler(SCHEDULER_SELECTOR);
59-
const initialScrollTop = 40;
60-
61-
await ClientFunction(
62-
(scrollTop) => { document.documentElement.scrollTo(0, scrollTop); },
63-
)(initialScrollTop);
59+
const initialScrollTop = 100;
6460

6561
await t
62+
.scroll(0, initialScrollTop)
6663
.click(scheduler.getAppointment('Appointment 1').element)
6764
.pressKey('Home');
6865

0 commit comments

Comments
 (0)