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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
c1e2591a
Commit
c1e2591a
authored
Mar 23, 2021
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_user_tutorial_ui_test: Clear the sale order created in the selenium test
user-Howto.Create.Trade.Conditions.008.en
parent
15c018c1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
bt5/erp5_user_tutorial_ui_test/SkinTemplateItem/portal_skins/erp5_user_tutorial_ui_test/Zuite_getHowToInfo.py
...al_skins/erp5_user_tutorial_ui_test/Zuite_getHowToInfo.py
+1
-1
bt5/erp5_user_tutorial_ui_test/SkinTemplateItem/portal_skins/erp5_user_tutorial_ui_test/Zuite_tearDownSaleTradeConditionTest.py
..._tutorial_ui_test/Zuite_tearDownSaleTradeConditionTest.py
+5
-0
No files found.
bt5/erp5_user_tutorial_ui_test/SkinTemplateItem/portal_skins/erp5_user_tutorial_ui_test/Zuite_getHowToInfo.py
View file @
c1e2591a
...
@@ -43,12 +43,12 @@ return {'now': DateTime(),
...
@@ -43,12 +43,12 @@ return {'now': DateTime(),
'sale_howto_organisation2_title'
:
'ZUITE-TEST-SALEORDER-ORGANISATION-002'
,
'sale_howto_organisation2_title'
:
'ZUITE-TEST-SALEORDER-ORGANISATION-002'
,
'sale_howto_organisation3_title'
:
'ZUITE-TEST-SALEORDER-ORGANISATION-003'
,
'sale_howto_organisation3_title'
:
'ZUITE-TEST-SALEORDER-ORGANISATION-003'
,
'sale_howto_person_title'
:
'ZUITE-TEST-SALEORDER USER-001'
,
'sale_howto_person_title'
:
'ZUITE-TEST-SALEORDER USER-001'
,
'sale_howto_product_title'
:
'ZUITE-TEST-SALEORDER-PRODUCT-001'
,
'sale_howto_payment_title'
:
'ZUITE-TEST-SALEORDER-PAYMENT-TRANSACTION-001'
,
'sale_howto_payment_title'
:
'ZUITE-TEST-SALEORDER-PAYMENT-TRANSACTION-001'
,
'sale_howto_currency_title'
:
'Euro'
,
'sale_howto_currency_title'
:
'Euro'
,
'sale_howto_currency_tag'
:
'EUR'
,
'sale_howto_currency_tag'
:
'EUR'
,
'sale_howto_product_reference'
:
'ZUITE-TEST-SALEORDER-RL01'
,
'sale_howto_product_reference'
:
'ZUITE-TEST-SALEORDER-RL01'
,
'sale_howto_trade_condition_title'
:
'ZUITE-TEST-SALE-TRADE-CONDITION-001'
,
'sale_howto_trade_condition_title'
:
'ZUITE-TEST-SALE-TRADE-CONDITION-001'
,
'sale_howto_sale_order_title'
:
'ZUITE-TEST-TRADE-CONDITION-SALE-ORDER-001'
,
'campaign_howto_person_title'
:
'ZUITE-TEST-CAMPAIGN-PERSON-SUPERVISOR'
,
'campaign_howto_person_title'
:
'ZUITE-TEST-CAMPAIGN-PERSON-SUPERVISOR'
,
'campaign_howto_person2_title'
:
'ZUITE-TEST-CAMPAIGN-PERSON-OPERATION-MANAGER'
,
'campaign_howto_person2_title'
:
'ZUITE-TEST-CAMPAIGN-PERSON-OPERATION-MANAGER'
,
'campaign_howto_organisation_title'
:
'ZUITE-TEST-CAMPAIGN-ORGANISATION-001'
,
'campaign_howto_organisation_title'
:
'ZUITE-TEST-CAMPAIGN-ORGANISATION-001'
,
...
...
bt5/erp5_user_tutorial_ui_test/SkinTemplateItem/portal_skins/erp5_user_tutorial_ui_test/Zuite_tearDownSaleTradeConditionTest.py
View file @
c1e2591a
...
@@ -40,6 +40,11 @@ sale_trade_condition_list = context.Zuite_checkPortalCatalog(portal_type='Sale T
...
@@ -40,6 +40,11 @@ sale_trade_condition_list = context.Zuite_checkPortalCatalog(portal_type='Sale T
if
sale_trade_condition_list
is
not
None
:
if
sale_trade_condition_list
is
not
None
:
portal
.
sale_trade_condition_module
.
deleteContent
(
sale_trade_condition_list
[
0
].
getId
())
portal
.
sale_trade_condition_module
.
deleteContent
(
sale_trade_condition_list
[
0
].
getId
())
# remove sale order created in the test
sale_order_in_test_list
=
context
.
Zuite_checkPortalCatalog
(
portal_type
=
'Sale Order'
,
max_count
=
1
,
title
=
howto_dict
[
'sale_howto_sale_order_title'
])
if
sale_order_in_test_list
is
not
None
:
portal
.
sale_order_module
.
deleteContent
(
sale_order_in_test_list
[
0
].
getId
())
pref
=
getattr
(
context
.
portal_preferences
,
howto_dict
[
'howto_preference_id'
],
None
)
pref
=
getattr
(
context
.
portal_preferences
,
howto_dict
[
'howto_preference_id'
],
None
)
if
pref
is
not
None
:
if
pref
is
not
None
:
...
...
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