Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Titouan Soulard
slapos.core
Commits
8b893ba5
Commit
8b893ba5
authored
Jul 04, 2023
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_panel_ui_test: fixup accounting scenario
parent
644de0ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
11 deletions
+33
-11
master/bt5/slapos_panel_ui_test/ExtensionTemplateItem/portal_components/extension.erp5.SlapOSPanelUiTest.py
...tem/portal_components/extension.erp5.SlapOSPanelUiTest.py
+19
-8
master/bt5/slapos_panel_ui_test/PathTemplateItem/portal_tests/slapos_panel_zuite/testAccountingScenario.zpt
...ortal_tests/slapos_panel_zuite/testAccountingScenario.zpt
+14
-3
No files found.
master/bt5/slapos_panel_ui_test/ExtensionTemplateItem/portal_components/extension.erp5.SlapOSPanelUiTest.py
View file @
8b893ba5
...
...
@@ -43,19 +43,23 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
# Ensure checkConsistency is OK on the website installed by ui_test bt5
portal
.
portal_alarms
.
upgrader_check_post_upgrade
.
activeSense
(
fixit
=
True
)
# Organisation
organisation
=
portal
.
organisation_module
.
newContent
(
portal_type
=
"Organisation"
,
title
=
"Test accounting organisation"
)
fixit
=
True
)
# Currency
currency
=
portal
.
currency_module
.
newContent
(
portal_type
=
"Currency"
,
title
=
"Test currency"
title
=
"Test currency"
,
reference
=
"Test currency"
)
currency
.
validate
()
# Organisation
organisation
=
portal
.
organisation_module
.
newContent
(
portal_type
=
"Organisation"
,
title
=
"Test accounting organisation"
,
price_currency_value
=
currency
)
organisation
.
validate
()
# Sale trade condition
trade_condition
=
portal
.
sale_trade_condition_module
.
newContent
(
...
...
@@ -153,6 +157,13 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
destination_project_value
=
project
,
function
=
'production/manager'
).
open
()
if
scenario
==
'accounting'
:
manager_person
.
newContent
(
portal_type
=
'Assignment'
,
title
=
'Sale'
,
function
=
'sale/manager'
).
open
()
customer_person
.
newContent
(
portal_type
=
'Assignment'
,
title
=
'Customer for project %s'
%
project
.
getTitle
(),
...
...
master/bt5/slapos_panel_ui_test/PathTemplateItem/portal_tests/slapos_panel_zuite/testAccountingScenario.zpt
View file @
8b893ba5
...
...
@@ -202,7 +202,6 @@
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<tr>
<td
colspan=
"3"
><b>
Activate Allocation Supply
</b></td>
</tr>
...
...
@@ -228,7 +227,7 @@
<
!--
tr>
<tr>
<td
colspan=
"3"
><b>
Create Sale Supply
</b></td>
</tr>
<tal:block
tal:define=
"click_configuration python: {'text': 'Add Sale Supply'}"
>
...
...
@@ -269,6 +268,18 @@
<tr>
<td
colspan=
"3"
><b>
Define Sale Supply currency
</b></td>
</tr>
<tr>
<td>
select
</td>
<td>
//select[@name='field_my_price_currency']
</td>
<td>
Test currency
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/save"
/>
<tr>
<td
colspan=
"3"
><b>
Activate Sale Supply
</b></td>
</tr>
...
...
@@ -279,7 +290,7 @@
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': 'Sale Supply validated.'}"
>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification"
/>
</tal:block
--
>
</tal:block>
...
...
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