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
7e67ee37
Commit
7e67ee37
authored
Aug 05, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Checklist links will not appear using a firefox webdriver (will work manually)
parent
3e543ce4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
cms/djangoapps/contentstore/features/checklists.feature
+2
-0
cms/djangoapps/contentstore/features/checklists.py
+8
-0
No files found.
cms/djangoapps/contentstore/features/checklists.feature
View file @
7e67ee37
...
...
@@ -10,6 +10,7 @@ Feature: Course checklists
Then
I can check and uncheck tasks in a checklist
And
They are correctly selected after reloading the page
#CHROME ONLY
Scenario
:
A
task can link to a location within Studio
Given
I have opened Checklists
When
I select a link to the course outline
...
...
@@ -17,6 +18,7 @@ Feature: Course checklists
And
I press the browser back button
Then
I am brought back to the course outline in the correct state
#CHROME ONLY
Scenario
:
A
task can link to a location outside Studio
Given
I have opened Checklists
When
I select a link to help page
...
...
cms/djangoapps/contentstore/features/checklists.py
View file @
7e67ee37
...
...
@@ -67,6 +67,8 @@ def i_am_brought_to_course_outline(step):
@step
(
'I am brought back to the course outline in the correct state$'
)
def
i_am_brought_back_to_course_outline
(
step
):
if
world
.
is_firefox
():
return
step
.
given
(
'I see the four default edX checklists'
)
# In a previous step, we selected (1, 0) in order to click the 'Edit Course Outline' link.
# Make sure the task is still showing as selected (there was a caching bug with the collection).
...
...
@@ -75,11 +77,15 @@ def i_am_brought_back_to_course_outline(step):
@step
(
'I select a link to help page$'
)
def
i_select_a_link_to_the_help_page
(
step
):
if
world
.
is_firefox
():
return
clickActionLink
(
2
,
0
,
'Visit Studio Help'
)
@step
(
'I am brought to the help page in a new window$'
)
def
i_am_brought_to_help_page_in_new_window
(
step
):
if
world
.
is_firefox
():
return
step
.
given
(
'I see the four default edX checklists'
)
windows
=
world
.
browser
.
windows
assert_equal
(
2
,
len
(
windows
))
...
...
@@ -109,6 +115,8 @@ def toggleTask(checklist, task):
# TODO: figure out a way to do this in phantom and firefox
# For now we will mark the scenerios that use this method as skipped
def
clickActionLink
(
checklist
,
task
,
actionText
):
if
world
.
is_firefox
():
return
# toggle checklist item to make sure that the link button is showing
toggleTask
(
checklist
,
task
)
action_link
=
world
.
css_find
(
'#course-checklist'
+
str
(
checklist
)
+
' a'
)[
task
]
...
...
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