Skip to content

Commit 1aee4b3

Browse files
Merge branch '25_2' into 25_2_reduce_runners
2 parents eb27ce2 + 002885a commit 1aee4b3

File tree

17 files changed

+110
-37
lines changed

17 files changed

+110
-37
lines changed

e2e/testcafe-devextreme/runner.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,6 @@ async function main() {
259259

260260
await t.hover('html');
261261

262-
// @ts-expect-error ts-errors
263-
const { meta } = t.testRun.test;
264-
265262
const [width, height] = meta?.browserSize || DEFAULT_BROWSER_SIZE;
266263
await t.resizeWindow(width, height);
267264
} else {
3.14 KB
Loading

e2e/testcafe-devextreme/tests/dataGrid/common/keyboardNavigation/keyboardNavigation.visual.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -496,12 +496,13 @@ test.meta({ unstable: true })('Navigate to last cell in the last row when virtua
496496
},
497497
}));
498498

499-
test('Navigate to first cell in the first row when virtual scrolling is enabled', async (t) => {
499+
test.meta({ unstable: true })('Navigate to first cell in the first row when virtual scrolling is enabled', async (t) => {
500500
// arrange
501501
const dataGrid = new DataGrid('#container');
502502
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
503503

504-
await dataGrid.scrollTo(t, { x: 700, y: 10000 });
504+
await dataGrid
505+
.scrollTo(t, { x: 700, y: 10000 });
505506

506507
// assert
507508
await t
@@ -535,7 +536,7 @@ test('Navigate to first cell in the first row when virtual scrolling is enabled'
535536
},
536537
}));
537538

538-
test('Navigate to last cell in the last row when virtual scrolling and columns are enabled', async (t) => {
539+
test.meta({ unstable: true })('Navigate to last cell in the last row when virtual scrolling and columns are enabled', async (t) => {
539540
// arrange
540541
const dataGrid = new DataGrid('#container');
541542
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
@@ -611,7 +612,7 @@ test('Navigate to first cell in the first row when virtual scrolling and columns
611612
}));
612613

613614
[true, false].forEach((useNative) => {
614-
test(`${useNative ? 'Native' : 'Simulated'} scrolling: Focus should be on the first focusable cell when pressing the Ctrl + Home key when row dragging, virtual scrolling and columns are enabled`, async (t) => {
615+
test.meta({ unstable: true })(`${useNative ? 'Native' : 'Simulated'} scrolling: Focus should be on the first focusable cell when pressing the Ctrl + Home key when row dragging, virtual scrolling and columns are enabled`, async (t) => {
615616
// arrange
616617
const dataGrid = new DataGrid('#container');
617618
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
@@ -657,7 +658,7 @@ test('Navigate to first cell in the first row when virtual scrolling and columns
657658
},
658659
}));
659660

660-
test(`${useNative ? 'Native' : 'Simulated'} scrolling: Focus should be on the last focusable cell when pressing the Ctrl + Home key when row dragging, virtual scrolling and columns are enabled`, async (t) => {
661+
test.meta({ unstable: true })(`${useNative ? 'Native' : 'Simulated'} scrolling: Focus should be on the last focusable cell when pressing the Ctrl + Home key when row dragging, virtual scrolling and columns are enabled`, async (t) => {
661662
// arrange
662663
const dataGrid = new DataGrid('#container');
663664
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
3.23 KB
Loading
4.55 KB
Loading
900 Bytes
Loading
Loading

e2e/testcafe-devextreme/tests/editors/chat/messageGroup.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ import {
99
import url from '../../../helpers/getPageUrl';
1010
import { createWidget } from '../../../helpers/createWidget';
1111
import { testScreenshot } from '../../../helpers/themeUtils';
12-
import { appendElementTo, insertStylesheetRulesToPage, setStyleAttribute } from '../../../helpers/domUtils';
12+
import { appendElementTo, setStyleAttribute } from '../../../helpers/domUtils';
1313
import asyncForEach from '../../../helpers/asyncForEach';
1414

1515
const AVATAR_SELECTOR = '.dx-avatar';
16+
const CHAT_WRAPPER_STYLES = 'display: flex; flex-wrap: wrap; gap: 2px; width: 1270px; padding: 20px; transform: scale(0.9);';
1617

1718
fixture.disablePageReloads`ChatMessageGroup`
1819
.page(url(__dirname, '../../container.html'));
@@ -111,11 +112,9 @@ test('Messagegroup scenarios in disabled state', async (t) => {
111112
const userFirst = createUser(1, 'First');
112113
const userSecond = createUser(2, 'Second');
113114

114-
await insertStylesheetRulesToPage('#container { display: flex; flex-wrap: wrap; gap: 2px; padding: 20px; }');
115-
116115
await asyncForEach([1, 2, 3, 4], async (bubbleCount, idx) => {
117116
const chatId = `#chat_${idx}`;
118-
await appendElementTo('#container', 'div', `chat_${idx}`);
117+
await appendElementTo('#chat-wrapper', 'div', `chat_${idx}`);
119118

120119
const items = generateMessages(bubbleCount, userFirst, userSecond, false, false, 4, 2);
121120

@@ -131,11 +130,14 @@ test('Messagegroup scenarios in disabled state', async (t) => {
131130
await chat.repaint();
132131
});
133132

134-
await testScreenshot(t, takeScreenshot, 'Messagegroup appearance in disabled state.png', { element: '#container' });
133+
await testScreenshot(t, takeScreenshot, 'Messagegroup appearance in disabled state.png', { element: '#chat-wrapper' });
135134

136135
await t
137136
.expect(compareResults.isValid())
138137
.ok(compareResults.errorMessages());
138+
}).before(async () => {
139+
await appendElementTo('#container', 'div', 'chat-wrapper');
140+
await setStyleAttribute(Selector('#chat-wrapper'), CHAT_WRAPPER_STYLES);
139141
});
140142

141143
test('Messagegroup scenarios in RTL mode', async (t) => {
@@ -144,11 +146,9 @@ test('Messagegroup scenarios in RTL mode', async (t) => {
144146
const userFirst = createUser(1, 'First');
145147
const userSecond = createUser(2, 'Second');
146148

147-
await insertStylesheetRulesToPage('#container { display: flex; flex-wrap: wrap; gap: 2px; padding: 20px; }');
148-
149149
await asyncForEach([1, 2, 3, 4], async (bubbleCount, idx) => {
150150
const chatId = `#chat_${idx}`;
151-
await appendElementTo('#container', 'div', `chat_${idx}`);
151+
await appendElementTo('#chat-wrapper', 'div', `chat_${idx}`);
152152

153153
const items = generateMessages(bubbleCount, userFirst, userSecond, false, false, 4, 2);
154154

@@ -164,11 +164,14 @@ test('Messagegroup scenarios in RTL mode', async (t) => {
164164
await chat.repaint(); // NOTE: WA to make it stable in Material theme.
165165
});
166166

167-
await testScreenshot(t, takeScreenshot, 'Messagegroup appearance in RTL mode.png', { element: '#container' });
167+
await testScreenshot(t, takeScreenshot, 'Messagegroup appearance in RTL mode.png', { element: '#chat-wrapper' });
168168

169169
await t
170170
.expect(compareResults.isValid())
171171
.ok(compareResults.errorMessages());
172+
}).before(async () => {
173+
await appendElementTo('#container', 'div', 'chat-wrapper');
174+
await setStyleAttribute(Selector('#chat-wrapper'), CHAT_WRAPPER_STYLES);
172175
});
173176

174177
test('MessageGroup with edited messages', async (t) => {

e2e/testcafe-devextreme/tests/editors/chat/messageList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ test('Messagelist should scrolled to the latest messages after being rendered in
133133

134134
return createWidget('dxTabPanel', {
135135
width: 400,
136-
height: 500,
136+
height: 600,
137137
deferRendering: true,
138138
templatesRenderAsynchronously: true,
139139
dataSource: [{

packages/devextreme-scss/scss/widgets/base/_fileUploader.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@
100100
}
101101

102102
.dx-fileuploader-file-container {
103+
display: flex;
104+
align-items: center;
103105
width: 100%;
104106
padding: 4px 0 4px;
105107

@@ -189,7 +191,7 @@
189191
}
190192

191193
.dx-fileuploader-file-size {
192-
margin-left: 4px;
194+
padding-left: 4px;
193195
float: left;
194196
vertical-align: super;
195197
font-size: 10px;
@@ -221,7 +223,7 @@
221223
}
222224

223225
.dx-fileuploader-file-size {
224-
margin-right: 4px;
226+
padding-right: 4px;
225227
}
226228
}
227229
}

0 commit comments

Comments
 (0)