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
1
Merge Requests
1
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
Boxiang Sun
erp5
Commits
84ccb7a9
Commit
84ccb7a9
authored
Sep 01, 2017
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs_support_request_ui_test: Test update
parent
9bf0ea0e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
86 additions
and
19 deletions
+86
-19
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testAddSupportRequest.zpt
...ficejs_support_request_ui_zuite/testAddSupportRequest.zpt
+31
-4
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testCheckComment.zpt
...ts/officejs_support_request_ui_zuite/testCheckComment.zpt
+29
-11
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testCheckHomePage.zpt
...s/officejs_support_request_ui_zuite/testCheckHomePage.zpt
+7
-2
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testSupportRequestModuleAccess.zpt
...pport_request_ui_zuite/testSupportRequestModuleAccess.zpt
+19
-2
No files found.
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testAddSupportRequest.zpt
View file @
84ccb7a9
...
...
@@ -30,8 +30,13 @@
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
waitForElementPresent
</td>
<td>
//input[@name='field_your_title']
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@id='field_your_title']
</td>
<td>
test
</td>
</tr>
<tr>
...
...
@@ -39,6 +44,11 @@
<td>
field_your_project
</td>
<td>
RobotMaking
</td>
</tr>
<tr>
<td>
waitForTextPresent
</td>
<td>
FeatureRequire
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
field_your_resource
</td>
...
...
@@ -46,17 +56,34 @@
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//body[@class='cke_editable cke_editable_themed cke_contents_ltr cke_show_borders']
</td>
<td>
//iframe
</td>
<td></td>
</tr>
<!--
Temparory fixing:
Pause Selenium test for 5 seconds. Give some time to let the editor show up.
Because now the editor is inside a iframe. And the iframe protects the content
if the domain differs. So we can not test the element inside an iframe. For now,
just wait 5 seconds and hope the editor can be loaded.
-->
<tr>
<td>
pause
</td>
<td>
5000
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value='Add Support Request']
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//input[@
data-i18n='[value]Proceed
']
</td>
<td>
//input[@
value='Add Support Request
']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@data-i18n="[value]
Reply
"]
</td>
<td>
//input[@data-i18n="[value]
Post Comment
"]
</td>
<td></td>
</tr>
<tr>
...
...
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testCheckComment.zpt
View file @
84ccb7a9
...
...
@@ -29,7 +29,6 @@
<td>
//input[@data-i18n="[value]Proceed"]
</td>
<td></td>
</tr>
field_my_description
<tr>
<td>
type
</td>
<td>
//input[@name='field_your_title']
</td>
...
...
@@ -40,6 +39,11 @@ field_my_description
<td>
field_your_project
</td>
<td>
RobotMaking
</td>
</tr>
<tr>
<td>
waitForTextPresent
</td>
<td>
FeatureRequire
</td>
<td></td>
</tr>
<tr>
<td>
select
</td>
<td>
field_your_resource
</td>
...
...
@@ -47,37 +51,51 @@ field_my_description
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//
body[@class='cke_editable cke_editable_themed cke_contents_ltr cke_show_borders']
</td>
<td>
//
iframe
</td>
<td></td>
</tr>
<!--
Temparory fixing:
Pause Selenium test for 5 seconds. Give some time to let the editor show up.
Because now the editor is inside a iframe. And the iframe protects the content
if the domain differs. So we can not test the element inside an iframe. For now,
just wait 5 seconds and hope the editor can be loaded.
-->
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@data-i18n='[value]Proceed']
</td>
<td>
pause
</td>
<td>
5000
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
waitForElementPresent
</td>
<td>
//input[@data-i18n='[value]Proceed']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@data-i18n=
"[value]Reply"
]
</td>
<td>
click
</td>
<td>
//input[@data-i18n=
'[value]Proceed'
]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//
div[@id="cke_editor1
"]
</td>
<td>
//
input[@data-i18n="[value]Post Comment
"]
</td>
<td></td>
</tr>
<!--
Temparory fixing:
Pause Selenium test for 5 seconds. Give some time to let the editor show up.
Because now the editor is inside a iframe. And the iframe protects the content
if the domain differs. So we can not test the element inside an iframe. For now,
just wait 5 seconds and hope the editor can be loaded.
-->
<tr>
<td>
waitForElementPresent
</td>
<td>
//body[@class='cke_editable cke_editable_themed cke_contents_ltr cke_show_borders']
</td>
<td>
pause
</td>
<td>
5000
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//input[@data-i18n=
'[value]Reply'
]
</td>
<td>
//input[@data-i18n=
"[value]Post Comment"
]
</td>
<td></td>
</tr>
<tr>
...
...
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testCheckHomePage.zpt
View file @
84ccb7a9
...
...
@@ -21,12 +21,17 @@
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//
canvas[@id='bar-chart-grouped
']
</td>
<td>
//
a[@id='generate-rss
']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//canvas[@id='pie-chart']
</td>
<td>
//div[@id='wrap1']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//div[@id='wrap2']
</td>
<td></td>
</tr>
<tr>
...
...
bt5/erp5_officejs_support_request_ui_test/PathTemplateItem/portal_tests/officejs_support_request_ui_zuite/testSupportRequestModuleAccess.zpt
View file @
84ccb7a9
...
...
@@ -26,7 +26,7 @@
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//
body[@class='cke_editable cke_editable_themed cke_contents_ltr cke_show_borders
']
</td>
<td>
//
input[@name='field_your_title
']
</td>
<td></td>
</tr>
<tr>
...
...
@@ -34,6 +34,23 @@
<td>
//input[@name='field_your_title']
</td>
<td>
test
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//iframe
</td>
<td></td>
</tr>
<!--
Temparory fixing:
Pause Selenium test for 5 seconds. Give some time to let the editor show up.
Because now the editor is inside a iframe. And the iframe protects the content
if the domain differs. So we can not test the element inside an iframe. For now,
just wait 5 seconds and hope the editor can be loaded.
-->
<tr>
<td>
pause
</td>
<td>
5000
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//input[@data-i18n='[value]Proceed']
</td>
...
...
@@ -41,7 +58,7 @@
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@data-i18n='[value]
Reply
']
</td>
<td>
//input[@data-i18n='[value]
Post Comment
']
</td>
<td></td>
</tr>
<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