Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions apps/demos/testing/common.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ Object.values(FRAMEWORKS).forEach((approach) => {
if (approach === 'Angular') {
await waitForAngularLoading();
}

if (testCodeSource) {
await execCode(testCodeSource);
}
Expand Down Expand Up @@ -178,10 +179,8 @@ Object.values(FRAMEWORKS).forEach((approach) => {
await t.expect(results.violations.length === 0).ok(createReport(results.violations));
} else {
const consoleMessages = await t.getBrowserConsoleMessages();

const errors = [...consoleMessages.error, ...consoleMessages.warn]
.filter((e) => !knownWarnings.some((kw) => e.startsWith(kw)));

await t.expect(errors).eql([]);

const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
Expand Down
6 changes: 3 additions & 3 deletions apps/demos/utils/visual-tests/inject/test-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ body {

.dx-theme-material * {
-webkit-font-smoothing: antialiased !important;
/* text-rendering: optimizeLegibility !important; */
text-rendering: geometricprecision !important;

/* stylelint-disable-next-line value-keyword-case */
text-rendering: geometricPrecision !important;
}
3 changes: 0 additions & 3 deletions apps/demos/utils/visual-tests/matrix-test-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,6 @@ export function shouldRunTestAtIndex(testIndex) {
const SKIPPED_TESTS = {
jQuery: {
DataGrid: ['RemoteGrouping'],
Charts: [
{ demo: 'ZoomingAndScrollingAPI', themes: [THEME.material] },
],
},
Angular: {
Charts: ['Crosshair'],
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 5 additions & 12 deletions e2e/testcafe-devextreme/tests/dataGrid/common/scrolling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1702,7 +1702,7 @@ test('The row alternation should display correctly when grouping and virtual scr

test('DataGrid - Gray boxes appear when the push method is used to remove rows in infinite scrolling mode (T1240079)', async (t) => {
const dataGrid = new DataGrid('#container');

const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
const data = [
{ id: 1, text: 'text 1' },
{ id: 2, text: 'text 2' },
Expand All @@ -1715,14 +1715,11 @@ test('DataGrid - Gray boxes appear when the push method is used to remove rows i
await t.expect(dataGrid.isReady()).ok();

await dataGrid.apiPush(changes);
await t.wait(500);
await testScreenshot(t, takeScreenshot, 'T1240079.png', { element: dataGrid.element });

await t.expect(dataGrid.isReady()).ok();

const visibleRows = await dataGrid.apiGetVisibleRows();
await t
.expect(visibleRows.length)
.eql(0, 'All rows should be removed after push');
.expect(compareResults.isValid())
.ok(compareResults.errorMessages());
}).before(async () => {
await createWidget('dxDataGrid', () => {
const data = [
Expand All @@ -1734,11 +1731,7 @@ test('DataGrid - Gray boxes appear when the push method is used to remove rows i
store: new (window as any).DevExpress.data.CustomStore({
key: 'id',
loadMode: 'raw',
load: () => new Promise((resolve) => {
setTimeout(() => {
resolve(data);
}, 100);
}),
load: () => Promise.resolve(data),
}),
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ test('onFocusIn should be called only on focus of startDate input', async (t) =>

await t
.pressKey('shift+tab')
.wait(100)
.expect(dateRangeBox.isFocused)
.ok()
.expect(dateRangeBox.getStartDateBox().isFocused)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fixture.disablePageReloads`SelectBox`
const purePressKey = async (t, key): Promise<void> => {
await t
.pressKey(key)
.wait(500);
.wait(100);
};

test('Click on action button should correctly work with SelectBox containing the field template (T811890)', async (t) => {
Expand Down
Loading