Commit 39016ab1 authored by Gabriel Monnerat's avatar Gabriel Monnerat

add test to validate the upload of document

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45303 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 63a4464c
...@@ -367,11 +367,6 @@ ...@@ -367,11 +367,6 @@
<td>//input[@id="submit_document"]</td>\n <td>//input[@id="submit_document"]</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n
<td>click</td>\n
<td>//input[@id="submit_document"]</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>verifyText</td>\n <td>verifyText</td>\n
<td>//span[@id=\'no-input-file\']</td>\n <td>//span[@id=\'no-input-file\']</td>\n
...@@ -382,6 +377,41 @@ ...@@ -382,6 +377,41 @@
<td>Loading...</td>\n <td>Loading...</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//input[@id="upload-file"]</td>\n
<td></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
......
45 46
\ 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