Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
df8f4cf3
Commit
df8f4cf3
authored
Dec 27, 2017
by
Tomáš Peterka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[accounting_rjs_test] Update date testing
parent
445109a5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
23 deletions
+22
-23
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
+4
-4
bt5/erp5_accounting_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_accounting_report_zuite/test_aged_balance.zpt
...renderjs_ui_accounting_report_zuite/test_aged_balance.zpt
+2
-3
bt5/erp5_accounting_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_accounting_report_zuite/test_general_ledger.zpt
...nderjs_ui_accounting_report_zuite/test_general_ledger.zpt
+3
-3
bt5/erp5_accounting_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_accounting_report_zuite/test_journal.zpt
...ests/renderjs_ui_accounting_report_zuite/test_journal.zpt
+3
-3
bt5/erp5_accounting_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_accounting_report_zuite/test_profit_and_loss.zpt
...derjs_ui_accounting_report_zuite/test_profit_and_loss.zpt
+1
-1
bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_reportMacros.zpt
.../erp5_accounting_ui_test/AccountingZuite_reportMacros.zpt
+9
-9
No files found.
bt5/erp5_accounting_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_accounting_report_zuite/test_account_statement.zpt
View file @
df8f4cf3
...
...
@@ -20,9 +20,9 @@ Copy of unittest <a href="https://lab.nexedi.com/nexedi/erp5/blob/master/product
<tr><td>
store
</td><td
tal:content=
"python: '{:0>#2d}'.format(now.day())"
></td><td>
day
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: '{:0>#2d}'.format(now.month())"
></td><td>
month
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: now.year()"
></td><td>
year
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: '{:
0>#2d}/{:0>#2d}/{:d}'.format(today.day(), today.month(), today.year
())"
></td><td>
today
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: '{:
0>#2d}/{:0>#2d}/{:d}'.format(tomorrow.day(), tomorrow.month(), tomorrow.year
())"
></td><td>
tomorrow
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: '{:
0>#2d}/{:0>#2d}/{:d}'.format(yesterday.day(), yesterday.month(), yesterday.year
())"
></td><td>
yesterday
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: '{:
d}-{:0>#2d}-{:0>#2d}'.format(today.year(), today.month(), today.day
())"
></td><td>
today
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: '{:
d}-{:0>#2d}-{:0>#2d}'.format(tomorrow.year(), tomorrow.month(), tomorrow.day
())"
></td><td>
tomorrow
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: '{:
d}-{:0>#2d}-{:0>#2d}'.format(yesterday.year(), yesterday.month(), yesterday.day
())"
></td><td>
yesterday
</td></tr>
<tr><td>
store
</td>
<td>
${base_url}/web_site_module/renderjs_runner
</td>
...
...
@@ -58,7 +58,7 @@ Copy of unittest <a href="https://lab.nexedi.com/nexedi/erp5/blob/master/product
<td>
//input[@name="field_your_at_date"]
</td><td></td></tr>
<tr><td>
type
</td>
<td>
//input[@name="field_your_at_date"]
</td>
<td>
${
year}-${month}-${
day}
</td></tr>
<td>
${
to
day}
</td></tr>
<!-- field_your_section_category_strict is False by default -->
<!-- field_your_portal_type is good by default -->
...
...
bt5/erp5_accounting_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_accounting_report_zuite/test_aged_balance.zpt
View file @
df8f4cf3
...
...
@@ -100,9 +100,8 @@ Copy of unittest <a href="https://lab.nexedi.com/nexedi/erp5/blob/master/product
<!-- skip account_number field -->
<!-- skip invoice_number field -->
<!-- skip transaction_reference field -->
<tr><td>
assertText
</td>
<td>
${current_row}/td[6]/a
</td>
<td>
${last_day}/${last_month}/${last_year}
</td></tr>
<tr><td>
verifyElementPresent
</td>
<td>
${current_row}/td[6]//p[@data-date="${last_year}-${last_month}-${last_day}"]
</td><td></td></tr>
<tr><td>
assertText
</td>
<td>
${current_row}/td[7]/a
</td>
<td>
Sale Invoice Transaction
</td></tr>
...
...
bt5/erp5_accounting_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_accounting_report_zuite/test_general_ledger.zpt
View file @
df8f4cf3
...
...
@@ -24,9 +24,9 @@ Copy of unittest <a href="https://lab.nexedi.com/nexedi/erp5/blob/master/product
<tr><td>
store
</td><td
tal:content=
"python: '{:0>#2d}'.format(now.day())"
></td><td>
day
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: '{:0>#2d}'.format(now.month())"
></td><td>
month
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: now.year()"
></td><td>
year
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: '{:
0>#2d}/{:0>#2d}/{:d}'.format(today.day(), today.month(), today.year
())"
></td><td>
today
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: '{:
0>#2d}/{:0>#2d}/{:d}'.format(tomorrow.day(), tomorrow.month(), tomorrow.year
())"
></td><td>
tomorrow
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: '{:
0>#2d}/{:0>#2d}/{:d}'.format(yesterday.day(), yesterday.month(), yesterday.year
())"
></td><td>
yesterday
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: '{:
d}-{:0>#2d}-{:0>#2d}'.format(today.year(), today.month(), today.day
())"
></td><td>
today
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: '{:
d}-{:0>#2d}-{:0>#2d}'.format(tomorrow.year(), tomorrow.month(), tomorrow.day
())"
></td><td>
tomorrow
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: '{:
d}-{:0>#2d}-{:0>#2d}'.format(yesterday.year(), yesterday.month(), yesterday.day
())"
></td><td>
yesterday
</td></tr>
<tr><td>
store
</td>
<td>
${base_url}/web_site_module/renderjs_runner
</td>
<td>
renderjs_url
</td></tr>
...
...
bt5/erp5_accounting_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_accounting_report_zuite/test_journal.zpt
View file @
df8f4cf3
...
...
@@ -86,7 +86,7 @@ Copy of <a href="https://lab.nexedi.com/nexedi/erp5/blob/master/product/ERP5/tes
<tr><td>
store
</td><td
tal:content=
"python: now.year()"
></td><td>
year
</td></tr>
<tal:block
tal:define=
"row_selector string:$${table}/tbody/tr[1];
date string:$${
day}/$${month}/$${year
};
date string:$${
year}-$${month}-$${day
};
title string:First One;
parent_reference string:1;
node_title string:A-REC;
...
...
@@ -119,7 +119,7 @@ Copy of <a href="https://lab.nexedi.com/nexedi/erp5/blob/master/product/ERP5/tes
<!-- Second Transaction -->
<tal:block
tal:define=
"row_selector string:$${table}/tbody/tr[4];
date string:$${
day}/$${month}/$${year
};
date string:$${
year}-$${month}-$${day
};
title string:Second One;
parent_reference string:2;
node_title string:A-REC;
...
...
@@ -151,7 +151,7 @@ Copy of <a href="https://lab.nexedi.com/nexedi/erp5/blob/master/product/ERP5/tes
<!-- Third Transaction -->
<tal:block
tal:define=
"row_selector string:$${table}/tbody/tr[7];
date string:$${
day}/$${month}/$${year
};
date string:$${
year}-$${month}-$${day
};
title string:Third One;
parent_reference string:3;
node_title string:A-REC;
...
...
bt5/erp5_accounting_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_accounting_report_zuite/test_profit_and_loss.zpt
View file @
df8f4cf3
...
...
@@ -16,7 +16,7 @@ Copy of unittest <a href="https://lab.nexedi.com/nexedi/erp5/blob/master/product
<tal:block
metal:use-macro=
"here/AccountingZuite_CommonTemplate/macros/init"
/>
<tr><td>
store
</td><td
tal:content=
"python: '{:0>#2d}'.format(now.day())"
></td><td>
day
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: '{:0>#2d}'.format(now.month())"
></td><td>
month
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: '{:0>#2d}'.format(now.month())"
></td><td>
month
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: now.year()"
></td><td>
year
</td></tr>
<tr><td>
store
</td>
<td>
${base_url}/web_site_module/renderjs_runner
</td>
...
...
bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_reportMacros.zpt
View file @
df8f4cf3
...
...
@@ -36,9 +36,9 @@ Usage:
<td>
${current_row}/td[1]//a
</td>
<td
tal:content=
"string:$specific_reference"
></td></tr>
<tr
tal:condition=
"exists:date"
>
<td>
assert
Tex
t
</td>
<td
>
${current_row}/td[2]//p
</td>
<td
tal:content=
"string:$date"
></td></tr>
<td>
assert
ElementPresen
t
</td>
<td
tal:content=
"string:$${current_row}/td[2]//p[@data-date='$date']"
>
</td>
<td></td></tr>
<tr
tal:condition=
"exists:title"
>
<td>
assertText
</td>
<td>
${current_row}/td[3]//a
</td>
...
...
@@ -74,9 +74,9 @@ Usage:
<td>
current_row
</tr>
<tr
tal:condition=
"exists:date"
>
<td>
assert
Tex
t
</td>
<!-- Date -->
<td
tal:content=
"python: '${{current_row}}/td[{:d}]//p
'.format(offset + 1
)"
></td>
<td
tal:content=
"string:$date"
></td></tr>
<td>
assert
ElementPresen
t
</td>
<!-- Date -->
<td
tal:content=
"python: '${{current_row}}/td[{:d}]//p
[@data-date=\'{}\']'.format(offset + 1, date
)"
></td>
<td></td></tr>
<tr
tal:condition=
"exists:Movement_getExplanationTranslatedPortalType"
>
<td>
assertText
</td>
<!-- Type -->
<td
tal:content=
"python: '${{current_row}}/td[{:d}]//a'.format(offset + 2)"
></td>
...
...
@@ -125,9 +125,9 @@ Usage:
<td>
current_row
</tr>
<tr
tal:condition=
"exists:date"
>
<td>
assert
Tex
t
</td>
<!-- Date -->
<td
tal:content=
"python: '${{current_row}}/td[{:d}]//p
'.format(offset + 1
)"
></td>
<td
tal:content=
"string:$date"
></td></tr>
<td>
assert
ElementPresen
t
</td>
<!-- Date -->
<td
tal:content=
"python: '${{current_row}}/td[{:d}]//p
[@data-date=\'{}\']'.format(offset + 1, date
)"
></td>
<td></td></tr>
<tr
tal:condition=
"exists:Movement_getSpecificReference"
>
<td>
assertText
</td>
<!-- Transaction Reference -->
<td
tal:content=
"python: '${{current_row}}/td[{:d}]//a'.format(offset + 2)"
></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