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
fb0fcc31
Commit
fb0fcc31
authored
Jul 16, 2013
by
Peter Fogg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factor out common code between module editing and course overview.
parent
75edc657
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
cms/djangoapps/contentstore/features/common.py
+5
-0
cms/djangoapps/contentstore/features/component.feature
+2
-2
cms/djangoapps/contentstore/features/component.py
+0
-5
cms/djangoapps/contentstore/features/course-overview.feature
+1
-1
No files found.
cms/djangoapps/contentstore/features/common.py
View file @
fb0fcc31
...
...
@@ -245,6 +245,11 @@ def confirm_the_prompt(step):
world
.
css_click
(
prompt_css
)
@step
(
u'I am shown a (.*)$'
)
def
i_am_shown_a_notification
(
step
,
notification_type
):
assert
world
.
is_css_present
(
'.wrapper-
%
s'
%
notification_type
)
def
type_in_codemirror
(
index
,
text
):
world
.
css_click
(
".CodeMirror"
,
index
=
index
)
g
=
world
.
css_find
(
"div.CodeMirror.CodeMirror-focused > div > textarea"
)
...
...
cms/djangoapps/contentstore/features/component.feature
View file @
fb0fcc31
...
...
@@ -75,7 +75,7 @@ Feature: Component Adding
|
Component
|
|
Discussion
|
And
I delete a component
Then
I
see
a prompt
Then
I
am shown
a prompt
Scenario
:
I
see a notification on save
Given
I have opened a new course in studio
...
...
@@ -84,4 +84,4 @@ Feature: Component Adding
|
Component
|
|
Discussion
|
And
I edit and save a component
Then
I
see
a notification
Then
I
am shown
a notification
cms/djangoapps/contentstore/features/component.py
View file @
fb0fcc31
...
...
@@ -52,11 +52,6 @@ def edit_and_save_component(step):
world
.
css_click
(
'.save-button'
)
@step
(
u'I see a (.*)$'
)
def
i_see_a_notification
(
step
,
notification_type
):
assert
world
.
is_css_present
(
'.wrapper-
%
s'
%
notification_type
)
def
step_selector_list
(
data_type
,
path
,
index
=
1
):
selector_list
=
[
'a[data-type="{}"]'
.
format
(
data_type
)]
if
index
!=
1
:
...
...
cms/djangoapps/contentstore/features/course-overview.feature
View file @
fb0fcc31
...
...
@@ -62,4 +62,4 @@ Feature: Course Overview
Given
I have a course with 1 section
When
I navigate to the course overview page
And
I change an assignment's grading status
Then
I
see
a notification
Then
I
am shown
a notification
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