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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yusei Tahara
erp5
Commits
b1a8821b
Commit
b1a8821b
authored
Aug 15, 2019
by
Yusei Tahara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_km_ui_test] Fix file uploading tests. Use setFile selenium command to avoid security error.
parent
3bbe9d34
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
13 deletions
+54
-13
bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/km_gadgets/testMyDocumentsGadget.zpt
..._tests/erp5_km_zuite/km_gadgets/testMyDocumentsGadget.zpt
+9
-5
bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/testCheckPDFThumbnail.zpt
...Item/portal_tests/erp5_km_zuite/testCheckPDFThumbnail.zpt
+8
-4
bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/testCreateNewFile.zpt
...lateItem/portal_tests/erp5_km_zuite/testCreateNewFile.zpt
+8
-4
bt5/erp5_km_ui_test/bt/dependency_list
bt5/erp5_km_ui_test/bt/dependency_list
+1
-0
bt5/erp5_ui_test_data/SkinTemplateItem/portal_skins/erp5_ui_test_data/functional_test_data_folder/tiolive-ERP5.Freedom.TioLive.MultiplePages.PDF-001-en.pdf.pdf
...ive-ERP5.Freedom.TioLive.MultiplePages.PDF-001-en.pdf.pdf
+0
-0
bt5/erp5_ui_test_data/SkinTemplateItem/portal_skins/erp5_ui_test_data/functional_test_data_folder/tiolive-ERP5.Freedom.TioLive.MultiplePages.PDF-001-en.pdf.xml
...ive-ERP5.Freedom.TioLive.MultiplePages.PDF-001-en.pdf.xml
+28
-0
No files found.
bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/km_gadgets/testMyDocumentsGadget.zpt
View file @
b1a8821b
...
...
@@ -4,8 +4,7 @@
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title>
testMyDocumentsGadget
</title>
</head>
<body
tal:define=
"file_name string:tiolive-ERP5.Freedom.TioLive.Spreadsheet-001-en.ods;
full_filename_location python: here.Zuite_getFilenameLocation(file_name)"
>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"3"
>
testMyDocumentsGadget
</td></tr>
...
...
@@ -31,9 +30,14 @@
<td></td>
</tr>
<tr>
<td>
typ
e
</td>
<td>
setFil
e
</td>
<td>
field_your_file
</td>
<td
tal:content=
"full_filename_location"
></td>
<td>
${base_url}/functional_test_data_folder/tiolive-ERP5.Freedom.TioLive.Spreadsheet-001-en.ods tiolive-ERP5.Freedom.TioLive.Spreadsheet-001-en.ods
</td>
</tr>
<tr>
<td>
pause
</td>
<td>
10000
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
...
...
@@ -92,7 +96,7 @@
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td
tal:content=
"file_name"
>
</td>
<td
>
tiolive-ERP5.Freedom.TioLive.Spreadsheet-001-en.ods
</td>
<td></td>
</tr>
<tr>
...
...
bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/testCheckPDFThumbnail.zpt
View file @
b1a8821b
...
...
@@ -4,8 +4,7 @@
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title>
testCheckPDFThumbnail
</title>
</head>
<body
tal:define=
"file_name string:tiolive-ERP5.Freedom.TioLive.MultiplePages.PDF-001-en.pdf;
full_filename_location python: here.Zuite_getFilenameLocation(file_name)"
>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"3"
>
testCheckPDFThumbnail
</td></tr>
...
...
@@ -26,9 +25,14 @@
<td></td>
</tr>
<tr>
<td>
typ
e
</td>
<td>
setFil
e
</td>
<td>
field_your_file
</td>
<td
tal:content=
"full_filename_location"
></td>
<td>
${base_url}/functional_test_data_folder/tiolive-ERP5.Freedom.TioLive.MultiplePages.PDF-001-en.pdf tiolive-ERP5.Freedom.TioLive.MultiplePages.PDF-001-en.pdf
</td>
</tr>
<tr>
<td>
pause
</td>
<td>
10000
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
...
...
bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/testCreateNewFile.zpt
View file @
b1a8821b
...
...
@@ -4,8 +4,7 @@
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title>
testCreateNewFile
</title>
</head>
<body
tal:define=
"file_name string:tiolive-ERP5.DMS.TioLive-001-en.odp;
full_filename_location python: here.Zuite_getFilenameLocation(file_name)"
>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"3"
>
testCreateNewFile
</td></tr>
...
...
@@ -31,9 +30,14 @@
<td></td>
</tr>
<tr>
<td>
typ
e
</td>
<td>
setFil
e
</td>
<td>
field_your_file
</td>
<td
tal:content=
"full_filename_location"
></td>
<td>
${base_url}/functional_test_data_folder/tiolive-ERP5.DMS.TioLive-001-en.odp tiolive-ERP5.DMS.TioLive-001-en.odp
</td>
</tr>
<tr>
<td>
pause
</td>
<td>
10000
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
...
...
bt5/erp5_km_ui_test/bt/dependency_list
View file @
b1a8821b
erp5_ui_test_core
erp5_ui_test_data
erp5_dms_ui_test
erp5_km
erp5_km_ui_test_data
...
...
bt5/erp5_ui_test_data/SkinTemplateItem/portal_skins/erp5_ui_test_data/functional_test_data_folder/tiolive-ERP5.Freedom.TioLive.MultiplePages.PDF-001-en.pdf.pdf
0 → 100644
View file @
b1a8821b
File added
bt5/erp5_ui_test_data/SkinTemplateItem/portal_skins/erp5_ui_test_data/functional_test_data_folder/tiolive-ERP5.Freedom.TioLive.MultiplePages.PDF-001-en.pdf.xml
0 → 100644
View file @
b1a8821b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
tiolive-ERP5.Freedom.TioLive.MultiplePages.PDF-001-en.pdf
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
application/pdf
</string>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
tiolive-ERP5.Freedom.TioLive.MultiplePages.PDF-001-en.pdf
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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