Skip to content

Commit 613f659

Browse files
r-farkhutdinovRuslan Farkhutdinov
andauthored
DateBox: remove overflow:hidden for overlay content in Material (T1312677) (#31750)
Co-authored-by: Ruslan Farkhutdinov <[email protected]>
1 parent cb474fe commit 613f659

File tree

57 files changed

+36
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+36
-0
lines changed

e2e/testcafe-devextreme/tests/editors/dateBox/dateBox.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { createScreenshotsComparer } from 'devextreme-screenshot-comparer';
22
import DateBox from 'devextreme-testcafe-models/dateBox';
3+
import { Selector } from 'testcafe';
34
import url from '../../../helpers/getPageUrl';
45
import asyncForEach from '../../../helpers/asyncForEach';
56
import { createWidget } from '../../../helpers/createWidget';
@@ -11,6 +12,9 @@ fixture.disablePageReloads`DateBox`
1112
const TIME_TO_WAIT = 1500;
1213
const ITEM_HEIGHT = 40;
1314

15+
const TIME_VIEW_FIELD_CLASS = 'dx-timeview-field';
16+
const SELECT_BOX_CONTAINER_CLASS = 'dx-selectbox-container';
17+
1418
if (!isMaterialBased()) {
1519
[[11, 12, 1925], [10, 23, 2001]].forEach(([month, day, year]) => {
1620
test(`Rollers should be scrolled correctly when value is changed to ${day}/${month}/${year} using kbn and valueChangeEvent=keyup (T948310)`, async (t) => {
@@ -71,3 +75,31 @@ test('DateBox with datetime and root element as container (T1193495)', async (t)
7175
container: '#container',
7276
},
7377
}, '#container'));
78+
79+
test('DateBox with datetime and opened AM/PM select (T1312677)', async (t) => {
80+
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
81+
82+
const timeViewSelect = Selector(`#container .${TIME_VIEW_FIELD_CLASS} .${SELECT_BOX_CONTAINER_CLASS}`);
83+
84+
await t
85+
.click(timeViewSelect);
86+
87+
await testScreenshot(
88+
t,
89+
takeScreenshot,
90+
'DateBox with datetime and opened AMPM select.png',
91+
{ element: '#container' },
92+
);
93+
94+
await t
95+
.expect(compareResults.isValid())
96+
.ok(compareResults.errorMessages());
97+
}).before(async () => createWidget('dxDateBox', {
98+
value: new Date(2022, 10, 23, 17, 23),
99+
type: 'datetime',
100+
pickerType: 'calendar',
101+
opened: true,
102+
dropDownOptions: {
103+
container: '#container',
104+
},
105+
}, '#container'));
41.4 KB
41.4 KB
39.4 KB
-11.6 KB
-11.3 KB
-11.7 KB
-11.1 KB

0 commit comments

Comments
 (0)