Skip to content

Commit a0a2ad4

Browse files
e2e demos tests: switch on native automation (DevExpress#31362)
Co-authored-by: Andrei Kharitonov <pharret31@gmail.com>
1 parent 8fcb166 commit a0a2ad4

1,596 files changed

Lines changed: 487 additions & 370 deletions

File tree

Some content is hidden

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

.github/workflows/demos_visual_tests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: echo "should-run=${{ env.RUN_TESTS }}" >> $GITHUB_OUTPUT
3131

3232
build:
33-
runs-on: ubuntu-22.04
33+
runs-on: devextreme-shr2
3434
name: Build devextreme
3535
needs: check-should-run
3636
if: needs.check-should-run.outputs.should-run == 'true'
@@ -78,7 +78,8 @@ jobs:
7878
fail-fast: false
7979
matrix:
8080
STRATEGY: [screenshots, accessibility]
81-
THEME: ['material.blue.light', 'fluent.blue.light']
81+
# THEME: ['material.blue.light', 'fluent.blue.light']
82+
THEME: ['fluent.blue.light']
8283
CONSTEL: [jquery(1/4), jquery(2/4), jquery(3/4), jquery(4/4), jquery]
8384
exclude:
8485
- STRATEGY: accessibility
@@ -94,7 +95,7 @@ jobs:
9495
env:
9596
ACCESSIBILITY_TESTCAFE_REPORT_PATH: "accessibility_testcafe_report"
9697

97-
runs-on: ubuntu-22.04
98+
runs-on: devextreme-shr2
9899
name: ${{ matrix.CONSTEL }}-${{ matrix.STRATEGY }}-${{ matrix.THEME }}
99100
timeout-minutes: 30
100101

@@ -105,7 +106,7 @@ jobs:
105106
- name: Setup Chrome
106107
uses: ./.github/actions/setup-chrome
107108
with:
108-
chrome-version: '133.0.6943.53'
109+
chrome-version: '141.0.7390.122'
109110
runner-type: 'github-hosted'
110111

111112
- name: Use Node.js
@@ -151,7 +152,7 @@ jobs:
151152
env:
152153
STRATEGY: ${{ matrix.STRATEGY }}
153154
CHANGEDFILEINFOSPATH: changed-files.json
154-
BROWSERS: chrome:headless --disable-partial-raster --disable-skia-runtime-opts --run-all-compositor-stages-before-draw --disable-new-content-rendering-timeout --disable-threaded-animation --disable-threaded-scrolling --disable-checker-imaging --disable-image-animation-resync --use-gl="swiftshader" --disable-features=PaintHolding --js-flags=--random-seed=2147483647 --font-render-hinting=none --disable-font-subpixel-positioning
155+
BROWSERS: chrome:headless --disable-gpu --no-sandbox --disable-dev-shm-usage --disable-partial-raster --disable-skia-runtime-opts --run-all-compositor-stages-before-draw --disable-new-content-rendering-timeout --disable-threaded-animation --disable-threaded-scrolling --disable-checker-imaging --disable-image-animation-resync --use-gl="swiftshader" --disable-features=PaintHolding --js-flags=--random-seed=2147483647 --font-render-hinting=none --disable-font-subpixel-positioning
155156
#DEBUG: hammerhead:*,testcafe:*
156157
CONCURRENCY: 4
157158
TCQUARANTINE: true

.github/workflows/demos_visual_tests_frameworks.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ jobs:
3030
run: echo "should-run=${{ env.RUN_TESTS }}" >> $GITHUB_OUTPUT
3131

3232
build-devextreme:
33-
runs-on: ubuntu-22.04
33+
runs-on: devextreme-shr2
3434
name: Build DevExtreme
3535
needs: check-should-run
3636
if: needs.check-should-run.outputs.should-run == 'true'
37+
env:
38+
NODE_OPTIONS: "--max-old-space-size=8192"
3739
timeout-minutes: 40
3840

3941
steps:
@@ -93,7 +95,7 @@ jobs:
9395
retention-days: 1
9496

9597
build-demos:
96-
runs-on: ubuntu-22.04
98+
runs-on: devextreme-shr2
9799
name: Build Demos
98100
timeout-minutes: 20
99101
needs: [check-should-run, build-devextreme]
@@ -149,12 +151,14 @@ jobs:
149151
- name: Prepare bundles
150152
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'force all tests')
151153
working-directory: apps/demos
154+
env:
155+
NODE_OPTIONS: "--max-old-space-size=8192"
152156
run: pnpx nx prepare-bundles
153157

154158
- name: Demos - Run tsc
155159
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'force all tests')
156160
working-directory: apps/demos
157-
run: tsc --noEmit
161+
run: pnpm exec tsc --noEmit
158162

159163
- name: Copy build artifacts
160164
uses: actions/upload-artifact@v4
@@ -165,7 +169,7 @@ jobs:
165169
retention-days: 1
166170

167171
get-changes:
168-
runs-on: ubuntu-22.04
172+
runs-on: devextreme-shr2
169173
needs: check-should-run
170174
if: github.event_name == 'pull_request' && needs.check-should-run.outputs.should-run == 'true'
171175
name: Get changed demos
@@ -263,7 +267,7 @@ jobs:
263267
needs: [check-should-run, build-devextreme]
264268
if: needs.check-should-run.outputs.should-run == 'true'
265269

266-
runs-on: ubuntu-22.04
270+
runs-on: devextreme-shr2
267271
timeout-minutes: 60
268272

269273
steps:
@@ -349,7 +353,7 @@ jobs:
349353
350354
check_generated_demos:
351355
name: ${{ matrix.name }}
352-
runs-on: ubuntu-22.04
356+
runs-on: devextreme-shr2
353357
timeout-minutes: 10
354358
needs: [check-should-run, build-devextreme]
355359
if: needs.check-should-run.outputs.should-run == 'true'
@@ -444,7 +448,7 @@ jobs:
444448
CONSTEL: [react(1/4), react(2/4), react(3/4), react(4/4), vue(1/4), vue(2/4), vue(3/4), vue(4/4), angular(1/4), angular(2/4), angular(3/4), angular(4/4)]
445449
THEME: ['fluent.blue.light']
446450

447-
runs-on: ubuntu-22.04
451+
runs-on: devextreme-shr2
448452
name: testcafe-${{ matrix.CONSTEL }}-${{ matrix.THEME }}
449453
timeout-minutes: 60
450454

@@ -455,7 +459,7 @@ jobs:
455459
- name: Setup Chrome
456460
uses: ./.github/actions/setup-chrome
457461
with:
458-
chrome-version: '133.0.6943.53'
462+
chrome-version: '141.0.7390.122'
459463
runner-type: 'github-hosted'
460464

461465
- name: Use Node.js
@@ -523,7 +527,7 @@ jobs:
523527
working-directory: apps/demos
524528
env:
525529
CHANGEDFILEINFOSPATH: changed-files.json
526-
BROWSERS: chrome:headless --window-size=1200,800 --disable-partial-raster --disable-skia-runtime-opts --run-all-compositor-stages-before-draw --disable-new-content-rendering-timeout --disable-threaded-animation --disable-threaded-scrolling --disable-checker-imaging --disable-image-animation-resync --use-gl="swiftshader" --disable-features=PaintHolding --js-flags=--random-seed=2147483647 --font-render-hinting=none --disable-font-subpixel-positioning
530+
BROWSERS: chrome:headless --window-size=1200,800 --disable-gpu --no-sandbox --disable-dev-shm-usage --disable-partial-raster --disable-skia-runtime-opts --run-all-compositor-stages-before-draw --disable-new-content-rendering-timeout --disable-threaded-animation --disable-threaded-scrolling --disable-checker-imaging --disable-image-animation-resync --use-gl="swiftshader" --disable-features=PaintHolding --js-flags=--random-seed=2147483647 --font-render-hinting=none --disable-font-subpixel-positioning
527531
# DEBUG: hammerhead:*,testcafe:*
528532
CONCURRENCY: 4
529533
TCQUARANTINE: true
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
testUtils.importAnd(() => 'devextreme/ui/calendar', () => DevExpress.ui.dxCalendar, (dxCalendar) => testUtils
2-
.postponeUntilFound('.dx-calendar', 100, 10000)
2+
.postponeUntilFound('.dx-calendar', 100, 5000)
33
.then(() => {
44
const instance = dxCalendar.getInstance(document.querySelector('.dx-calendar'));
55
instance.option('value', [new Date('2023/08/19'), new Date('2023/08/20')]);
66
})
7-
.then(() => testUtils.postpone(2000)));
7+
.then(() => testUtils.postpone(1000)),
8+
);
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
testUtils.importAnd(() => 'devextreme/ui/calendar', () => DevExpress.ui.dxCalendar, (dxCalendar) => testUtils
2-
.postponeUntilFound('.dx-calendar', 100, 10000)
2+
.postponeUntilFound('.dx-calendar', 100, 5000)
33
.then(() => {
44
const instance = dxCalendar.getInstance(document.querySelector('.dx-calendar'));
55
instance.option('value', new Date('Mon Oct 10 2014 14:18:19'));
66
})
7-
.then(() => testUtils.postpone(2000)));
7+
.then(() => testUtils.postpone(1000)),
8+
);

apps/demos/Demos/Charts/AxisCustomPosition/Vue/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!DOCTYPE html>
22
<html lang="en">
33
<head>
44
<title>DevExtreme Demo</title>

apps/demos/Demos/Charts/AxisCustomPosition/jQuery/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!DOCTYPE html>
22
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
33
<head>
44
<title>DevExtreme Demo</title>

apps/demos/Demos/Charts/AxisCustomPosition/test-code.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,11 @@ testUtils.importAnd(() => 'devextreme/viz/chart', () => DevExpress.viz.dxChart,
243243
];
244244

245245
return testUtils
246-
.postponeUntilFound('#chart', 100, 10000)
246+
.postponeUntilFound('#chart', 100, 5000)
247247
.then(() => {
248248
const instance = dxChart.getInstance(document.querySelector('#chart'));
249249
instance.option('dataSource', dataSource);
250250

251251
testUtils.mockOptionMethod(instance);
252-
})
253-
.then(() => testUtils.postpone(2000));
252+
});
254253
});

apps/demos/Demos/Charts/LegendMarkersCustomization/test-code.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/demos/Demos/Charts/LoadDataOnDemand/test-code.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ testUtils.importAnd(() => ['devextreme/viz/chart', 'devextreme/data/data_source'
77
const dataSource = new DataSource(dataSourceItems);
88

99
return testUtils
10-
.postponeUntilFound('#chart', 100, 10000)
10+
.postponeUntilFound('#chart', 100, 5000)
1111
.then(() => {
1212
const instance = dxChart.getInstance(document.querySelector('#chart'));
1313
instance.option('dataSource', dataSource);
14-
})
15-
.then(() => testUtils.postpone(2000));
14+
});
1615
});

apps/demos/Demos/Charts/PolarChartAnnotations/Angular/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<dx-polar-chart
1+
<dx-polar-chart
22
id="radarChart"
33
[dataSource]="temperaturesData"
44
title="Average temperature in London"

0 commit comments

Comments
 (0)