Commit 40c6dbf4 authored by Gabriel Monnerat's avatar Gabriel Monnerat

Add asserts to create events hitting enter

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45342 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fbca31c6
...@@ -165,6 +165,77 @@ ...@@ -165,6 +165,77 @@
<td>//input[@id=\'submit-search\']</td>\n <td>//input[@id=\'submit-search\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n
<td>waitForCondition</td>\n
<td>selenium.isElementPresent(\'//td[@id="event-date"]\')</td>\n
<td>4000</td>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//td[@id="event-date"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${ung_url}/calendar</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//span[@class="addcal"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>waitForCondition</td>\n
<td>selenium.isElementPresent("portal_type")</td>\n
<td>10000</td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>//select[@name="portal_type"]</td>\n
<td>Note</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="title"]</td>\n
<td>My Second Event</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//textarea[@name="event_text_content"]</td>\n
<td>Second Event</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="start_date_hour"]</td>\n
<td tal:content="python: DateTime().hour() + 1">hour</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name="stop_date_hour"]</td>\n
<td tal:content="python: DateTime().hour() + 1">hour</td>\n
</tr>\n
<tr>\n
<td>keyPress</td>\n
<td>//input[@name="stop_date_hour"]</td>\n
<td>\\13</td>\n
</tr>\n
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/wait_for_activities"/>\n
<tr>\n
<td>openAndWait</td>\n
<td>${ung_url}/calendar</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name=\'searchable-text\']</td>\n
<td>My Second Event</td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//input[@id=\'submit-search\']</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>waitForCondition</td>\n <td>waitForCondition</td>\n
<td>selenium.isElementPresent(\'//td[@id="event-date"]\')</td>\n <td>selenium.isElementPresent(\'//td[@id="event-date"]\')</td>\n
...@@ -175,6 +246,26 @@ ...@@ -175,6 +246,26 @@
<td>//td[@id="event-date"]</td>\n <td>//td[@id="event-date"]</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${ung_url}/calendar</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@name=\'searchable-text\']</td>\n
<td>My Second Event</td>\n
</tr>\n
<tr>\n
<td>keyPress</td>\n
<td>//input[@name=\'searchable-text\']</td>\n
<td>\\13</td>\n
</tr>\n
<tr>\n
<td>verifyTextNotPresent</td>\n
<td>No Results</td>\n
<td></td>\n
</tr>\n
</tbody>\n </tbody>\n
</table>\n </table>\n
</body>\n </body>\n
......
46 47
\ 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