Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
3beaf49e
Commit
3beaf49e
authored
Jun 09, 2020
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_advanced_ecommerce_test: update tests
parent
46b3ab24
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
104 additions
and
156 deletions
+104
-156
bt5/erp5_advanced_ecommerce_test/PathTemplateItem/portal_tests/advanced_ecommerce_zuite/test002Login.zpt
...em/portal_tests/advanced_ecommerce_zuite/test002Login.zpt
+12
-0
bt5/erp5_advanced_ecommerce_test/PathTemplateItem/portal_tests/advanced_ecommerce_zuite/test013SaleOrder.zpt
...ortal_tests/advanced_ecommerce_zuite/test013SaleOrder.zpt
+12
-0
bt5/erp5_advanced_ecommerce_test/PathTemplateItem/portal_tests/advanced_ecommerce_zuite/test018LoyaltyPoint.zpt
...al_tests/advanced_ecommerce_zuite/test018LoyaltyPoint.zpt
+14
-34
bt5/erp5_advanced_ecommerce_test/PathTemplateItem/portal_tests/advanced_ecommerce_zuite/test019SaleWithLoyaltyPoint.zpt
.../advanced_ecommerce_zuite/test019SaleWithLoyaltyPoint.zpt
+1
-34
bt5/erp5_advanced_ecommerce_test/PathTemplateItem/portal_tests/advanced_ecommerce_zuite/test020EnableDisableLoyaltyReward.zpt
...ced_ecommerce_zuite/test020EnableDisableLoyaltyReward.zpt
+1
-33
bt5/erp5_advanced_ecommerce_test/PathTemplateItem/portal_tests/advanced_ecommerce_zuite/test021EnableDisableLoyaltyRewardOnProductView.zpt
..._zuite/test021EnableDisableLoyaltyRewardOnProductView.zpt
+1
-33
bt5/erp5_advanced_ecommerce_test/PathTemplateItem/portal_tests/advanced_ecommerce_zuite/test022NoLoyaltyPointForAnonymous.zpt
...ced_ecommerce_zuite/test022NoLoyaltyPointForAnonymous.zpt
+1
-22
bt5/erp5_advanced_ecommerce_test/PathTemplateItem/portal_tests/advanced_ecommerce_zuite/test023WechatPayment.zpt
...l_tests/advanced_ecommerce_zuite/test023WechatPayment.zpt
+12
-0
bt5/erp5_advanced_ecommerce_test/SkinTemplateItem/portal_skins/erp5_advanced_ecommerce_test/ZuiteAdvancedECommerce_CommonTemplate.zpt
..._ecommerce_test/ZuiteAdvancedECommerce_CommonTemplate.zpt
+50
-0
No files found.
bt5/erp5_advanced_ecommerce_test/PathTemplateItem/portal_tests/advanced_ecommerce_zuite/test002Login.zpt
View file @
3beaf49e
...
@@ -41,6 +41,18 @@
...
@@ -41,6 +41,18 @@
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@class="login_old_style" and contains(text(), 'using a traditional account')]
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//a[@class="login_old_style" and contains(text(), 'using a traditional account')]
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
waitForTextPresent
</td>
<td>
waitForTextPresent
</td>
<td>
Password
</td>
<td>
Password
</td>
...
...
bt5/erp5_advanced_ecommerce_test/PathTemplateItem/portal_tests/advanced_ecommerce_zuite/test013SaleOrder.zpt
View file @
3beaf49e
...
@@ -302,6 +302,18 @@
...
@@ -302,6 +302,18 @@
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@class="login_old_style" and contains(text(), 'using a traditional account')]
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//a[@class="login_old_style" and contains(text(), 'using a traditional account')]
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
type
</td>
<td>
type
</td>
<td>
//input[@name="__ac_name"]
</td>
<td>
//input[@name="__ac_name"]
</td>
...
...
bt5/erp5_advanced_ecommerce_test/PathTemplateItem/portal_tests/advanced_ecommerce_zuite/test018LoyaltyPoint.zpt
View file @
3beaf49e
...
@@ -64,41 +64,8 @@
...
@@ -64,41 +64,8 @@
<td>
${base_url}/web_site_module/ecommerce_example
</td>
<td>
${base_url}/web_site_module/ecommerce_example
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@class="header_login"]
</td>
<td></td>
</tr>
<tr>
<tal:block
metal:use-macro=
"here/ZuiteAdvancedECommerce_CommonTemplate/macros/login_as_normal_user"
/>
<td>
clickAndWait
</td>
<td>
//div[@class="header_login"]//a
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name="__ac_name"]
</td>
<td>
1
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name="__ac_password"]
</td>
<td>
1
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//input[@value="Login"]
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
You are logged
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
verifyElementNotPresent
</td>
<td>
verifyElementNotPresent
</td>
...
@@ -165,6 +132,19 @@
...
@@ -165,6 +132,19 @@
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@class="login_old_style" and contains(text(), 'using a traditional account')]
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//a[@class="login_old_style" and contains(text(), 'using a traditional account')]
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
type
</td>
<td>
type
</td>
<td>
//input[@name="__ac_name"]
</td>
<td>
//input[@name="__ac_name"]
</td>
...
...
bt5/erp5_advanced_ecommerce_test/PathTemplateItem/portal_tests/advanced_ecommerce_zuite/test019SaleWithLoyaltyPoint.zpt
View file @
3beaf49e
...
@@ -81,41 +81,8 @@
...
@@ -81,41 +81,8 @@
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tal:block
metal:use-macro=
"here/ZuiteAdvancedECommerce_CommonTemplate/macros/login_as_normal_user"
/>
<td>
waitForElementPresent
</td>
<td>
//div[@class="header_login"]
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//div[@class="header_login"]//a
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name="__ac_name"]
</td>
<td>
1
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name="__ac_password"]
</td>
<td>
1
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//input[@value="Login"]
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
You are logged
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
clickAndWait
</td>
<td>
clickAndWait
</td>
<td>
//a[contains(text(), "Join the Loyalty Program")]
</td>
<td>
//a[contains(text(), "Join the Loyalty Program")]
</td>
...
...
bt5/erp5_advanced_ecommerce_test/PathTemplateItem/portal_tests/advanced_ecommerce_zuite/test020EnableDisableLoyaltyReward.zpt
View file @
3beaf49e
...
@@ -80,41 +80,9 @@
...
@@ -80,41 +80,9 @@
<td>
${base_url}/web_site_module/ecommerce_example
</td>
<td>
${base_url}/web_site_module/ecommerce_example
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@class="header_login"]
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//div[@class="header_login"]//a
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name="__ac_name"]
</td>
<td>
1
</td>
</tr>
<tr>
<tal:block
metal:use-macro=
"here/ZuiteAdvancedECommerce_CommonTemplate/macros/login_as_normal_user"
/>
<td>
type
</td>
<td>
//input[@name="__ac_password"]
</td>
<td>
1
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//input[@value="Login"]
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
You are logged
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
clickAndWait
</td>
<td>
clickAndWait
</td>
<td>
//a[contains(text(), "Join the Loyalty Program")]
</td>
<td>
//a[contains(text(), "Join the Loyalty Program")]
</td>
...
...
bt5/erp5_advanced_ecommerce_test/PathTemplateItem/portal_tests/advanced_ecommerce_zuite/test021EnableDisableLoyaltyRewardOnProductView.zpt
View file @
3beaf49e
...
@@ -68,41 +68,9 @@
...
@@ -68,41 +68,9 @@
<td>
${base_url}/web_site_module/ecommerce_example
</td>
<td>
${base_url}/web_site_module/ecommerce_example
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@class="header_login"]
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//div[@class="header_login"]//a
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name="__ac_name"]
</td>
<td>
1
</td>
</tr>
<tr>
<tal:block
metal:use-macro=
"here/ZuiteAdvancedECommerce_CommonTemplate/macros/login_as_normal_user"
/>
<td>
type
</td>
<td>
//input[@name="__ac_password"]
</td>
<td>
1
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//input[@value="Login"]
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
You are logged
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
clickAndWait
</td>
<td>
clickAndWait
</td>
<td>
//a[contains(text(), "Join the Loyalty Program")]
</td>
<td>
//a[contains(text(), "Join the Loyalty Program")]
</td>
...
...
bt5/erp5_advanced_ecommerce_test/PathTemplateItem/portal_tests/advanced_ecommerce_zuite/test022NoLoyaltyPointForAnonymous.zpt
View file @
3beaf49e
...
@@ -87,29 +87,8 @@
...
@@ -87,29 +87,8 @@
</tr>
</tr>
<!-- now login and set loyalty reward to enable -->
<!-- now login and set loyalty reward to enable -->
<tr>
<tal:block
metal:use-macro=
"here/ZuiteAdvancedECommerce_CommonTemplate/macros/login_as_normal_user"
/>
<td>
clickAndWait
</td>
<td>
//div[@class="header_login"]//a
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name="__ac_name"]
</td>
<td>
1
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name="__ac_password"]
</td>
<td>
1
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//input[@value="Login"]
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
clickAndWait
</td>
<td>
clickAndWait
</td>
...
...
bt5/erp5_advanced_ecommerce_test/PathTemplateItem/portal_tests/advanced_ecommerce_zuite/test023WechatPayment.zpt
View file @
3beaf49e
...
@@ -120,6 +120,18 @@
...
@@ -120,6 +120,18 @@
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@class="login_old_style" and contains(text(), 'using a traditional account')]
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//a[@class="login_old_style" and contains(text(), 'using a traditional account')]
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
type
</td>
<td>
type
</td>
<td>
//input[@name="__ac_name"]
</td>
<td>
//input[@name="__ac_name"]
</td>
...
...
bt5/erp5_advanced_ecommerce_test/SkinTemplateItem/portal_skins/erp5_advanced_ecommerce_test/ZuiteAdvancedECommerce_CommonTemplate.zpt
View file @
3beaf49e
...
@@ -28,6 +28,56 @@
...
@@ -28,6 +28,56 @@
</tr>
</tr>
</tal:block>
</tal:block>
<tal:block metal:define-macro="login_as_normal_user">
<tr>
<td>waitForElementPresent</td>
<td>//div[@class="header_login"]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//div[@class="header_login"]//a</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@class="login_old_style" and contains(text(), 'using a traditional account')]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[@class="login_old_style" and contains(text(), 'using a traditional account')]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//input[@name="__ac_name"]</td>
<td>1</td>
</tr>
<tr>
<td>type</td>
<td>//input[@name="__ac_password"]</td>
<td>1</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value="Login"]</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>You are logged</td>
<td></td>
</tr>
</tal:block>
<tal:block metal:define-macro="logout">
<tal:block metal:define-macro="logout">
<tr>
<tr>
<td>openAndWait</td>
<td>openAndWait</td>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment