Commit 3d82f8f0 authored by Rafael Monnerat's avatar Rafael Monnerat

Added another test for Next/Previous Lane. This test check Next/Previous...

Added another test for Next/Previous Lane. This test check Next/Previous multiple times and it was created to check a possible error at Lane Axis.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20873 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c3d66b9d
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">\n
<head>\n
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n
<title>Test Planning Box Field </title>\n
</head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="3">Test PlanningBox Next and Previous Lane</td></tr>\n
</thead><tbody tal:define="year python: DateTime().year();\n
now python: DateTime();\n
sday python: DateTime()-DateTime().dow();\n
page_list python:range(10)">\n
<tal:block metal:use-macro="here/ListBoxZuite_CommonTemplate/macros/init" />\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Created Successfully.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/0/Foo_createObjects?num:int=1</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Created Successfully.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/0/Foo_editObjectLineDates</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Modified Successfully.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/0/view</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//img[@alt=\'Planning\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextNotPresent</td>\n
<td>PlanningBoxError</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//img[@name=\'JumpToCurrentDay\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//div[@id="group_1"]</td>\n
<td>[+] Title 0</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//div[@id="group_1_activity_1_block_1"]/div[@class="planning_box_center"]</td>\n
<td>Title 0</td>\n
</tr>\n
<tal:block tal:repeat="page page_list" tal:define="lane_list python:range(1,9);">\n
<tal:block tal:repeat="lane_num lane_list">\n
<tr tal:define="d python:now-page">\n
<td>assertText</td>\n
<td tal:content=\'string: //div[@id="group_lane_${lane_num}"]\'></td>\n
<td tal:content="python: \'%s %02d/%02d %02d:00\' % (d.Day(), d.month(), d.day(), (lane_num-1)*3)"> </td>\n
</tr>\n
</tal:block>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@id=\'axis_x_previous\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>//div[@id="group_1_activity_1_block_1"]/div[@class="planning_box_center"]</td>\n
<td></td>\n
</tr>\n
</tal:block>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//img[@name=\'JumpToCurrentDay\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//div[@id="group_1"]</td>\n
<td>[+] Title 0</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//div[@id="group_1_activity_1_block_1"]/div[@class="planning_box_center"]</td>\n
<td>Title 0</td>\n
</tr>\n
<tal:block tal:repeat="page page_list" tal:define="lane_list python:range(1,9);">\n
<tal:block tal:repeat="lane_num lane_list">\n
<tr tal:define="d python:now+page">\n
<td>assertText</td>\n
<td tal:content=\'string: //div[@id="group_lane_${lane_num}"]\'></td>\n
<td tal:content="python: \'%s %02d/%02d %02d:00\' % (d.Day(), d.month(), d.day(), (lane_num-1)*3)"> </td>\n
</tr>\n
</tal:block>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@id=\'axis_x_next\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>//div[@id="group_1_activity_1_block_1"]/div[@class="planning_box_center"]</td>\n
<td></td>\n
</tr>\n
</tal:block>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//img[@name=\'JumpToCurrentDay\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>lane_path</td>\n
<td>Week</td>\n
</tr>\n
<tal:block tal:repeat="page page_list" tal:define="lane_list python:range(1,8);">\n
<tal:block tal:repeat="lane_num lane_list">\n
<tr tal:define="d python:sday-(page*7)+lane_num-1">\n
<td>assertText</td>\n
<td tal:content=\'string: //div[@id="group_lane_${lane_num}"]\'></td>\n
<td tal:content="python: \'%s %04d/%02d/%02d\' % (d.Day(), d.year(), d.month(), d.day())"> </td>\n
</tr>\n
</tal:block>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>//div[@id="group_lane_8"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@id=\'axis_x_previous\']</td>\n
<td></td>\n
</tr>\n
</tal:block>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//img[@name=\'JumpToCurrentDay\']</td>\n
<td></td>\n
</tr>\n
<tal:block tal:repeat="page page_list" tal:define="lane_list python:range(1,8);">\n
<tal:block tal:repeat="lane_num lane_list">\n
<tr tal:define="d python:sday+(page*7)+lane_num-1">\n
<td>assertText</td>\n
<td tal:content=\'string: //div[@id="group_lane_${lane_num}"]\'></td>\n
<td tal:content="python: \'%s %04d/%02d/%02d\' % (d.Day(), d.year(), d.month(), d.day())"> </td>\n
</tr>\n
</tal:block>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>//div[@id="group_lane_8"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//input[@id=\'axis_x_next\']</td>\n
<td></td>\n
</tr>\n
</tal:block>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//img[@name=\'JumpToCurrentDay\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>lane_path</td>\n
<td>Day</td>\n
</tr>\n
</tbody></table>\n
</body>\n
</html>\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>testPlanningBoxNextPreviousZoomMultipleTimes</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
347 348
\ 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