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
b153c8ae
Commit
b153c8ae
authored
Aug 02, 2011
by
Gabriel L. Oliveira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test
- UNG main listbox was renamed from 'your_listbox' to 'listbox'
parent
59751a56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
testUNGDocs.py
testUNGDocs.py
+11
-6
No files found.
testUNGDocs.py
View file @
b153c8ae
...
...
@@ -1163,20 +1163,25 @@ class TestUNGDocs(UNGTestMixin):
def
test_change_state_button
(
self
):
"""test the possibility to change state of many documents
from the standard ung default interface, using 'Change State' button"""
from the standard ung default interface, using 'Change State' button
- this test will change state from 'Draft' to 'Shared'"""
test_time
=
int
(
unittest
.
time
.
time
())
#create 2 web_page
for
doc_index
in
range
(
2
):
self
.
create_document
(
'page'
,
name
=
"Functional UNG Test %d - "
"Web Page %d"
%
(
test_time
,
doc_index
))
self
.
open_ung_default_page
(
clear_cache
=
1
,
wait_for_activities
=
1
)
self
.
open_ung_default_page
(
'ung'
,
wait_for_activities
=
1
)
#select the 2 documents created
self
.
selenium
.
click
(
"//table[@class=
\
"
listbox your_listbox your_listbox-table
\
"
]/tbody/tr[1]/td[1]/input"
)
self
.
selenium
.
click
(
"//table[@class=
\
"
listbox your_listbox your_listbox-table
\
"
]/tbody/tr[2]/td[1]/input"
)
for
doc_index
in
range
(
1
,
3
):
self
.
selenium
.
click
(
"//table[@class=
\
"
listbox listbox listbox-table
\
"
]/tbody/"
"tr[%d]/td[1]/input"
%
doc_index
)
#try to change state of both documents
raise
Exception
(
"Need to fix permissions/behaviour when changing "
"the state."
)
self
.
selenium
.
click
(
"//button[@class=
\
"
change_state
\
"
]"
)
self
.
selenium
.
wait_for_
page_to_load
(
"30000"
)
raise
NotImplementedError
self
.
selenium
.
wait_for_
condition
(
"selenium.isTextPresent('Change State of Documents')"
)
def
test_select_all_and_deselect_all
(
self
):
"""test the button to select all documents and deselect all documents"""
...
...
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