Commit cb66f54f authored by Ivan Tyagov's avatar Ivan Tyagov

Add testing pressing an enter in gadget edit preferences. Clean up test.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39434 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4d9d9479
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</item> </item>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <unicode encoding="cdata"><![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n <html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">\n xmlns:metal="http://xml.zope.org/namespaces/metal">\n
...@@ -50,21 +50,6 @@ ...@@ -50,21 +50,6 @@
\n \n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/init">init</span>\n <span metal:use-macro="container/Zuite_CommonTemplate/macros/init">init</span>\n
\n \n
<!--<tr>\n
<td>store</td>\n
<td tal:content="python: here.portal_preferences.getPreferredWitchToolServerRoot()"></td>\n
<td>remote_nexedi_erp5_instance_id</td>\n
</tr>\n
<tr>\n
<td>store</td>\n
<td>${base_url}/portal_wizard/proxy/${remote_nexedi_erp5_instance_id}/web_site_module/yuna_kb</td>\n
<td>km_base_url</td>\n
</tr>\n
<tr>\n
<td>store</td>\n
<td>erp5_site_selected_tab=express_support_tab</td>\n
<td>base_jump</td>\n
</tr>-->\n
<!-- Set longer timeout. -->\n <!-- Set longer timeout. -->\n
<tr>\n <tr>\n
<td>setTimeout</td>\n <td>setTimeout</td>\n
...@@ -72,8 +57,6 @@ ...@@ -72,8 +57,6 @@
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
<!--<span metal:use-macro="container/ExpressZuite_viewTestMacroLibrary/macros/login_as_express_user"> Switch to Express User</span>-->\n
\n
<tr>\n <tr>\n
<td>openAndWait</td>\n <td>openAndWait</td>\n
<td>${base_url}/view</td>\n <td>${base_url}/view</td>\n
...@@ -184,6 +167,32 @@ Wait for activities</span>\n ...@@ -184,6 +167,32 @@ Wait for activities</span>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
<!-- Edit gadget form submit by pressing enter -->\n
<tr>\n
<td>click</td>\n
<td>//div[@id=\'${calendar_box_id}\']/h3/span/a[2]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>gadget_preference_${calendar_box_id}_field_my_preferred_header_title</td>\n
<td>Calendar AAAAA</td>\n
</tr>\n
<tr>\n
<td>keyPressAndWait</td>\n
<td>gadget_preference_${calendar_box_id}_field_my_preferred_header_title</td>\n
<td>\\13</td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Preference updated.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Calendar AAAAA</td>\n
<td></td>\n
</tr>\n
\n \n
\n \n
<!-- Test deleting a gadget -->\n <!-- Test deleting a gadget -->\n
...@@ -204,7 +213,6 @@ Wait for activities</span>\n ...@@ -204,7 +213,6 @@ Wait for activities</span>\n
<td>Are you sure you want to remove this gadget from your personalized page?</td>\n <td>Are you sure you want to remove this gadget from your personalized page?</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities">\n <span metal:use-macro="container/Zuite_CommonTemplate/macros/wait_for_activities">\n
Wait for activities</span>\n Wait for activities</span>\n
<tr>\n <tr>\n
...@@ -212,23 +220,19 @@ Wait for activities</span>\n ...@@ -212,23 +220,19 @@ Wait for activities</span>\n
<td>${base_url}/view</td>\n <td>${base_url}/view</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n
<tr>\n <tr>\n
<td>verifyTextNotPresent</td>\n <td>verifyTextNotPresent</td>\n
<td>Calendar YYYYY</td>\n <td>Calendar AAAAA</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
<!--<span metal:use-macro="container/ExpressZuite_viewTestMacroLibrary/macros/login_as_functional_test_user"> Switch to Functional Test User</span>\n
\n
<span metal:use-macro="container/ExpressZuite_viewTestMacroLibrary/macros/restore_test_environment">restore</span>-->\n
\n \n
</tbody></table>\n </tbody></table>\n
</body>\n </body>\n
</html>\n </html>\n
]]></string> </value> ]]></unicode> </value>
</item> </item>
<item> <item>
<key> <string>content_type</string> </key> <key> <string>content_type</string> </key>
...@@ -242,9 +246,13 @@ Wait for activities</span>\n ...@@ -242,9 +246,13 @@ Wait for activities</span>\n
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>testGadgetEditPreferences</string> </value> <value> <string>testGadgetEditPreferences</string> </value>
</item> </item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <unicode></unicode> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
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