Skip to content

Commit 1116e88

Browse files
authored
CI optimization: move editors related tests to editors folder (DevExpress#31356)
1 parent 460f8bd commit 1116e88

File tree

307 files changed

+100
-121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

307 files changed

+100
-121
lines changed

.github/workflows/testcafe_tests.yml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ env:
1919
jobs:
2020
build:
2121
name: build
22-
strategy:
23-
fail-fast: false
2422

2523
runs-on: devextreme-shr2
2624
timeout-minutes: 15
@@ -84,9 +82,6 @@ jobs:
8482
{ componentFolder: "common", name: "common" },
8583
{ componentFolder: "common", name: "common - material", theme: 'material.blue.light' },
8684
{ componentFolder: "common", name: "common - fluent", theme: 'fluent.blue.light' },
87-
{ componentFolder: "chat", name: "chat" },
88-
{ componentFolder: "chat", name: "chat - material", theme: 'material.blue.light' },
89-
{ componentFolder: "chat", name: "chat - fluent", theme: 'fluent.blue.light' },
9085
{ componentFolder: "treeList", name: "treeList", concurrency: 1 },
9186
{ componentFolder: "dataGrid/common", name: "dataGrid / common (1/5)", indices: "1/5" },
9287
{ componentFolder: "dataGrid/common", name: "dataGrid / common (2/5)", indices: "2/5" },
@@ -113,24 +108,21 @@ jobs:
113108
{ componentFolder: "scheduler/viewOffset/markup", name: "scheduler / offset markups" },
114109
{ componentFolder: "scheduler/timezones", name: "scheduler / timezones (Europe/Berlin)", timezone: "Europe/Berlin" },
115110
{ componentFolder: "scheduler/timezones", name: "scheduler / timezones (America/Los_Angeles)", timezone: "America/Los_Angeles" },
116-
{ componentFolder: "editors", name: "editors (1/3)", indices: "1/3" },
117-
{ componentFolder: "editors", name: "editors (2/3)", indices: "2/3" },
118-
{ componentFolder: "editors", name: "editors (3/3)", indices: "3/3" },
119-
{ componentFolder: "editors", name: "editors - material (1/3)", indices: "1/3", theme: 'material.blue.light' },
120-
{ componentFolder: "editors", name: "editors - material (2/3)", indices: "2/3", theme: 'material.blue.light' },
121-
{ componentFolder: "editors", name: "editors - material (3/3)", indices: "3/3", theme: 'material.blue.light' },
122-
{ componentFolder: "editors", name: "editors - fluent (1/3)", indices: "1/3", theme: 'fluent.blue.light' },
123-
{ componentFolder: "editors", name: "editors - fluent (2/3)", indices: "2/3", theme: 'fluent.blue.light' },
124-
{ componentFolder: "editors", name: "editors - fluent (3/3)", indices: "3/3", theme: 'fluent.blue.light' },
125-
{ componentFolder: "htmlEditor", name: "htmlEditor", concurrency: 1 },
126-
{ componentFolder: "htmlEditor", name: "htmlEditor - material", theme: 'material.blue.light', concurrency: 1 },
127-
{ componentFolder: "htmlEditor", name: "htmlEditor - fluent", theme: 'fluent.blue.light', concurrency: 1 },
111+
{ componentFolder: "editors", name: "editors (1/4)", indices: "1/4" },
112+
{ componentFolder: "editors", name: "editors (2/4)", indices: "2/4" },
113+
{ componentFolder: "editors", name: "editors (3/4)", indices: "3/4" },
114+
{ componentFolder: "editors", name: "editors (4/4)", indices: "4/4" },
115+
{ componentFolder: "editors", name: "editors - material (1/4)", indices: "1/4", theme: 'material.blue.light' },
116+
{ componentFolder: "editors", name: "editors - material (2/4)", indices: "2/4", theme: 'material.blue.light' },
117+
{ componentFolder: "editors", name: "editors - material (3/4)", indices: "3/4", theme: 'material.blue.light' },
118+
{ componentFolder: "editors", name: "editors - material (4/4)", indices: "4/4", theme: 'material.blue.light' },
119+
{ componentFolder: "editors", name: "editors - fluent (1/4)", indices: "1/4", theme: 'fluent.blue.light' },
120+
{ componentFolder: "editors", name: "editors - fluent (2/4)", indices: "2/4", theme: 'fluent.blue.light' },
121+
{ componentFolder: "editors", name: "editors - fluent (3/4)", indices: "3/4", theme: 'fluent.blue.light' },
122+
{ componentFolder: "editors", name: "editors - fluent (4/4)", indices: "4/4", theme: 'fluent.blue.light' },
128123
{ componentFolder: "navigation", name: "navigation" },
129124
{ componentFolder: "navigation", name: "navigation - material", theme: 'material.blue.light' },
130125
{ componentFolder: "navigation", name: "navigation - fluent", theme: 'fluent.blue.light' },
131-
{ componentFolder: "fileManager", name: "fileManager" },
132-
{ componentFolder: "fileManager", name: "fileManager - material", theme: 'material.blue.light' },
133-
{ componentFolder: "fileManager", name: "fileManager - fluent", theme: 'fluent.blue.light' },
134126
{ componentFolder: "filterBuilder", name: "filterBuilder" },
135127
{ componentFolder: "filterBuilder", name: "filterBuilder - material", theme: 'material.blue.light' },
136128
{ componentFolder: "filterBuilder", name: "filterBuilder - fluent", theme: 'fluent.blue.light' },
@@ -139,9 +131,6 @@ jobs:
139131
# { componentFolder: "pagination", name: "pagination - material", theme: 'material.blue.light' },
140132
{ componentFolder: "pagination", name: "pagination - fluent", theme: 'fluent.blue.light' },
141133
{ componentFolder: "gantt", name: "gantt" },
142-
{ componentFolder: "fileUploader", name: "fileUploader" },
143-
{ componentFolder: "fileUploader", name: "fileUploader - material", theme: 'material.blue.light' },
144-
{ componentFolder: "fileUploader", name: "fileUploader - fluent", theme: 'fluent.blue.light' },
145134
]
146135
runs-on: devextreme-shr2
147136
timeout-minutes: 45

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Message, User, Properties } from 'devextreme/ui/chat.d';
22
import url from '../../helpers/getPageUrl';
33
import { testAccessibility, Configuration } from '../../helpers/accessibility/test';
44
import { Options } from '../../helpers/generateOptionMatrix';
5-
import { avatarUrl } from '../chat/data';
5+
import { avatarUrl } from '../editors/chat/data';
66

77
fixture.disablePageReloads`Accessibility`
88
.page(url(__dirname, '../container.html'));

e2e/testcafe-devextreme/tests/chat/alertList.ts renamed to e2e/testcafe-devextreme/tests/editors/chat/alertList.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { createScreenshotsComparer } from 'devextreme-screenshot-comparer';
22
import Chat from 'devextreme-testcafe-models/chat';
33
import { ClientFunction } from 'testcafe';
44
import { createUser } from './data';
5-
import url from '../../helpers/getPageUrl';
6-
import { createWidget } from '../../helpers/createWidget';
7-
import { getFullThemeName, testScreenshot } from '../../helpers/themeUtils';
5+
import url from '../../../helpers/getPageUrl';
6+
import { createWidget } from '../../../helpers/createWidget';
7+
import { getFullThemeName, testScreenshot } from '../../../helpers/themeUtils';
88

9-
fixture.disablePageReloads`ChatAlertList`
10-
.page(url(__dirname, '../container.html'));
9+
fixture`ChatAlertList`
10+
.page(url(__dirname, '../../container.html'));
1111

1212
test.clientScripts([
1313
{ module: 'mockdate' },

e2e/testcafe-devextreme/tests/chat/avatar.ts renamed to e2e/testcafe-devextreme/tests/editors/chat/avatar.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { createScreenshotsComparer } from 'devextreme-screenshot-comparer';
22
import Chat from 'devextreme-testcafe-models/chat';
33
import { createUser, generateMessages, avatarUrl } from './data';
4-
import url from '../../helpers/getPageUrl';
5-
import { createWidget } from '../../helpers/createWidget';
6-
import { testScreenshot } from '../../helpers/themeUtils';
7-
import { appendElementTo } from '../../helpers/domUtils';
4+
import url from '../../../helpers/getPageUrl';
5+
import { createWidget } from '../../../helpers/createWidget';
6+
import { testScreenshot } from '../../../helpers/themeUtils';
7+
import { appendElementTo } from '../../../helpers/domUtils';
88

99
fixture.disablePageReloads`ChatAvatar`
10-
.page(url(__dirname, '../container.html'));
10+
.page(url(__dirname, '../../container.html'));
1111

1212
test('Chat: avatar', async (t) => {
1313
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);

e2e/testcafe-devextreme/tests/chat/confirmationPopup.ts renamed to e2e/testcafe-devextreme/tests/editors/chat/confirmationPopup.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { createScreenshotsComparer } from 'devextreme-screenshot-comparer';
22
import Chat from 'devextreme-testcafe-models/chat';
33
import { createUser } from './data';
4-
import url from '../../helpers/getPageUrl';
5-
import { createWidget } from '../../helpers/createWidget';
6-
import { testScreenshot } from '../../helpers/themeUtils';
4+
import url from '../../../helpers/getPageUrl';
5+
import { createWidget } from '../../../helpers/createWidget';
6+
import { testScreenshot } from '../../../helpers/themeUtils';
77

88
fixture.disablePageReloads`ChatConfirmationPopup`.page(
9-
url(__dirname, '../container.html'),
9+
url(__dirname, '../../container.html'),
1010
);
1111

1212
test('Chat: confirmation popup', async (t) => {

e2e/testcafe-devextreme/tests/chat/data/index.ts renamed to e2e/testcafe-devextreme/tests/editors/chat/data/index.ts

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,10 @@ export const getLongText = (useLineBreaks = false, length = 1): string => {
2929
const longItemArray = Array(length).fill(longItem);
3030
const longString = longItemArray.join('');
3131

32-
const result = `${UUID}:${useLineBreaks ? lineBreaks : ''}${longString}`;
33-
34-
return result;
32+
return `${UUID}:${useLineBreaks ? lineBreaks : ''}${longString}`;
3533
};
3634

37-
export const getShortText = (useLineBreaks = false): string => {
38-
const value = `Short${useLineBreaks ? lineBreaks : ' '}text`;
39-
40-
return value;
41-
};
35+
export const getShortText = (useLineBreaks = false): string => `Short${useLineBreaks ? lineBreaks : ' '}text`;
4236

4337
export const generateMessages = (
4438
length: number,
@@ -49,8 +43,8 @@ export const generateMessages = (
4943
coefficient = 4,
5044
n = 1,
5145
isEdited = false,
52-
): Message[] => {
53-
const messages = Array.from({ length: length * n }, (_, i) => {
46+
): Message[] => (
47+
Array.from({ length: length * n }, (_, i) => {
5448
const text = useLongText
5549
? getLongText(useLineBreaks)
5650
: getShortText(useLineBreaks);
@@ -63,18 +57,14 @@ export const generateMessages = (
6357
return i % coefficient === 0 ? userFirst : userSecond;
6458
};
6559

66-
const item = {
60+
return {
6761
timestamp,
6862
author: getAuthor(),
6963
text,
7064
isEdited,
7165
};
72-
73-
return item;
74-
});
75-
76-
return messages;
77-
};
66+
})
67+
);
7868

7969
export const generateImageMessage = (
8070
user: User,

e2e/testcafe-devextreme/tests/chat/etalons/Alertlist appearance in RTL mode (fluent-blue-light).png renamed to e2e/testcafe-devextreme/tests/editors/chat/etalons/Alertlist appearance in RTL mode (fluent-blue-light).png

File renamed without changes.

e2e/testcafe-devextreme/tests/chat/etalons/Alertlist appearance in RTL mode (generic-light).png renamed to e2e/testcafe-devextreme/tests/editors/chat/etalons/Alertlist appearance in RTL mode (generic-light).png

File renamed without changes.

e2e/testcafe-devextreme/tests/chat/etalons/Alertlist appearance in RTL mode (material-blue-light).png renamed to e2e/testcafe-devextreme/tests/editors/chat/etalons/Alertlist appearance in RTL mode (material-blue-light).png

File renamed without changes.

e2e/testcafe-devextreme/tests/chat/etalons/Alertlist with long text in error (fluent-blue-dark).png renamed to e2e/testcafe-devextreme/tests/editors/chat/etalons/Alertlist with long text in error (fluent-blue-dark).png

File renamed without changes.

0 commit comments

Comments
 (0)