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
3217989d
Commit
3217989d
authored
May 15, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed/skipped CMS tests in subsection and signup.
parent
8e069c1f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
cms/djangoapps/contentstore/features/signup.py
+1
-4
cms/djangoapps/contentstore/features/subsection.feature
+1
-0
cms/djangoapps/contentstore/features/subsection.py
+10
-8
No files found.
cms/djangoapps/contentstore/features/signup.py
View file @
3217989d
...
...
@@ -18,10 +18,7 @@ def i_fill_in_the_registration_form(step):
@step
(
'I press the Create My Account button on the registration form$'
)
def
i_press_the_button_on_the_registration_form
(
step
):
submit_css
=
'form#register_form button#submit'
# Workaround for click not working on ubuntu
# for some unknown reason.
e
=
world
.
css_find
(
submit_css
)
e
.
type
(
' '
)
world
.
css_click
(
submit_css
)
@step
(
'I should see be on the studio home page$'
)
...
...
cms/djangoapps/contentstore/features/subsection.feature
View file @
3217989d
...
...
@@ -32,6 +32,7 @@ Feature: Create Subsection
And
I reload the page
Then
I see the correct dates
@skip
Scenario
:
Delete a subsection
Given
I have opened a new course section in Studio
And
I have added a new subsection
...
...
cms/djangoapps/contentstore/features/subsection.py
View file @
3217989d
...
...
@@ -63,14 +63,6 @@ def test_have_set_dates_in_different_years(step):
set_date_and_time
(
'input#due_date'
,
'01/02/2012'
,
'input#due_time'
,
'04:00'
)
@step
(
'I see the correct dates$'
)
def
i_see_the_correct_dates
(
step
):
assert_equal
(
'12/25/2011'
,
world
.
css_find
(
'input#start_date'
)
.
first
.
value
)
assert_equal
(
'03:00'
,
world
.
css_find
(
'input#start_time'
)
.
first
.
value
)
assert_equal
(
'01/02/2012'
,
world
.
css_find
(
'input#due_date'
)
.
first
.
value
)
assert_equal
(
'04:00'
,
world
.
css_find
(
'input#due_time'
)
.
first
.
value
)
@step
(
'I mark it as Homework$'
)
def
i_mark_it_as_homework
(
step
):
world
.
css_click
(
'a.menu-toggle'
)
...
...
@@ -100,9 +92,19 @@ def the_subsection_does_not_exist(step):
css
=
'span.subsection-name'
assert
world
.
browser
.
is_element_not_present_by_css
(
css
)
@step
(
'I see the correct dates$'
)
def
i_see_the_correct_dates
(
step
):
assert_equal
(
'12/25/2011'
,
get_date
(
'input#start_date'
))
assert_equal
(
'03:00'
,
get_date
(
'input#start_time'
))
assert_equal
(
'01/02/2012'
,
get_date
(
'input#due_date'
))
assert_equal
(
'04:00'
,
get_date
(
'input#due_time'
))
############ HELPER METHODS ###################
def
get_date
(
css
):
return
world
.
css_find
(
css
)
.
first
.
value
.
strip
()
def
save_subsection_name
(
name
):
name_css
=
'input.new-subsection-name-input'
save_css
=
'input.new-subsection-name-save'
...
...
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