Commit 564585ff authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_advanced_ecommerce&test: fix order tracking pagination error

parent 99b8694d
......@@ -47,7 +47,7 @@
</span>
</p>
<a class="articlelink"
tal:attributes="href python: '%s/SaleOrderModule_viewAsWebSaleOrderList' % website.absolute_url()">
tal:attributes="href python: '%s/order_tracking' % website.absolute_url()">
<span tal:replace="python: here.Base_translateString('My Orders')"/>
</a> &nbsp;
<a class="articlelink"
......
......@@ -77,11 +77,11 @@
&nbsp; | &nbsp;
</div>
<div class="header_order">
<a href="#" tal:attributes="href string:${portal_path}/login_form?came_from=${portal_path}/SaleOrderModule_viewAsWebSaleOrderList"
<a href="#" tal:attributes="href string:${portal_path}/login_form?came_from=${portal_path}/order_tracking"
tal:condition="isAnon"
i18n:translate="" i18n:domain="ui">order tracking</a>
<a href="#" tal:attributes="href string:${portal_path}/SaleOrderModule_viewAsWebSaleOrderList"
<a href="#" tal:attributes="href string:${portal_path}/order_tracking"
tal:condition="not:isAnon"
i18n:translate="" i18n:domain="ui">order tracking</a>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</pickle>
<pickle>
<dictionary>
<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>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>test24OrderTracking</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test Front Page</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Test Front Page</td></tr>
</thead><tbody>
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />
<tal:block metal:use-macro="here/ZuiteAdvancedECommerce_CommonTemplate/macros/login_as_super_user" />
<tr>
<td>openAndWait</td>
<td>${base_url}/portal_skins/erp5_commerce_widget_library/SaleOrderModule_viewAsWebSaleOrderList/listbox/manage_main</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@name="field_lines"]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//input[@name="field_lines"]</td>
<td>1</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value="Save Changes"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Content changed</td>
<td></td>
</tr>
<tr>
<td>openAndWait</td>
<td>${base_url}/web_site_module/ecommerce_example/order_tracking</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>My Orders</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[@title="Page 1" and contains(text(), '1')]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>My Orders</td>
<td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td>//a[@title="Page 1" and contains(text(), '1') and @class="selected"]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[@title="Page 2" and contains(text(), '2')]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>My Orders</td>
<td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td>//a[@title="Page 2" and contains(text(), '2') and @class="selected"]</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
\ No newline at end of file
......@@ -859,7 +859,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>983.57522.65528.2594</string> </value>
<value> <string>983.58906.34945.3857</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -877,7 +877,7 @@
</tuple>
<state>
<tuple>
<float>1589446316.17</float>
<float>1590484588.45</float>
<string>UTC</string>
</tuple>
</state>
......
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