Skip to content

Commit aa79e23

Browse files
committed
fix test
1 parent 756b2e1 commit aa79e23

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

  • e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,18 @@ test('Appointment should not repaint after scrolling if present on viewport', as
1414
const { element } = scheduler.getAppointment('', 0);
1515

1616
await setStyleAttribute(element, 'background-color: red;');
17-
18-
await t.expect(await getStyleAttribute(element)).eql('transform: translate(525px, 200px); width: 49px; height: 100px; background-color: red;');
17+
const initialStyle = await getStyleAttribute(element);
1918

2019
await scrollToDate(new Date(2020, 8, 17, 4));
2120

22-
await t.expect(await getStyleAttribute(element)).eql('transform: translate(525px, 200px); width: 49px; height: 100px; background-color: red;');
21+
await t.expect(await getStyleAttribute(element)).eql(initialStyle);
2322
}).before(async () => {
2423
await createWidget('dxScheduler', {
2524
height: 600,
2625
width: 800,
2726
currentDate: new Date(2020, 8, 7),
2827
scrolling: {
2928
mode: 'virtual',
30-
orientation: 'both',
31-
outlineCount: 0,
3229
},
3330
currentView: 'week',
3431
views: [{

0 commit comments

Comments
 (0)