Skip to content

Commit 4abc842

Browse files
authored
QUnit tests: remove testing in Firefox (#31381) (#31390)
1 parent 815dd81 commit 4abc842

File tree

4 files changed

+65
-276
lines changed

4 files changed

+65
-276
lines changed

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

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ inputs:
77
required: true
88
constel:
99
description: "Name of the test group"
10-
browser:
11-
description: "Name of the browser"
12-
default: "chrome"
1310
useJQuery:
1411
description: "Indicates if jQuery should be used"
1512
default: "false"
@@ -48,30 +45,10 @@ runs:
4845
# sudo apt-get install -y dbus-x11 httping x11vnc xvfb
4946

5047
- name: Setup Chrome
51-
if: ${{ inputs.browser == 'chrome' }}
5248
uses: ./.github/actions/setup-chrome-headless-shell
5349
with:
5450
chrome-version: '133.0.6943.53'
5551

56-
- name: Setup Firefox profile
57-
if: ${{ inputs.browser == 'firefox' }}
58-
shell: bash
59-
run: |
60-
mkdir -p /tmp/firefox-profile
61-
for p in \
62-
'"browser.shell.checkDefaultBrowser", false' \
63-
'"datareporting.policy.dataSubmissionEnabled", false' \
64-
'"font.name-list.monospace.x-western", "Liberation Mono"' \
65-
'"font.name-list.sans-serif.x-western", "Liberation Sans"' \
66-
'"font.name-list.serif.x-western", "Liberation Serif"' ; do echo "user_pref($p);" >> /tmp/firefox-profile/prefs.js; done
67-
68-
- name: Setup Firefox
69-
if: ${{ inputs.browser == 'firefox' }}
70-
id: setup-firefox
71-
uses: browser-actions/setup-firefox@v1
72-
with:
73-
firefox-version: '122.0.1'
74-
7552
- name: Use Node.js
7653
uses: actions/setup-node@v4
7754
with:
@@ -124,7 +101,6 @@ runs:
124101
shell: bash
125102
env:
126103
CONSTEL: ${{ inputs.constel }}
127-
BROWSER: ${{ inputs.browser }}
128104
JQUERY: ${{ inputs.useJQuery }}
129105
MOBILE_UA: ${{ inputs.userAgent }}
130106
SHADOW_DOM: ${{ inputs.useShadowDom }}

.github/workflows/pr-filter-stubs.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
with:
3333
script: core.setFailed('Changes in apps/**/*.md shouldn\'t be mixed with changes in other files')
3434

35-
# build_all.yml, demos_visual_tests.yml, packages_publishing.yml, playgrounds_tests.yml, qunit_tests-additional-renovation.yml, qunit_tests-renovation.yml, testcafe_tests.yml
35+
# build_all.yml, demos_visual_tests.yml, packages_publishing.yml, playgrounds_tests.yml, qunit_tests.yml, testcafe_tests.yml
3636
build1:
3737
name: 'build'
3838
needs: [ changesSegregation ]
@@ -85,21 +85,6 @@ jobs:
8585
runs-on: ubuntu-latest
8686
steps:
8787
- run: exit 1
88-
# qunit_tests-additional-renovation.yml - qunit-tests-mobile-and-shadow-dom
89-
qunit_tests-additional-renovation1:
90-
name: 'ui.htmlEditor-android6'
91-
needs: [ changesSegregation ]
92-
if: false
93-
runs-on: ubuntu-latest
94-
steps:
95-
- run: exit 1
96-
qunit_tests-additional-renovation2:
97-
name: 'ui.htmlEditor-firefox'
98-
needs: [ changesSegregation ]
99-
if: false
100-
runs-on: ubuntu-latest
101-
steps:
102-
- run: exit 1
10388
# qunit_tests
10489
qunit_tests1:
10590
name: 'Constel export'

.github/workflows/qunit_tests-additional-renovation.yml

Lines changed: 0 additions & 152 deletions
This file was deleted.

packages/devextreme/docker-ci.sh

Lines changed: 64 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -79,92 +79,72 @@ function run_test_impl {
7979

8080
echo "URL: $url"
8181

82-
case "$BROWSER" in
83-
84-
"firefox")
85-
kill -9 $(ps -x | grep firefox | awk '{print $1}') || true
86-
87-
local profile_path="/firefox-profile"
88-
[ "$GITHUBACTION" == "true" ] && profile_path="/tmp/firefox-profile"
89-
local firefox_args="-profile $profile_path $url"
90-
[ "$NO_HEADLESS" != "true" ] && firefox_args="-headless $firefox_args"
91-
92-
firefox --version
93-
echo "$firefox_args"
94-
95-
firefox $firefox_args &
96-
;;
97-
98-
*)
99-
local chrome_command=$CHROME_CMD
100-
local chrome_args=(
101-
--no-sandbox
102-
--headless
103-
--disable-gpu
104-
--disable-partial-raster
105-
--disable-skia-runtime-opts
106-
--no-first-run
107-
--run-all-compositor-stages-before-draw
108-
--disable-new-content-rendering-timeout
109-
--disable-background-timer-throttling
110-
--disable-renderer-backgrounding
111-
--disable-threaded-animation
112-
--disable-threaded-scrolling
113-
--disable-checker-imaging
114-
--disable-image-animation-resync
115-
--use-gl="swiftshader"
116-
--disable-features=PaintHolding
117-
--disable-features=ScriptStreaming
118-
--disable-features=LazyFrameLoading
119-
--font-render-hinting=none
120-
--disable-font-subpixel-positioning
121-
--disable-extensions
122-
)
123-
124-
if [ "$NO_HEADLESS" == "true" ]; then
125-
chrome_command="dbus-launch --exit-with-session $chrome_command"
126-
chrome_args+=(
127-
--no-first-run
128-
--no-default-browser-check
129-
--disable-translate
130-
)
131-
fi
82+
local chrome_command=$CHROME_CMD
83+
local chrome_args=(
84+
--no-sandbox
85+
--headless
86+
--disable-gpu
87+
--disable-partial-raster
88+
--disable-skia-runtime-opts
89+
--no-first-run
90+
--run-all-compositor-stages-before-draw
91+
--disable-new-content-rendering-timeout
92+
--disable-background-timer-throttling
93+
--disable-renderer-backgrounding
94+
--disable-threaded-animation
95+
--disable-threaded-scrolling
96+
--disable-checker-imaging
97+
--disable-image-animation-resync
98+
--use-gl="swiftshader"
99+
--disable-features=PaintHolding
100+
--disable-features=ScriptStreaming
101+
--disable-features=LazyFrameLoading
102+
--font-render-hinting=none
103+
--disable-font-subpixel-positioning
104+
--disable-extensions
105+
)
132106

133-
if [ -n "$MOBILE_UA" ]; then
134-
local user_agent
135-
136-
if [ "$MOBILE_UA" == "ios10" ]; then
137-
user_agent="Mozilla/5.0 (iPad; CPU OS 10_2_1 like Mac OS X) AppleWebKit/602.4.6 (KHTML, like Gecko) Version/10.0 Mobile/14D27 Safari/602.1)"
138-
elif [ "$MOBILE_UA" == "android6" ]; then
139-
user_agent="Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Mobile Safari/537.36"
140-
else
141-
return 1
142-
fi
143-
144-
echo "Mobile user agent: $MOBILE_UA"
145-
146-
chrome_args+=(
147-
--user-agent="'$user_agent'"
148-
--enable-viewport
149-
--touch-events
150-
--enable-overlay-scrollbar
151-
--enable-features=OverlayScrollbar
152-
)
153-
fi
154-
if [ "$GITHUBACTION" == "true" ]; then
155-
echo "$chrome_command"
156-
printf ' %s\n' "${chrome_args[@]}"
157-
else
158-
tput setaf 6
159-
echo "$chrome_command"
160-
printf ' %s\n' "${chrome_args[@]}"
161-
tput setaf 9
162-
fi
163-
eval "$chrome_command --version"
164-
eval "$chrome_command ${chrome_args[@]} '$url'" &>chrome.log &
165-
;;
107+
if [ "$NO_HEADLESS" == "true" ]; then
108+
chrome_command="dbus-launch --exit-with-session $chrome_command"
109+
chrome_args+=(
110+
--no-first-run
111+
--no-default-browser-check
112+
--disable-translate
113+
)
114+
fi
115+
116+
if [ -n "$MOBILE_UA" ]; then
117+
local user_agent
166118

167-
esac
119+
if [ "$MOBILE_UA" == "ios10" ]; then
120+
user_agent="Mozilla/5.0 (iPad; CPU OS 10_2_1 like Mac OS X) AppleWebKit/602.4.6 (KHTML, like Gecko) Version/10.0 Mobile/14D27 Safari/602.1)"
121+
elif [ "$MOBILE_UA" == "android6" ]; then
122+
user_agent="Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Mobile Safari/537.36"
123+
else
124+
return 1
125+
fi
126+
127+
echo "Mobile user agent: $MOBILE_UA"
128+
129+
chrome_args+=(
130+
--user-agent="'$user_agent'"
131+
--enable-viewport
132+
--touch-events
133+
--enable-overlay-scrollbar
134+
--enable-features=OverlayScrollbar
135+
)
136+
fi
137+
if [ "$GITHUBACTION" == "true" ]; then
138+
echo "$chrome_command"
139+
printf ' %s\n' "${chrome_args[@]}"
140+
else
141+
tput setaf 6
142+
echo "$chrome_command"
143+
printf ' %s\n' "${chrome_args[@]}"
144+
tput setaf 9
145+
fi
146+
eval "$chrome_command --version"
147+
eval "$chrome_command ${chrome_args[@]} '$url'" &>chrome.log &
168148

169149
start_runner_watchdog $runner_pid
170150
wait $runner_pid || runner_result=1

0 commit comments

Comments
 (0)