Commit beb7c272 authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_officejs_support_request_ui_test: Make sure we can access image attached to support requests

parent 2fa0e5f9
...@@ -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>
......
<?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>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment