Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
55eefd0e
Commit
55eefd0e
authored
Mar 08, 2013
by
Jay Zoldak
Committed by
Jay Zoldak
Mar 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test that sets release date to work on all platforms
parent
24d08893
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
cms/djangoapps/contentstore/features/section.feature
+1
-2
cms/djangoapps/contentstore/features/section.py
+11
-6
No files found.
cms/djangoapps/contentstore/features/section.feature
View file @
55eefd0e
...
...
@@ -32,4 +32,4 @@ Feature: Create Section
And
I have added a new section
When
I press the
"section"
delete icon
And
I confirm the alert
Then
the section does not exist
\ No newline at end of file
Then
the section does not exist
cms/djangoapps/contentstore/features/section.py
View file @
55eefd0e
from
lettuce
import
world
,
step
from
common
import
*
from
nose.tools
import
assert_equal
from
selenium.webdriver.common.keys
import
Keys
import
time
############### ACTIONS ####################
...
...
@@ -37,10 +39,14 @@ def i_save_a_new_section_release_date(step):
date_css
=
'input.start-date.date.hasDatepicker'
time_css
=
'input.start-time.time.ui-timepicker-input'
css_fill
(
date_css
,
'12/25/2013'
)
# click here to make the calendar go away
css_click
(
time_css
)
# hit TAB to get to the time field
e
=
css_find
(
date_css
)
.
first
e
.
_element
.
send_keys
(
Keys
.
TAB
)
css_fill
(
time_css
,
'12:00am'
)
css_click
(
'a.save-button'
)
e
=
css_find
(
time_css
)
.
first
e
.
_element
.
send_keys
(
Keys
.
TAB
)
time
.
sleep
(
float
(
1
))
world
.
browser
.
click_link_by_text
(
'Save'
)
############ ASSERTIONS ###################
...
...
@@ -106,7 +112,7 @@ def the_section_release_date_picker_not_visible(step):
def
the_section_release_date_is_updated
(
step
):
css
=
'span.published-status'
status_text
=
world
.
browser
.
find_by_css
(
css
)
.
text
assert
status_text
==
'Will Release: 12/25/2013 at 12:00am'
assert
_equal
(
status_text
,
'Will Release: 12/25/2013 at 12:00am'
)
############ HELPER METHODS ###################
...
...
@@ -120,4 +126,4 @@ def save_section_name(name):
def
see_my_section_on_the_courseware_page
(
name
):
section_css
=
'span.section-name-span'
assert_css_with_text
(
section_css
,
name
)
\ No newline at end of file
assert_css_with_text
(
section_css
,
name
)
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