Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
5a920622
Commit
5a920622
authored
Jun 02, 2020
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio_ui_test: Test if the user adds a password that isn't complaint with the policy
Try to logout and login with the new password
parent
49106680
Pipeline
#9695
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
87 additions
and
2 deletions
+87
-2
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSAccountLogin.zpt
.../portal_tests/slaposjs_zuite/testSlapOSJSAccountLogin.zpt
+87
-2
No files found.
master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSAccountLogin.zpt
View file @
5a920622
...
...
@@ -60,6 +60,24 @@
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'error',
'text': 'Password value doest not comply with password policy'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
</tal:block>
<tr>
<td>
type
</td>
<td>
//input[@name='password']
</td>
<td>
SoMeOth3rPa$$w0d
</td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='password_confirmation']
</td>
<td>
SoMeOth3rPa$$w0d
</td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_proceed"
/>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': 'New User Login created.'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_notification"
/>
...
...
@@ -96,11 +114,77 @@
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/slapos_logout"
/>
<tr>
<td>
waitForElementPresent
</td>
<td>
//label[contains(text(), "Login")]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="__ac_name"]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name="__ac_password"]
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_name
</td>
<td>
demo_test_login_from_testSlapOSJSAccountLogin
</td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_password
</td>
<td>
SoMeOth3rPa$$w0d
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
WebSite_login:method
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/slapos_wait_for_front_page"
/>
<tal:block
define=
"person_name python: 'Demo User Functional'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/access_menu_item_account"
/>
</tal:block>
<tal:block
tal:define=
"pagination_configuration python: {'header': '(2)', 'footer': '2 Records'}"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text"
/>
</tal:block>
<tr>
<td>
verifyTextPresent
</td>
<td>
demo_test_login_from_testSlapOSJSAccountLogin
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
demo_functional_user
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//a[text()="demo_functional_user"]
</td>
<td></td>
</tr>
<tal:block
define=
"header python: 'Login : demo_functional_user'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
<tal:block
define=
"menu_action python: 'Delete'"
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action"
/>
</tal:block>
<tal:block
define=
"header python: 'Disable Login: demo_
test_login_from_testSlapOSJSAccountLogin
'; "
>
<tal:block
define=
"header python: 'Disable Login: demo_
functional_user
'; "
>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/assert_page_header"
/>
</tal:block>
...
...
@@ -122,12 +206,13 @@
<tr>
<td>
verifyTextNotPresent
</td>
<td>
demo_
test_login_from_testSlapOSJSAccountLogin
</td>
<td>
demo_
functional_user
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/slapos_logout"
/>
</tbody>
</table>
</body>
...
...
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