Skip to content

Commit 0ca902c

Browse files
authored
unskip resource tests (#29241)
Co-authored-by: Vladimir Bushmanov <[email protected]>
1 parent 2b83b84 commit 0ca902c

File tree

1 file changed

+11
-5
lines changed
  • e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base

1 file changed

+11
-5
lines changed

e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/generic.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ const resources = [{
3434
label: 'Priority',
3535
}];
3636

37-
// TODO: sometimes hover doesn't trigger on click and screenshots are different
3837
[undefined, resources].forEach((resourcesValue) => {
39-
['day', 'week', 'workWeek', 'month'].forEach((view) => {
40-
test.skip(`Base views layout test in generic theme with resources(view='${view})', resource=${!!resourcesValue}`, async (t) => {
38+
['day', 'week', 'month', 'workWeek'].forEach((view) => {
39+
test(`Base views layout test in generic theme with resources(view='${view})', resource=${!!resourcesValue}`, async (t) => {
4140
const scheduler = new Scheduler('#container');
4241

42+
await t.click(scheduler.toolbar.viewSwitcher.element);
4343
await t.click(scheduler.getAppointment('1 appointment', 0).element);
4444
await t.expect(scheduler.appointmentTooltip.isVisible()).ok();
4545

@@ -49,10 +49,16 @@ const resources = [{
4949
});
5050

5151
[undefined, resources].forEach((resourcesValue) => {
52-
['timelineDay', 'timelineWeek', 'timelineWorkWeek', 'timelineMonth'].forEach((view) => {
53-
test.skip(`Timeline views layout test in generic theme with resources(view='${view})', resource=${!!resourcesValue}`, async (t) => {
52+
['timelineDay', 'timelineWeek', 'timelineMonth', 'timelineWorkWeek'].forEach((view) => {
53+
test(`Timeline views layout test in generic theme with resources(view='${view})', resource=${!!resourcesValue}`, async (t) => {
5454
const scheduler = new Scheduler('#container');
5555

56+
/*
57+
* If appointment position is the same in the next view,then mouse doesn't change
58+
* their position and doesn't trigger hover effect. This is the reason for the instability
59+
* of the tests. The following operation ensures that the mouse position is changed.
60+
*/
61+
await t.click(scheduler.toolbar.viewSwitcher.element);
5662
await t.click(scheduler.getAppointment('1 appointment', 0).element);
5763
await t.expect(scheduler.appointmentTooltip.isVisible()).ok();
5864

0 commit comments

Comments
 (0)