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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
c8936d77
Commit
c8936d77
authored
Feb 21, 2022
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_ui_test: Use Zuite_CommonTemplate to interact with login form.
parent
ca87fa05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
21 deletions
+8
-21
bt5/erp5_web_ui_test/PathTemplateItem/portal_tests/erp5_web_zuite/testLoginForm.zpt
...emplateItem/portal_tests/erp5_web_zuite/testLoginForm.zpt
+8
-21
No files found.
bt5/erp5_web_ui_test/PathTemplateItem/portal_tests/erp5_web_zuite/testLoginForm.zpt
View file @
c8936d77
...
...
@@ -35,29 +35,16 @@
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/test_web_site/login_form
</td>
<td></td>
<td>
Login into the site
</td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_name
</td>
<td>
test_webmaster
</td>
<td>
Enter login
</td>
</tr>
<tr>
<td>
type
</td>
<td>
__ac_password
</td>
<td>
test_webmaster
</td>
<td>
Enter password
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
name=logged_in:method
</td>
<td>
openAndWait
</td>
<td>
${base_url}/logout
</td>
<td></td>
<td>
Click login
</td>
</tr>
<tal:block
tal:define=
"login_form_url python:'${base_url}/web_site_module/test_web_site'"
>
<tal:block
metal:use-macro=
"python: context.Zuite_CommonTemplate.macros['login']"
>
<tal:block
metal:fill-slot=
"username"
>
test_webmaster
</tal:block>
<tal:block
metal:fill-slot=
"password"
>
test_webmaster
</tal:block>
</tal:block>
</tal:block>
<tr>
<td>
verifyText
</td>
<td>
//span[@class='headline']
</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