Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
fa5082bc
Commit
fa5082bc
authored
Nov 06, 2023
by
Jérome Perrin
Committed by
Kazuhiko Shiozaki
Jul 11, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5TypeFunctionalTestCase: configure firefox to download PDFs
parent
5bbc96cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
+11
-0
No files found.
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
View file @
fa5082bc
...
...
@@ -233,6 +233,17 @@ class FunctionalTestRunner:
options
.
set_preference
(
'dom.serviceWorkers.enabled'
,
True
)
# output javascript console and errors on stdout to help diagnosing failures
options
.
set_preference
(
'devtools.console.stdout.content'
,
True
)
# Always download attachments and do not open PDF inline, otherwise the
# browser's active would tab lose the focus
download_dir
=
os
.
path
.
join
(
log_directory
,
'downloads'
)
if
not
os
.
path
.
exists
(
download_dir
):
os
.
mkdir
(
download_dir
)
options
.
set_preference
(
"browser.download.dir"
,
download_dir
)
options
.
set_preference
(
"browser.helperApps.neverAsk.saveToDisk"
,
"application/pdf"
)
options
.
set_preference
(
"browser.download.folderList"
,
2
)
options
.
set_preference
(
"browser.download.manager.showWhenStarting"
,
False
)
options
.
set_preference
(
"dom.block_download_insecure"
,
False
)
options
.
set_preference
(
"pdfjs.disabled"
,
True
)
selenium_test_runner_configuration
=
{}
test_runner_configuration_file
=
os
.
environ
.
get
(
'ERP5_TEST_RUNNER_CONFIGURATION'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment