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
Léo-Paul Géneau
erp5
Commits
beb7c272
Commit
beb7c272
authored
Oct 01, 2020
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs_support_request_ui_test: Make sure we can access image attached to support requests
parent
2fa0e5f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
2 deletions
+46
-2
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testAddSupportRequestAttachment.zpt
...port_request_ui_zuite/testAddSupportRequestAttachment.zpt
+10
-2
bt5/erp5_officejs_support_request_ui_test/SkinTemplateItem/portal_skins/erp5_officejs_support_request_test/test_support_request_png.png.png
...ejs_support_request_test/test_support_request_png.png.png
+0
-0
bt5/erp5_officejs_support_request_ui_test/SkinTemplateItem/portal_skins/erp5_officejs_support_request_test/test_support_request_png.png.xml
...ejs_support_request_test/test_support_request_png.png.xml
+36
-0
No files found.
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testAddSupportRequestAttachment.zpt
View file @
beb7c272
...
@@ -127,7 +127,8 @@
...
@@ -127,7 +127,8 @@
<tal:block
tal:repeat=
"filename python: ['test_support_request_presentation.pptx',
<tal:block
tal:repeat=
"filename python: ['test_support_request_presentation.pptx',
'test_support_request_spreadsheet.xlsx',
'test_support_request_spreadsheet.xlsx',
'test_support_request_docx.docx',
'test_support_request_docx.docx',
'test_support_request_txt.txt']"
>
'test_support_request_txt.txt',
'test_support_request_png.png']"
>
<tr>
<tr>
<td>
setFile
</td>
<td>
setFile
</td>
<td>
attachment
</td>
<td>
attachment
</td>
...
@@ -196,7 +197,8 @@
...
@@ -196,7 +197,8 @@
'test_support_request_presentation.pptx',
'test_support_request_presentation.pptx',
'test_support_request_spreadsheet.xlsx',
'test_support_request_spreadsheet.xlsx',
'test_support_request_docx.docx',
'test_support_request_docx.docx',
'test_support_request_txt.txt']"
>
'test_support_request_txt.txt',
'test_support_request_png.png']"
>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td
tal:content=
"string: //a[contains(text(), '${filename}')]"
></td>
<td
tal:content=
"string: //a[contains(text(), '${filename}')]"
></td>
...
@@ -207,11 +209,17 @@
...
@@ -207,11 +209,17 @@
<td
tal:content=
"string: //a[contains(text(), '${filename}')]"
></td>
<td
tal:content=
"string: //a[contains(text(), '${filename}')]"
></td>
<td></td>
<td></td>
</tr>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<tr
tal:define=
"title python: filename.split('.')[0]"
>
<tr
tal:define=
"title python: filename.split('.')[0]"
>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td
tal:content=
"python: '//div[@class=\'ui-header\']/h1/a[contains(text(), \'{}\')]'.format(title)"
></td>
<td
tal:content=
"python: '//div[@class=\'ui-header\']/h1/a[contains(text(), \'{}\')]'.format(title)"
></td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
assertTextNotPresent
</td>
<td>
undefined
</td>
<td></td>
</tr>
<tr
tal:define=
"title python: filename.split('.')[0]"
>
<tr
tal:define=
"title python: filename.split('.')[0]"
>
<td>
click
</td>
<td>
click
</td>
<td
tal:content=
"python: '//div[@class=\'ui-header\']/h1/a[contains(text(), \'{}\')]'.format(title)"
></td>
<td
tal:content=
"python: '//div[@class=\'ui-header\']/h1/a[contains(text(), \'{}\')]'.format(title)"
></td>
...
...
bt5/erp5_officejs_support_request_ui_test/SkinTemplateItem/portal_skins/erp5_officejs_support_request_test/test_support_request_png.png.png
0 → 100644
View file @
beb7c272
48.9 KB
bt5/erp5_officejs_support_request_ui_test/SkinTemplateItem/portal_skins/erp5_officejs_support_request_test/test_support_request_png.png.xml
0 → 100644
View file @
beb7c272
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Image"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
test_support_request_png.png
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
image/png
</string>
</value>
</item>
<item>
<key>
<string>
height
</string>
</key>
<value>
<int>
399
</int>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
test_support_request_png.png
</string>
</value>
</item>
<item>
<key>
<string>
width
</string>
</key>
<value>
<int>
1065
</int>
</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