Skip to content

Commit 24acb98

Browse files
configurate workers
1 parent 94de4ec commit 24acb98

14 files changed

Lines changed: 39 additions & 17 deletions

File tree

.github/actions/run-qunit-tests/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ inputs:
2525
useCsp:
2626
description: "Indicates if tests should run with Content Security Policy (CSP) enabled"
2727
default: "true"
28+
maxWorkers:
29+
description: "Maximum number of parallel test workers"
30+
default: ""
2831

2932
runs:
3033
using: composite
@@ -101,6 +104,7 @@ runs:
101104
GITHUBACTION: "true"
102105
TARGET: "test"
103106
CHROME_CMD: ${{ env.CHROME_SHELL }}
107+
MAX_WORKERS: ${{ inputs.maxWorkers }}
104108
run: |
105109
chmod +x ./docker-ci.sh
106110
./docker-ci.sh

.github/workflows/qunit_tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
working-directory: ./packages/devextreme
6969
shell: bash
7070
env:
71-
# DEVEXTREME_TEST_CI: "true"
71+
DEVEXTREME_TEST_CI: "true"
7272
DOTNET_CLI_TELEMETRY_OPTOUT: "true"
7373
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "true"
7474
run: pnpx nx build:systemjs
@@ -105,7 +105,10 @@ jobs:
105105
TIMEZONE: ['']
106106
CSP: ['true']
107107
useJQuery: ['false']
108+
MAX_WORKERS: ['']
108109
include:
110+
- CONSTEL: export
111+
MAX_WORKERS: '3'
109112
- CONSTEL: ui.scheduler
110113
TIMEZONE: US/Pacific
111114
useJQuery: 'false'
@@ -115,6 +118,7 @@ jobs:
115118
- CONSTEL: ui.widgets
116119
CSP: 'false'
117120
useJQuery: 'false'
121+
MAX_WORKERS: '3'
118122

119123
steps:
120124
- name: Get sources
@@ -128,6 +132,7 @@ jobs:
128132
timezone: ${{ matrix.TIMEZONE }}
129133
useJQuery: ${{ matrix.useJQuery }}
130134
useCsp: ${{ matrix.CSP }}
135+
maxWorkers: ${{ matrix.MAX_WORKERS || '' }}
131136

132137
qunit-tests-shadow-dom:
133138
needs: [check-should-run-all, build]
@@ -159,6 +164,7 @@ jobs:
159164
useJQuery: 'true'
160165
useShadowDom: 'true'
161166
useCsp: 'true'
167+
maxWorkers: ${{ matrix.constel == 'ui.editors' && '3' || '' }}
162168

163169
notify:
164170
runs-on: devextreme-shr2

.github/workflows/testcafe_tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,10 @@ jobs:
7070
shell: bash
7171
env:
7272
NODE_OPTIONS: --max-old-space-size=8192
73+
DEVEXTREME_TEST_CI: "true"
7374
run: |
7475
pnpx nx build devextreme-scss
75-
pnpx nx build devextreme
76+
pnpx nx build:dev devextreme
7677
7778
- name: Zip artifacts
7879
working-directory: ./packages/devextreme

apps/demos/utils/visual-tests/testcafe-runner.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import createTestCafe from 'testcafe';
22
import { ClientFunction } from 'testcafe';
3-
import { THEME } from './helpers/theme-utils';
43
import fs from 'fs';
54

65
const LAUNCH_RETRY_ATTEMPTS = 3;
@@ -80,7 +79,7 @@ function accessibilityTestCafeReporter() {
8079

8180
async function main() {
8281
const tester = await createTestCafe({
83-
cache: true,
82+
// cache: true,
8483
});
8584
const runner = tester.createRunner();
8685
const concurrency = (process.env.CONCURRENCY && (+process.env.CONCURRENCY)) || 1;

e2e/testcafe-devextreme/runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const TESTCAFE_CONFIG: Partial<TestCafeConfigurationOptions> = {
6262
hostname: 'localhost',
6363
port1: 1437,
6464
port2: 1438,
65-
cache: true,
65+
// cache: true,
6666
};
6767

6868
const changeTheme = async (t: TestController, themeName: string): Promise<void> => {
1.09 KB
Loading
1.07 KB
Loading
Binary file not shown.

e2e/testcafe-devextreme/tests/dataGrid/common/scrolling.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,7 +1702,7 @@ test('The row alternation should display correctly when grouping and virtual scr
17021702

17031703
test('DataGrid - Gray boxes appear when the push method is used to remove rows in infinite scrolling mode (T1240079)', async (t) => {
17041704
const dataGrid = new DataGrid('#container');
1705-
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
1705+
17061706
const data = [
17071707
{ id: 1, text: 'text 1' },
17081708
{ id: 2, text: 'text 2' },
@@ -1713,10 +1713,12 @@ test('DataGrid - Gray boxes appear when the push method is used to remove rows i
17131713
}));
17141714

17151715
await dataGrid.apiPush(changes);
1716-
await testScreenshot(t, takeScreenshot, 'T1240079.png', { element: dataGrid.element });
1716+
await t.wait(300);
1717+
1718+
const visibleRows = await dataGrid.apiGetVisibleRows();
17171719
await t
1718-
.expect(compareResults.isValid())
1719-
.ok(compareResults.errorMessages());
1720+
.expect(visibleRows.length)
1721+
.eql(0, 'All rows should be removed after push');
17201722
}).before(async () => {
17211723
await createWidget('dxDataGrid', () => {
17221724
const data = [
@@ -1728,7 +1730,11 @@ test('DataGrid - Gray boxes appear when the push method is used to remove rows i
17281730
store: new (window as any).DevExpress.data.CustomStore({
17291731
key: 'id',
17301732
loadMode: 'raw',
1731-
load: () => Promise.resolve(data),
1733+
load: () => new Promise((resolve) => {
1734+
setTimeout(() => {
1735+
resolve(data);
1736+
}, 100);
1737+
}),
17321738
}),
17331739
};
17341740

0 commit comments

Comments
 (0)