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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Georgios Dagkakis
erp5
Commits
83d14f9e
Commit
83d14f9e
authored
Nov 06, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5TypeFunctionalTestCase: configure firefox to download PDFs
parent
2d11e356
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 @
83d14f9e
...
...
@@ -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