Skip to content

DataGrid - Use Fluent theme in QUnit (dataGrid.markup, dataGrid.resizing, dataGrid.tests, filterRow) - #34541

Open
Tucchhaa wants to merge 2 commits into
DevExpress:mainfrom
Tucchhaa:qunit_fluent_part_1_26_2
Open

DataGrid - Use Fluent theme in QUnit (dataGrid.markup, dataGrid.resizing, dataGrid.tests, filterRow)#34541
Tucchhaa wants to merge 2 commits into
DevExpress:mainfrom
Tucchhaa:qunit_fluent_part_1_26_2

Conversation

@Tucchhaa

Copy link
Copy Markdown
Contributor

No description provided.

@Tucchhaa Tucchhaa self-assigned this Jul 29, 2026
@Tucchhaa Tucchhaa added the 26_2 label Jul 29, 2026
@Tucchhaa
Tucchhaa requested review from a team as code owners July 29, 2026 13:03
Comment on lines +746 to +748
scrolling: {
useNative: false
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes of scrolling.useNative was added to make tests run successfully on MacOS. On MacOS useNative is set by default to true and when scrollbar is shown, it affected the column widths

// assert
const $commandColumnCells = $($(dataGrid.$element()).find('.dx-command-expand'));
assert.equal($commandColumnCells.eq(0).width(), 15, 'expand command column width');
assert.equal($commandColumnCells.eq(0).outerWidth(), 15, 'expand command column width');

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use outer to width to include padding width

@@ -4,12 +4,11 @@ export const DX_ICON_EXPORT_SELECTED_CONTENT_CODE = 61549; // .dx-font-icon("\f0
export const DX_ICON_XLSX_FILE_CONTENT_CODE = 61719; // .dx-font-icon("\f117")

export function checkDxFontIcon(assert, dxIconSelector, expectedIconCode) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This helper func is used only in 2 files: dataGrid.tests, and pivotGrid/export.tests


// assert
assert.equal($('#dataGrid').find('.dx-datagrid').height(), 298);
assert.roughEqual($('#dataGrid').find('.dx-datagrid').height(), 1, 298);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be roughEqual(..., 298, 1)? looks like the expected and epsilon arguments got reversed - roughEqual(actual, expected, epsilon) - so right now it checks height against 1 with a 298 tolerance

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thank you


// assert
assert.equal(dataGrid.getVisibleColumns()[0].visibleWidth, 70);
assert.roughEqual(dataGrid.getVisibleColumns()[0].visibleWidth, 0.001, 50);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same reversed arguments here - shouldn't it be roughEqual(..., 50, 0.001)? as written the expected is 0.001 and the tolerance is 50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants