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
635dec4c
Commit
635dec4c
authored
May 23, 2011
by
Gabriel L. Oliveira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test setting default text editor as FCKeditor right before test execution
parent
3b28e30a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
testUNGDocsTextEditor.py
testUNGDocsTextEditor.py
+8
-0
No files found.
testUNGDocsTextEditor.py
View file @
635dec4c
...
@@ -41,6 +41,14 @@ class TestUNGDocsTextEditor(UNGTestMixin):
...
@@ -41,6 +41,14 @@ class TestUNGDocsTextEditor(UNGTestMixin):
"""test that uploading a Text Document (Open Office) with an image, as a
"""test that uploading a Text Document (Open Office) with an image, as a
Web Page, will have its text and image correctly showed on fck editor"""
Web Page, will have its text and image correctly showed on fck editor"""
test_time
=
int
(
unittest
.
time
.
time
())
test_time
=
int
(
unittest
.
time
.
time
())
#set default text editor as FCKeditor
self
.
selenium
.
click
(
"//a[@id='settings']"
)
self
.
selenium
.
wait_for_condition
(
"selenium.isElementPresent(
\
"
//input[@name=
\
'
field_my_preferred_text_editor
\
'
]
\
"
)"
,
"3000"
)
self
.
selenium
.
check
(
"//input[@value=
\
'
fck_editor
\
'
]"
)
self
.
selenium
.
check
(
"//input[@value=
\
'
text/html
\
'
]"
)
self
.
selenium
.
click
(
"//html/body/div[3]/div[11]/div/button[1]"
)
self
.
selenium
.
wait_for_page_to_load
(
5000
)
#get file_path
test_file_path
=
self
.
get_file_path
(
"ung-UNGDocs.Sample.TextWithImage.Text-001-en.odt"
)
test_file_path
=
self
.
get_file_path
(
"ung-UNGDocs.Sample.TextWithImage.Text-001-en.odt"
)
web_page_name
=
"Functional UNG Test %d - Uploaded Web Page With Image"
%
test_time
web_page_name
=
"Functional UNG Test %d - Uploaded Web Page With Image"
%
test_time
#upload document
#upload document
...
...
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