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
6e27a483
Commit
6e27a483
authored
Jun 13, 2016
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui_test: use server's date value to check
parent
4b3cc39b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
98 additions
and
5 deletions
+98
-5
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_zuite/datetimefield_zuite/testDateTimeDefaultToNow.zpt
...ui_zuite/datetimefield_zuite/testDateTimeDefaultToNow.zpt
+98
-5
No files found.
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_zuite/datetimefield_zuite/testDateTimeDefaultToNow.zpt
View file @
6e27a483
...
@@ -54,41 +54,134 @@
...
@@ -54,41 +54,134 @@
<td>
//button[@data-i18n='Proceed']
</td>
<td>
//button[@data-i18n='Proceed']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Views']
</td>
<td>
//a[@data-i18n='Views']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
storeLocation
</td>
<td>
url
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<tr>
<td>
openAndWait
</td>
<td>
${base_url}/bar_module
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//tr[@class='listbox-data-line-0 DataA']//a
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//
a[@data-i18n='Views']
</td>
<td>
//
tr[@class='listbox-data-line-0 DataA']//a
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//
a[@data-i18n='DateTimeField'
]
</td>
<td>
//
span[contains(text(),'DateTimeField')
]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
click
</td>
<td>
click
</td>
<td>
//
a[@data-i18n='DateTimeField'
]
</td>
<td>
//
span[contains(text(),'DateTimeField')
]
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
waitForElementPresent
</td>
<td>
//input[@name='
field_my_start_date
']
</td>
<td>
//input[@name='
subfield_field_my_start_date_year
']
</td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<td>
storeValue
</td>
<td>
//input[@name='subfield_field_my_start_date_year']
</td>
<td>
year
</td>
</tr>
<tr>
<td>
storeValue
</td>
<td>
//input[@name='subfield_field_my_start_date_month']
</td>
<td>
month
</td>
</tr>
<tr>
<td>
storeValue
</td>
<td>
//input[@name='subfield_field_my_start_date_day']
</td>
<td>
day
</td>
</tr>
<tr>
<tr>
<td>
storeEval
</td>
<td>
storeEval
</td>
<td>
(new Date()).toISOString().substring(0, 10);
</td>
<td>
storedVars['year'] + '-' + storedVars['month'] + '-' + storedVars['day']
</td>
<td>
now
</td>
<td>
now
</td>
</tr>
</tr>
<tr>
<td>
open
</td>
<td>
${url}
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='Views']
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[@data-i18n='Views']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//a[@data-i18n='DateTimeField']
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[@data-i18n='DateTimeField']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name='field_my_start_date']
</td>
<td></td>
</tr>
<tr>
<tr>
<td>
verifyValue
</td>
<td>
verifyValue
</td>
<td>
//input[@name='field_my_start_date']
</td>
<td>
//input[@name='field_my_start_date']
</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