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
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
9f5592ae
Commit
9f5592ae
authored
Oct 04, 2019
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_accounting_renderjs_ui_test] Nearly ok (except multi list field)
parent
0e530f53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
95 deletions
+72
-95
bt5/erp5_accounting_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_accounting_report_zuite/test_grouping_reference/test_group_dialog_ledger.html.zpt
...test_grouping_reference/test_group_dialog_ledger.html.zpt
+72
-95
No files found.
bt5/erp5_accounting_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_accounting_report_zuite/test_grouping_reference/test_group_dialog_ledger.html.zpt
View file @
9f5592ae
...
@@ -10,40 +10,36 @@ Using Ledger in Grouping Dialog
...
@@ -10,40 +10,36 @@ Using Ledger in Grouping Dialog
<!-- Setup {{{ -->
<!-- Setup {{{ -->
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForAccountingRenderjsUi/macros/init"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForAccountingRenderjsUi/macros/init"
/>
<tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/go_to_module_list"
/>
<td>
selectAndWait
</td>
<td>
select_module
</td>
<tal:block
tal:define=
"click_configuration python: {'text': 'Organisations'}"
>
<td>
Organisations
</td>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_page_link"
/>
</tr>
</tal:block>
<tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<td>
clickAndWait
</td>
<td>
Folder_show:method
</td>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/clear_query"
/>
<td></td>
</tr>
<tal:block
tal:define=
"search_query python: 'title: "Client 1"'"
>
<tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/search_in_form_list"
/>
<td>
type
</td>
</tal:block>
<!-- title -->
<td>
//tr[@class='listbox-search-line']/th[2]/input
</td>
<td>
Client 1
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//input[@class="listbox-select-action"]
</td>
<td></td>
</tr>
<!-- }}} -->
<!-- {{{ Select Client 1 Organisation and use grouping fast input -->
<!-- {{{ Select Client 1 Organisation and use grouping fast input -->
<tr>
<tal:block
tal:define=
"click_configuration python: {'text': 'Client 1'}"
>
<td>
clickAndWait
</td>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_page_link"
/>
<td>
link=Client 1
</td>
</tal:block>
<td></td>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
</tr>
<tr>
<tal:block
tal:define=
"click_configuration python: {'text': 'Actions'}"
>
<td>
clickAndWait
</td>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_header_link"
/>
<td>
//img[@alt='Grouping Reference Fast Input']
</td>
</tal:block>
<td></td>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
</tr>
<tal:block
tal:define=
"click_configuration python: {'text': 'Grouping Reference Fast Input'}"
>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_page_link"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<!-- }}} -->
<!-- The mode should be 'grouping' by default -->
<!-- The mode should be 'grouping' by default -->
<tr>
<tr>
...
@@ -59,67 +55,53 @@ Using Ledger in Grouping Dialog
...
@@ -59,67 +55,53 @@ Using Ledger in Grouping Dialog
<tr>
<tr>
<td>
select
</td>
<td>
select
</td>
<td>
field_your_node
</td>
<td>
field_your_node
</td>
<td>
label=41 - Receivable
</td>
<td>
value=account_module/receivable
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//button[@id="dialog_update_button"]
</td>
<td></td>
</tr>
<tr>
<td>
assertPortalStatusMessage
</td>
<td>
Updated
</td>
<td></td>
</tr>
<tr>
<td>
assertText
</td>
<td>
//span[@class="listbox-current-page-total-number"]
</td>
<td>
2 records
</td>
</tr>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/update_dialog"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(2)', 'footer': '2 Records'}"
>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/check_listbox_pagination_text"
/>
</tal:block>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': 'Updated'}"
>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification"
/>
</tal:block>
<!-- in test ledger 2, we have no transactions. -->
<!-- in test ledger 2, we have no transactions. -->
<tr>
<tr>
<td>
select
</td>
<td>
select
</td>
<td>
field_your_ledger
</td>
<td>
sub
</td>
<td>
label=Test Accounting/Test Ledger 2
</td>
<td>
label=Test Accounting/Test Ledger 2
</td>
</tr>
</tr>
<tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/update_dialog"
/>
<td>
clickAndWait
</td>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<td>
//button[@id="dialog_update_button"]
</td>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<td></td>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(0)', 'footer': 'No records'}"
>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/check_listbox_pagination_text"
/>
<tr>
</tal:block>
<td>
assertPortalStatusMessage
</td>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
<td>
Updated
</td>
'text': 'Updated'}"
>
<td></td>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification"
/>
</tr>
</tal:block>
<tr>
<td>
assertText
</td>
<td>
//span[@class="listbox-current-page-total-number"]
</td>
<td>
0 records
</td>
</tr>
<!-- in test ledger 1, we have 2 transactions. -->
<!-- in test ledger 1, we have 2 transactions. -->
<tr>
<tr>
<td>
select
</td>
<td>
select
</td>
<td>
field_your_ledger
</td>
<td>
sub
</td>
<td>
label=Test Accounting/Test Ledger 1
</td>
<td>
label=Test Accounting/Test Ledger 1
</td>
</tr>
</tr>
<tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/update_dialog"
/>
<td>
clickAndWait
</td>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<td>
//button[@id="dialog_update_button"]
</td>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<td></td>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(2)', 'footer': '2 Records'}"
>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/check_listbox_pagination_text"
/>
<tr>
</tal:block>
<td>
assertPortalStatusMessage
</td>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
<td>
Updated
</td>
'text': 'Updated'}"
>
<td></td>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification"
/>
</tr>
</tal:block>
<tr>
<td>
assertText
</td>
<td>
//span[@class="listbox-current-page-total-number"]
</td>
<td>
2 records
</td>
</tr>
<!-- in test ledger 1 and 2, we have 2 transactions. -->
<!-- in test ledger 1 and 2, we have 2 transactions. -->
<tr>
<tr>
...
@@ -132,21 +114,16 @@ Using Ledger in Grouping Dialog
...
@@ -132,21 +114,16 @@ Using Ledger in Grouping Dialog
<td>
field_your_ledger
</td>
<td>
field_your_ledger
</td>
<td>
label=Test Accounting/Test Ledger 2
</td>
<td>
label=Test Accounting/Test Ledger 2
</td>
</tr>
</tr>
<tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/update_dialog"
/>
<td>
clickAndWait
</td>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<td>
//button[@id="dialog_update_button"]
</td>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<td></td>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(2)', 'footer': '2 Records'}"
>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/check_listbox_pagination_text"
/>
<tr>
</tal:block>
<td>
assertPortalStatusMessage
</td>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
<td>
Updated
</td>
'text': 'Updated'}"
>
<td></td>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification"
/>
</tr>
</tal:block>
<tr>
<td>
assertText
</td>
<td>
//span[@class="listbox-current-page-total-number"]
</td>
<td>
2 records
</td>
</tr>
<!-- }}} -->
<!-- }}} -->
...
...
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