Skip to content

Commit a8fa3f5

Browse files
author
Julia Volkova
committed
drb caret
1 parent b1506e1 commit a8fa3f5

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

  • e2e/testcafe-devextreme/tests/editors/dateRangeBox

e2e/testcafe-devextreme/tests/editors/dateRangeBox/calendar.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { createScreenshotsComparer } from 'devextreme-screenshot-comparer';
22
import DateRangeBox from 'devextreme-testcafe-models/dateRangeBox';
33
import {
44
appendElementTo,
5+
insertStylesheetRulesToPage,
56
setAttribute,
67
} from '../../../helpers/domUtils';
78
import url from '../../../helpers/getPageUrl';
@@ -662,17 +663,20 @@ test('Disabled dates on inputs focus (disableOutOfRangeSelection: true)', async
662663
const dateRangeBox = new DateRangeBox('#dateRangeBox');
663664

664665
await t
665-
.click(dateRangeBox.getStartDateBox().input);
666+
.click(dateRangeBox.getStartDateBox().input)
667+
.hover(dateRangeBox.getStartDateBox().input);
666668

667669
await testScreenshot(t, takeScreenshot, 'DRB disabled dates on popup opening.png', { element: '#container' });
668670

669671
await t
670-
.click(dateRangeBox.getEndDateBox().input);
672+
.click(dateRangeBox.getEndDateBox().input)
673+
.hover(dateRangeBox.getEndDateBox().input);
671674

672675
await testScreenshot(t, takeScreenshot, 'DRB disabled dates on end date input focus.png', { element: '#container' });
673676

674677
await t
675-
.click(dateRangeBox.getStartDateBox().input);
678+
.click(dateRangeBox.getStartDateBox().input)
679+
.hover(dateRangeBox.getStartDateBox().input);
676680

677681
await testScreenshot(t, takeScreenshot, 'DRB disabled dates on start date input focus.png', { element: '#container' });
678682

@@ -682,6 +686,7 @@ test('Disabled dates on inputs focus (disableOutOfRangeSelection: true)', async
682686
}).before(async () => {
683687
await appendElementTo('#container', 'div', 'dateRangeBox');
684688
await setAttribute('#container', 'style', 'width: 800px; height: 500px; padding-top: 10px;');
689+
await insertStylesheetRulesToPage('* { caret-color: transparent !important; }');
685690

686691
return createWidget('dxDateRangeBox', {
687692
value: [new Date('2020/02/20'), new Date('2020/02/22')],

0 commit comments

Comments
 (0)