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
Laurent S
erp5
Commits
c55bacd0
Commit
c55bacd0
authored
Feb 02, 2018
by
Tomáš Peterka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[accounting_renderjs_ui_test] Add test for "Update" action
parent
026cf7d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
12 deletions
+40
-12
bt5/erp5_accounting_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_accounting_report_zuite/test_account_statement.zpt
...rjs_ui_accounting_report_zuite/test_account_statement.zpt
+40
-12
No files found.
bt5/erp5_accounting_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_accounting_report_zuite/test_account_statement.zpt
View file @
c55bacd0
...
...
@@ -43,17 +43,6 @@ Copy of unittest <a href="https://lab.nexedi.com/nexedi/erp5/blob/master/product
<tr><td>
click
</td>
<td>
//a[@data-i18n="Account Statement"]
</td><td></td></tr>
<tr><td>
waitForElementPresent
</td>
<td>
//div[@data-gadget-scope="field_your_node"]/div/div[1]//select
</td><td></td></tr>
<tr><td>
select
</td>
<td>
//div[@data-gadget-scope="field_your_node"]/div/div[1]//select
</td>
<td>
value=account_module/receivable
</td></tr>
<tr><td>
waitForElementPresent
</td>
<td>
//select[@name="field_your_section_category"]
</td><td></td></tr>
<tr><td>
select
</td>
<td>
//select[@name="field_your_section_category"]
</td>
<td>
value=group/demo_group/sub1
</td></tr>
<tr><td>
waitForElementPresent
</td>
<td>
//input[@name="field_your_at_date"]
</td><td></td></tr>
<tr><td>
type
</td>
...
...
@@ -77,8 +66,47 @@ Copy of unittest <a href="https://lab.nexedi.com/nexedi/erp5/blob/master/product
<tr><td>
select
</td>
<td>
//div[@data-gadget-scope="field_your_simulation_state"]/div/div[1]//select
</td>
<td>
value=delivered
</td></tr>
<tr><td>
waitForElementPresent
</td>
<td>
//div[@data-gadget-scope="field_your_node"]/div/div[1]//select
</td><td></td></tr>
<tr><td>
select
</td>
<td>
//div[@data-gadget-scope="field_your_node"]/div/div[1]//select
</td>
<td>
value=account_module/receivable
</td></tr>
<tr><td
colspan=
"3"
>
Test update button on a valid form
</td></tr>
<!-- group/client does not have any Bank account assigned so we test on empty "Bank Account" field -->
<tr><td>
waitForElementPresent
</td>
<td>
//select[@name="field_your_section_category"]
</td><td></td></tr>
<tr><td>
select
</td>
<td>
//select[@name="field_your_section_category"]
</td>
<td>
value=group/client
</td></tr>
<tr><td>
click
</td>
<td>
//div[@data-gadget-url="${renderjs_url}/gadget_erp5_page_form.html"]//button[@type="submit" and @name="action_update"]
</td><td></td></tr>
<tr><td>
waitForElementNotPresent
</td>
<td>
//select[@name="field_your_payment"]/option[2]
</td><td></td></tr>
<tr><td>
assertElementNotPresent
</td>
<td>
//select[@name="field_your_payment"]/option[2]
</td><td></td></tr>
<tr><td>
waitForElementPresent
</td>
<td>
//select[@name="field_your_section_category"]
</td><td></td></tr>
<tr><td>
select
</td>
<td>
//select[@name="field_your_section_category"]
</td>
<td>
value=group/demo_group/sub1
</td></tr>
<tr><td>
click
</td>
<td>
//div[@data-gadget-url="${renderjs_url}/gadget_erp5_page_form.html"]//button[@type="submit" and @name="action_update"]
</td><td></td></tr>
<tr><td>
waitForElementPresent
</td>
<td>
//select[@name="field_your_payment"]/option[2]
</td><td></td></tr>
<tr><td>
assertElementPresent
</td>
<td>
//select[@name="field_your_payment"]/option[@data-i18n="Bank1"]
</td><td></td></tr>
<tr><td>
assertElementPresent
</td>
<td>
//select[@name="field_your_payment"]/option[@data-i18n="Bank2"]
</td><td></td></tr>
<tr><td>
click
</td>
<td>
//div[@data-gadget-url="${renderjs_url}/gadget_erp5_page_form.html"]//input[@type="submit"]
</td><td></td></tr>
<td>
//div[@data-gadget-url="${renderjs_url}/gadget_erp5_page_form.html"]//input[@type="submit"
and @name="action_confirm"
]
</td><td></td></tr>
<tr><td>
store
</td>
<td>
//div[@data-gadget-url="${renderjs_url}/gadget_erp5_field_listbox.html"]//table
</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