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
f8c66c1a
Commit
f8c66c1a
authored
Feb 09, 2016
by
Jesse Zoldak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11463 from edx/zoldak/staff-debug-test
Remove duplicate staff debug acceptance tests
parents
baf79e8b
fc486605
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
64 deletions
+0
-64
lms/djangoapps/courseware/features/staff_debug_info.feature
+0
-13
lms/djangoapps/courseware/features/staff_debug_info.py
+0
-51
No files found.
lms/djangoapps/courseware/features/staff_debug_info.feature
deleted
100644 → 0
View file @
baf79e8b
@shard_1
Feature
:
LMS.Debug staff info links
As a course staff in an edX course
In order to test my understanding of the material
I want to click on staff debug info links
Scenario
:
I
can reset student attempts
When
i am staff member for the course
"model_course"
And
I am viewing a
"multiple choice"
problem
And
I can view staff debug info
Then
I can reset student attempts
Then
I cannot see delete student state link
Then
I cannot see rescore student submission link
lms/djangoapps/courseware/features/staff_debug_info.py
deleted
100644 → 0
View file @
baf79e8b
"""
Steps for staff_debug_info.feature lettuce tests
"""
from
django.contrib.auth.models
import
User
from
lettuce
import
world
,
step
from
common
import
create_course
,
course_id
from
courseware.courses
import
get_course_by_id
from
instructor.access
import
allow_access
@step
(
u'i am staff member for the course "([^"]*)"$'
)
def
i_am_staff_member_for_the_course
(
step
,
course_number
):
# Create the course
create_course
(
step
,
course_number
)
course
=
get_course_by_id
(
course_id
(
course_number
))
# Create the user
world
.
create_user
(
'robot'
,
'test'
)
user
=
User
.
objects
.
get
(
username
=
'robot'
)
# Add user as a course staff.
allow_access
(
course
,
user
,
"staff"
)
world
.
log_in
(
username
=
'robot'
,
password
=
'test'
)
@step
(
u'I can view staff debug info'
)
def
view_staff_debug_info
(
step
):
css_selector
=
"a.instructor-info-action"
world
.
css_click
(
css_selector
)
world
.
wait_for_visible
(
"section.staff-modal"
)
@step
(
u'I can reset student attempts'
)
def
view_staff_debug_info
(
step
):
css_selector
=
"a.staff-debug-reset"
world
.
css_click
(
css_selector
)
world
.
wait_for_ajax_complete
()
@step
(
u'I cannot see delete student state link'
)
def
view_staff_debug_info
(
step
):
css_selector
=
"a.staff-debug-sdelete"
world
.
is_css_not_present
(
css_selector
)
@step
(
u'I cannot see rescore student submission link'
)
def
view_staff_debug_info
(
step
):
css_selector
=
"a.staff-debug-rescore"
world
.
is_css_not_present
(
css_selector
)
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