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
d719561c
Commit
d719561c
authored
May 23, 2011
by
Gabriel L. Oliveira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include method to facilitate the creation of new events under UNG Calendar
parent
5ff694c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
UNGTestMixin.py
UNGTestMixin.py
+11
-0
No files found.
UNGTestMixin.py
View file @
d719561c
...
...
@@ -104,6 +104,17 @@ class UNGTestMixin(unittest.TestCase):
self
.
wait_for_activities
()
return
self
.
selenium
.
get_eval
(
'selenium.browserbot.getCurrentWindow().location'
).
split
(
'?'
)[
0
]
def
create_calendar_event
(
self
,
event_type
,
name
):
self
.
selenium
.
click
(
"//span[@class=
\
"
addcal
\
"
]"
)
self
.
selenium
.
wait_for_condition
(
"selenium.isElementPresent(
\
"
portal_type
\
"
)"
,
"10000"
)
self
.
selenium
.
wait_for_condition
(
"selenium.browserbot.findElementOrNull('loadingpannel').style.display == 'none'"
,
"10000"
);
self
.
selenium
.
select
(
"//select[@name=
\
"
portal_type
\
"
]"
,
event_type
)
self
.
selenium
.
type
(
"//input[@name=
\
"
title
\
"
]"
,
name
)
self
.
selenium
.
type
(
"//input[@name=
\
"
start_date_hour
\
"
]"
,
unittest
.
time
.
localtime
().
tm_hour
+
1
)
self
.
selenium
.
type
(
"//input[@name=
\
"
stop_date_hour
\
"
]"
,
unittest
.
time
.
localtime
().
tm_hour
+
1
)
self
.
selenium
.
click
(
"//div[@aria-labelledby='ui-dialog-title-new_event_dialog']//button"
)
self
.
wait_for_activities
()
if
__name__
==
"__main__"
:
unittest
.
main
()
...
...
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