Skip to content

Commit f4532f8

Browse files
author
marker dao ®
committed
fix(radio): Fix test
1 parent 4fffe7f commit f4532f8

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

e2e/testcafe-devextreme/tests/accessibility/radioGroup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const interactiveItemsConfiguration: Configuration = {
4646
itemElement.append($button);
4747
},
4848
(itemData, _, itemElement) => {
49-
itemElement.text(itemData.text);
49+
$(itemElement).parent().text(itemData);
5050
},
5151
],
5252
},

packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/radioGroup.markup.tests.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,13 +401,10 @@ QUnit.module('Aria accessibility', {
401401
helper.createWidget({
402402
items: ['Low', 'Normal', 'Urgent', 'High'],
403403
itemTemplate(itemData, _, itemElement) {
404-
itemElement.text(itemData);
404+
$(itemElement).parent().text(itemData);
405405
},
406406
});
407407

408-
helper.checkAttributes(helper.$widget, { role: 'radiogroup', tabindex: '0' }, 'widget');
409-
helper.checkItemsAttributes([], {});
410-
411408
helper.getItems().each((index, item) => {
412409
const $item = $(item);
413410
const $radioContainer = $item.find(`.${RADIO_VALUE_CONTAINER_CLASS}`);

0 commit comments

Comments
 (0)