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
Ludovic Kiefer
erp5
Commits
3ad3ceb9
Commit
3ad3ceb9
authored
Nov 13, 2018
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui_test] Replace verify by assert
Stop the test as soon as an error occurs
parent
87f6f92a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_listbox_zuite/testSortDefault.zpt
...ortal_tests/renderjs_ui_listbox_zuite/testSortDefault.zpt
+7
-7
No files found.
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_listbox_zuite/testSortDefault.zpt
View file @
3ad3ceb9
...
...
@@ -44,13 +44,13 @@ Frontend should not suppose default sorting
<tr><td>
waitForElementPresent
</td>
<td>
//a[text()='ID']
</td><td></td></tr>
<!-- No default sort must be shown because the definition is broken "id | id" -->
<tr><td>
verify
ElementPresent
</td>
<tr><td>
assert
ElementPresent
</td>
<td>
//th[@class='']/a[text()='ID']
</td><td></td></tr>
<!-- Make sure broken definitions don't appear in sort editor -->
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/triggle_sort"
/>
<tr><td>
waitForElementPresent
</td>
<td>
//div[@data-gadget-url='${renderjs_url}/gadget_erp5_sort_editor.html']//button[@class="plus ui-icon-plus ui-btn-icon-left"]
</td><td></td></tr>
<tr><td>
verify
ElementNotPresent
</td>
<tr><td>
assert
ElementNotPresent
</td>
<td>
//div[@data-gadget-url='${renderjs_url}/gadget_erp5_sort_editor.html']//select
</td><td></td></tr>
<!-- Let's set up the default sort correctly: id | ASC -->
...
...
@@ -65,7 +65,7 @@ Frontend should not suppose default sorting
<tr><td>
waitForElementPresent
</td>
<td>
//a[text()='ID']
</td><td></td></tr>
<!-- Default sort on ID column has to be ASCENDING -->
<tr><td>
verify
ElementPresent
</td>
<tr><td>
assert
ElementPresent
</td>
<td>
//th[@class='ui-icon ui-icon-sort-amount-asc']/a[text()='ID']
</td><td></td></tr>
<!-- Verify that the default sort is visible in Sort Editor -->
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/triggle_sort"
/>
...
...
@@ -90,10 +90,10 @@ Frontend should not suppose default sorting
<tr><td>
waitForElementPresent
</td>
<td>
//a[text()='Title']
</td><td></td></tr>
<!-- Default sort on Title column has to be DESCENDING -->
<tr><td>
verify
ElementPresent
</td>
<tr><td>
assert
ElementPresent
</td>
<td>
//th[@class='ui-icon ui-icon-sort-amount-desc']/a[text()='Title']
</td><td></td></tr>
<!-- No other sort must be shown -->
<tr><td>
verify
ElementPresent
</td>
<tr><td>
assert
ElementPresent
</td>
<td>
//th[@class='']/a[text()='ID']
</td><td></td></tr>
<!-- Verify that the default sort is visible in Sort Editor -->
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/triggle_sort"
/>
...
...
@@ -118,9 +118,9 @@ Frontend should not suppose default sorting
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded"
/>
<!-- Verify that default sort arrow disappeared -->
<tr><td>
verify
ElementPresent
</td>
<tr><td>
assert
ElementPresent
</td>
<td>
//th[@class='']/a[text()='Title']
</td><td></td></tr>
<tr><td>
verify
ElementPresent
</td>
<tr><td>
assert
ElementPresent
</td>
<td>
//th[@class='ui-icon ui-icon-sort-amount-desc']/a[text()='ID']
</td><td></td></tr>
</tbody></table>
...
...
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