We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b42f81a commit 6b8c0edCopy full SHA for 6b8c0ed
1 file changed
packages/devextreme/testing/tests/DevExpress.ui.widgets/menuBase.tests.js
@@ -1347,5 +1347,18 @@ QUnit.module('Disabled item cursor style (T1327513)', () => {
1347
1348
assert.strictEqual(cursor, 'default', 'item disabled at runtime has default cursor');
1349
});
1350
+
1351
+ QUnit.test('items in disabled menu should have default cursor', function(assert) {
1352
+ const menuBase = createMenu({
1353
+ disabled: true,
1354
+ items: [
1355
+ { text: 'Item 1' },
1356
+ { text: 'Item 2' },
1357
+ ],
1358
+ });
1359
+ const $disabledMenuItem = menuBase.element.find(`.${DX_MENU_ITEM_CLASS}`).eq(0);
1360
+ const cursor = window.getComputedStyle($disabledMenuItem.get(0)).cursor;
1361
+ assert.strictEqual(cursor, 'default', 'items in disabled menu have default cursor');
1362
1363
1364
0 commit comments