Skip to content

Commit

Permalink
reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
markallenramirez committed Aug 24, 2023
1 parent b4e9068 commit 66b4f25
Showing 1 changed file with 1 addition and 33 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ClientFunction, Selector } from 'testcafe';
import { ClientFunction } from 'testcafe';
import { createScreenshotsComparer } from 'devextreme-screenshot-comparer';
import Scheduler from '../../../../model/scheduler';
import createWidget from '../../../../helpers/createWidget';
Expand Down Expand Up @@ -36,35 +36,3 @@ fixture.disablePageReloads`Layout:Templates:CellTemplate`
});
});
});

test('resourceCellTemplate layout should be rendered right in the agenda view', async (t) => {
const groupHeader = Selector('.dx-scheduler-group-header-content');

await t.expect(groupHeader.textContent).eql('Custom resource text');
}).before(async () => {
const currentDate = new Date(2017, 4, 25);
await createWidget('dxScheduler', {
dataSource: [{
text: 'appointment',
startDate: currentDate,
endDate: currentDate,
resource: 1,
}],
views: ['agenda'],
currentView: 'agenda',
currentDate,
resourceCellTemplate() {
return 'Custom resource text';
},
groups: ['resource'],
resources: [{
fieldExpr: 'resource',
dataSource: [{
text: 'Resource text',
id: 1,
}],
label: 'Resource',
}],
height: 600,
});
});

0 comments on commit 66b4f25

Please sign in to comment.