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
d3ec1cb9
Commit
d3ec1cb9
authored
Jun 03, 2013
by
Peter Fogg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for single-click discussion creation.
parent
eff78bfd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
cms/djangoapps/contentstore/features/discussion-editor.feature
+4
-0
cms/djangoapps/contentstore/features/discussion-editor.py
+7
-0
No files found.
cms/djangoapps/contentstore/features/discussion-editor.feature
View file @
d3ec1cb9
...
@@ -11,3 +11,7 @@ Feature: Discussion Component Editor
...
@@ -11,3 +11,7 @@ Feature: Discussion Component Editor
And
I edit and select Settings
And
I edit and select Settings
Then
I can modify the display name
Then
I can modify the display name
And
my display name change is persisted on save
And
my display name change is persisted on save
Scenario
:
Creating a discussion takes a single click
Given
I have clicked the new unit button
Then
creating a discussion takes a single click
cms/djangoapps/contentstore/features/discussion-editor.py
View file @
d3ec1cb9
...
@@ -21,3 +21,10 @@ def i_see_only_the_settings_and_values(step):
...
@@ -21,3 +21,10 @@ def i_see_only_the_settings_and_values(step):
[
'Display Name'
,
"Discussion Tag"
,
True
],
[
'Display Name'
,
"Discussion Tag"
,
True
],
[
'Subcategory'
,
"Topic-Level Student-Visible Label"
,
True
]
[
'Subcategory'
,
"Topic-Level Student-Visible Label"
,
True
]
])
])
@step
(
'creating a discussion takes a single click'
)
def
discussion_takes_a_single_click
(
step
):
assert
(
not
world
.
is_css_present
(
'.xmodule_DiscussionModule'
))
world
.
css_click
(
"a[data-location='i4x://edx/templates/discussion/Discussion_Tag']"
)
assert
(
world
.
is_css_present
(
'.xmodule_DiscussionModule'
))
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