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
5bbc0970
Commit
5bbc0970
authored
Aug 02, 2011
by
Gabriel L. Oliveira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor to follow guidelines
parent
d89d123b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
testUNGDocs.py
testUNGDocs.py
+11
-13
No files found.
testUNGDocs.py
View file @
5bbc0970
...
...
@@ -108,22 +108,20 @@ class TestUNGDocs(UNGTestMixin):
def
test_title_abbreviation
(
self
):
"""test the abbreviation of a long title of the document"""
self
.
selenium
.
open
(
"ERP5Site_createNewWebDocument?template=web_page_template"
)
self
.
selenium
.
wait_for_page_to_load
(
"30000"
)
self
.
create_document
(
'page'
)
self
.
selenium
.
click
(
"//a[@name=
\
"
document_title
\
"
]"
)
unittest
.
time
.
sleep
(
2
)
self
.
selenium
.
type
(
"//input[@id=
\
"
name
\
"
]"
,
"Add a Big Title to Test the abbreviation"
)
unittest
.
time
.
sleep
(
1
)
self
.
selenium
.
click
(
"//div[@class=
\
"
ui-dialog-buttonset
\
"
]/button[1]/
span"
)
self
.
selenium
.
type
(
"//input[@id=
\
"
name
\
"
]"
,
"Add a Big Title to Test the abbreviation"
)
self
.
selenium
.
click
(
"//div[@class=
\
"
ui-dialog-buttonset
\
"
]/button[1]/"
"
span"
)
self
.
selenium
.
wait_for_page_to_load
(
"30000"
)
unittest
.
time
.
sleep
(
1
)
self
.
assertEqual
(
"Add a Big Title to Test the ab..."
,
self
.
selenium
.
get_text
(
"//a[@name=
\
"
document_title
\
"
]"
))
self
.
assertEqual
(
"Add a Big Title to Test the ab..."
,
self
.
selenium
.
get_text
(
"//a[@name=
\
"
document_title
\
"
]"
))
self
.
selenium
.
click
(
"//a[@name=
\
"
document_title
\
"
]"
)
unittest
.
time
.
sleep
(
2
)
self
.
assertEqual
(
"Add a Big Title to Test the abbreviation"
,
self
.
selenium
.
get_value
(
"//input[@id=
\
"
name
\
"
]"
))
self
.
selenium
.
open
(
""
)
self
.
selenium
.
wait_for_page_to_load
(
"30000"
)
self
.
selenium
.
click
(
"//div[@id=
\
"
select_language
\
"
]/li/ul/li/span[@id=
\
"
fr
\
"
]"
)
self
.
assertEqual
(
"Add a Big Title to Test the abbreviation"
,
self
.
selenium
.
get_value
(
"//input[@id=
\
"
name
\
"
]"
))
def
test_help_button_translation
(
self
):
self
.
selenium
.
wait_for_page_to_load
(
"30000"
)
self
.
failUnless
(
self
.
selenium
.
is_text_present
(
"Aide"
))
self
.
selenium
.
click
(
"//div[@id=
\
"
select_language
\
"
]/li/ul/li/span[@id=
\
"
en
\
"
]"
)
...
...
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