Skip to content

Commit 988d7c1

Browse files
Toolbar: additional styles shouldn't affect the Menu's delimiter appearance (T1296127) (DevExpress#30151)
1 parent 4f2e2b8 commit 988d7c1

14 files changed

+52
-7
lines changed
-254 Bytes
Loading

e2e/testcafe-devextreme/tests/navigation/menu/common.ts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,3 +280,55 @@ safeSizeTest('Menu delimiter appearance when orientation is vertical', async (t)
280280

281281
return createWidget('dxMenu', { items: menuItems, orientation: 'vertical' }, '#container');
282282
});
283+
284+
safeSizeTest('Menu delimiter appearance when the Menu is used as a toolbar item', async (t) => {
285+
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
286+
const menu = new Menu();
287+
288+
await t
289+
.click(menu.getItem(1));
290+
291+
await testScreenshot(t, takeScreenshot, 'Delimiter, menu as toolbar item.png');
292+
293+
await t
294+
.expect(compareResults.isValid())
295+
.ok(compareResults.errorMessages());
296+
}, [500, 500]).before(async () => {
297+
const toolbarItems = [
298+
{
299+
location: 'before',
300+
widget: 'dxMenu',
301+
options: {
302+
items: [{
303+
text: 'Video Players',
304+
}, {
305+
text: 'Televisions',
306+
items: [{
307+
id: '2_1',
308+
text: 'SuperLCD 42',
309+
}, {
310+
id: '2_2',
311+
text: 'SuperLED 42',
312+
}],
313+
}],
314+
},
315+
}, {
316+
location: 'before',
317+
widget: 'dxButton',
318+
options: {
319+
icon: 'undo',
320+
},
321+
}, {
322+
location: 'before',
323+
widget: 'dxButton',
324+
options: {
325+
icon: 'redo',
326+
},
327+
},
328+
];
329+
330+
return createWidget('dxToolbar', {
331+
items: toolbarItems,
332+
width: '100%',
333+
}, '#container');
334+
});
12.5 KB
Loading
10.7 KB
Loading
11.1 KB
Loading
6 Bytes
Loading
Loading
0 Bytes
Loading
Loading
Loading

0 commit comments

Comments
 (0)