-
Notifications
You must be signed in to change notification settings - Fork 667
Scheduler: QUnit tests: ensure compatibility with Fluent and drop Generic theme testing #32278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 26_1
Are you sure you want to change the base?
Changes from all commits
d223d1e
e2acbcf
cba0ccb
3bbccd1
5151c1d
9db58d4
32a51d2
547caca
3edf6c4
7838ef9
b8cdaf6
0492e99
572f968
28863bd
8bc59e8
2ed7cba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,10 +3,20 @@ import { DataProvider } from '__internal/grids/pivot_grid/export/m_export'; | |
| import dateLocalization from 'common/core/localization/date'; | ||
|
|
||
| import executeAsyncMock from '../../helpers/executeAsyncMock.js'; | ||
| import { checkDxFontIcon, DX_ICON_XLSX_FILE_CONTENT_CODE } from '../../helpers/checkDxFontIconHelper.js'; | ||
| import { DX_ICON_XLSX_FILE_CONTENT_CODE } from '../../helpers/checkDxFontIconHelper.js'; | ||
|
|
||
| import 'ui/pivot_grid/ui.pivot_grid'; | ||
| import 'generic_light.css!'; | ||
| import 'fluent_blue_light.css!'; | ||
|
|
||
| function checkDxFontIcon(assert, dxIconSelector, expectedIconCode) { | ||
| const FLUENT_BASE_ICON_SIZE = 20; | ||
|
|
||
| const iconBeforeElementStyle = getComputedStyle($(dxIconSelector).get(0), ':before'); | ||
| assert.strictEqual(iconBeforeElementStyle.content.charCodeAt(1), expectedIconCode, `icon code (${dxIconSelector})`); | ||
| const iconElementStyle = getComputedStyle($(dxIconSelector).get(0)); | ||
| assert.strictEqual(iconElementStyle.width, FLUENT_BASE_ICON_SIZE + 'px', `icon element width (${dxIconSelector})`); | ||
| assert.strictEqual(iconElementStyle.height, FLUENT_BASE_ICON_SIZE + 'px', `icon element height (${dxIconSelector})`); | ||
| } | ||
|
Comment on lines
+11
to
+19
|
||
|
|
||
| QUnit.testStart(function() { | ||
| const markup = | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scheduler options in this test no longer specify an explicit
height. Since collector rendering can depend on the available viewport size, leaving height at the widget default can make the test more sensitive to future default changes / environment differences. Consider setting an explicit height here (as other KO scheduler tests do) to keep the assertion deterministic.