Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs
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
nexedi
officejs
Commits
d3dd9342
Commit
d3dd9342
authored
Aug 02, 2011
by
Gabriel L. Oliveira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add method to remove all gadgets from given user
parent
b10fe101
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
UNGTestMixin.py
UNGTestMixin.py
+17
-0
No files found.
UNGTestMixin.py
View file @
d3dd9342
...
...
@@ -76,6 +76,23 @@ class UNGTestMixin(unittest.TestCase):
waiting_time
)
def
clear_user_gadgets
(
self
,
user
=
None
,
password
=
None
):
"""remove all gadgets from given user
if no user is given, then just remove all gadgets"""
if
user
:
self
.
selenium
.
open
(
"WebSite_logout"
)
self
.
selenium
.
wait_for_page_to_load
(
"30000"
)
self
.
selenium
.
type
(
"__ac_name"
,
user
)
self
.
selenium
.
type
(
"__ac_password"
,
password
)
self
.
selenium
.
click
(
"//input[@value='Login']"
)
self
.
selenium
.
wait_for_page_to_load
(
"30000"
)
self
.
wait_ung_listbox_to_load
()
while
self
.
selenium
.
is_element_present
(
"//a[@class='clickable-block"
" block-remove']"
):
self
.
selenium
.
click
(
"//a[@class=
\
"
clickable-block block-remove
\
"
]"
)
self
.
selenium
.
get_confirmation
()
self
.
open_ung_default_page
(
'ung'
)
def
clear_cache
(
self
):
"""call method 'Base_clearCache' of bt5 erp5_ui_test, that orders
portal_catalog to clear all allocated cache"""
...
...
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