Commit 6ab0e904 authored by Gabriel Monnerat's avatar Gabriel Monnerat

Add test to validate the upload of document in UNG Docs

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45352 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6e532c9d
...@@ -155,6 +155,16 @@ ...@@ -155,6 +155,16 @@
<td>//a[@name="document_title"]</td>\n <td>//a[@name="document_title"]</td>\n
<td>Web Table</td>\n <td>Web Table</td>\n
</tr>\n </tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//td[@id=\'0_table0_cell_c0_r1\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//td[@id=\'0_table0_cell_c1_r1\']</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>verifyText</td>\n <td>verifyText</td>\n
<td>//td[@id="jSheetTitle_0"]</td>\n <td>//td[@id="jSheetTitle_0"]</td>\n
...@@ -352,6 +362,12 @@ ...@@ -352,6 +362,12 @@
<td>Help</td>\n <td>Help</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tal:block tal:repeat="index python:range(2)">\n
<tr>\n
<td>clickAndWait</td>\n
<td>//a[@class="ung_docs"]</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//input[@id="upload"]</td>\n <td>//input[@id="upload"]</td>\n
...@@ -412,6 +428,62 @@ ...@@ -412,6 +428,62 @@
<td>TioLive Spreadsheet</td>\n <td>TioLive Spreadsheet</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n
<td>verifyAttribute</td>\n
<td>//td[@id=\'0_table0_cell_c0_r1\']@sdval</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>verifyAttribute</td>\n
<td>//td[@id=\'0_table0_cell_c1_r1\']@sdval</td>\n
<td>2</td>\n
</tr>\n
</tal:block>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//a[@class="ung_docs"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//input[@id="upload"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>//select[@name="portal_type"]</td>\n
<td>Web Page</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@id="upload-file"]</td>\n
<td tal:content="python: here.Zuite_getFilenameLocation(\'tiolive-ERP5.Freedom.TioLive.Spreadsheet-001-en.ods\')"></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@id="submit_document"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>waitForCondition</td>\n
<td>selenium.isTextPresent("Opening")</td>\n
<td>30000</td>\n
</tr>\n
<tr>\n
<td>waitForPageToLoad</td>\n
<td>30000</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>waitForCondition</td>\n
<td>selenium.isElementPresent("//a[@name=\'document_title\']")</td>\n
<td>30000</td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>TioLive Spreadsheet</td>\n
<td></td>\n
</tr>\n
</tbody>\n </tbody>\n
</table>\n </table>\n
</body>\n </body>\n
......
47 48
\ No newline at end of file \ No newline at end of file
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