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
007a4e53
Commit
007a4e53
authored
May 23, 2013
by
David Baumgold
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2110 from edx/fix/db/lettuce-tests
Fix lettuce tests
parents
ba93f453
cf1e906c
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
33 additions
and
31 deletions
+33
-31
cms/djangoapps/contentstore/features/advanced-settings.py
+1
-3
cms/djangoapps/contentstore/features/checklists.py
+1
-3
cms/djangoapps/contentstore/features/course-settings.py
+1
-3
cms/djangoapps/contentstore/features/courses.py
+1
-1
cms/djangoapps/contentstore/features/section.py
+1
-1
cms/templates/checklists.html
+0
-1
cms/templates/course_info.html
+0
-1
cms/templates/settings.html
+0
-1
cms/templates/settings_advanced.html
+0
-1
cms/templates/settings_discussions_faculty.html
+14
-15
cms/templates/settings_graders.html
+0
-1
common/djangoapps/terrain/ui_helpers.py
+14
-0
No files found.
cms/djangoapps/contentstore/features/advanced-settings.py
View file @
007a4e53
...
@@ -19,9 +19,7 @@ DISPLAY_NAME_VALUE = '"Robot Super Course"'
...
@@ -19,9 +19,7 @@ DISPLAY_NAME_VALUE = '"Robot Super Course"'
############### ACTIONS ####################
############### ACTIONS ####################
@step
(
'I select the Advanced Settings$'
)
@step
(
'I select the Advanced Settings$'
)
def
i_select_advanced_settings
(
step
):
def
i_select_advanced_settings
(
step
):
expand_icon_css
=
'li.nav-course-settings i.icon-expand'
world
.
click_course_settings
()
if
world
.
browser
.
is_element_present_by_css
(
expand_icon_css
):
world
.
css_click
(
expand_icon_css
)
link_css
=
'li.nav-course-settings-advanced a'
link_css
=
'li.nav-course-settings-advanced a'
world
.
css_click
(
link_css
)
world
.
css_click
(
link_css
)
...
...
cms/djangoapps/contentstore/features/checklists.py
View file @
007a4e53
...
@@ -10,9 +10,7 @@ from selenium.common.exceptions import StaleElementReferenceException
...
@@ -10,9 +10,7 @@ from selenium.common.exceptions import StaleElementReferenceException
############### ACTIONS ####################
############### ACTIONS ####################
@step
(
'I select Checklists from the Tools menu$'
)
@step
(
'I select Checklists from the Tools menu$'
)
def
i_select_checklists
(
step
):
def
i_select_checklists
(
step
):
expand_icon_css
=
'li.nav-course-tools i.icon-expand'
world
.
click_tools
()
if
world
.
browser
.
is_element_present_by_css
(
expand_icon_css
):
world
.
css_click
(
expand_icon_css
)
link_css
=
'li.nav-course-tools-checklists a'
link_css
=
'li.nav-course-tools-checklists a'
world
.
css_click
(
link_css
)
world
.
css_click
(
link_css
)
...
...
cms/djangoapps/contentstore/features/course-settings.py
View file @
007a4e53
...
@@ -25,9 +25,7 @@ DEFAULT_TIME = "00:00"
...
@@ -25,9 +25,7 @@ DEFAULT_TIME = "00:00"
############### ACTIONS ####################
############### ACTIONS ####################
@step
(
'I select Schedule and Details$'
)
@step
(
'I select Schedule and Details$'
)
def
test_i_select_schedule_and_details
(
step
):
def
test_i_select_schedule_and_details
(
step
):
expand_icon_css
=
'li.nav-course-settings i.icon-expand'
world
.
click_course_settings
()
if
world
.
browser
.
is_element_present_by_css
(
expand_icon_css
):
world
.
css_click
(
expand_icon_css
)
link_css
=
'li.nav-course-settings-schedule a'
link_css
=
'li.nav-course-settings-schedule a'
world
.
css_click
(
link_css
)
world
.
css_click
(
link_css
)
...
...
cms/djangoapps/contentstore/features/courses.py
View file @
007a4e53
...
@@ -62,4 +62,4 @@ def i_am_on_tab(step, tab_name):
...
@@ -62,4 +62,4 @@ def i_am_on_tab(step, tab_name):
@step
(
'I see a link for adding a new section$'
)
@step
(
'I see a link for adding a new section$'
)
def
i_see_new_section_link
(
step
):
def
i_see_new_section_link
(
step
):
link_css
=
'a.new-courseware-section-button'
link_css
=
'a.new-courseware-section-button'
assert
world
.
css_has_text
(
link_css
,
'
+
New Section'
)
assert
world
.
css_has_text
(
link_css
,
'New Section'
)
cms/djangoapps/contentstore/features/section.py
View file @
007a4e53
...
@@ -62,7 +62,7 @@ def i_click_to_edit_section_name(step):
...
@@ -62,7 +62,7 @@ def i_click_to_edit_section_name(step):
@step
(
'I see the complete section name with a quote in the editor$'
)
@step
(
'I see the complete section name with a quote in the editor$'
)
def
i_see_complete_section_name_with_quote_in_editor
(
step
):
def
i_see_complete_section_name_with_quote_in_editor
(
step
):
css
=
'.
edit-section-name
'
css
=
'.
section-name-edit input[type=text]
'
assert
world
.
is_css_present
(
css
)
assert
world
.
is_css_present
(
css
)
assert_equal
(
world
.
browser
.
find_by_css
(
css
)
.
value
,
'Section with "Quote"'
)
assert_equal
(
world
.
browser
.
find_by_css
(
css
)
.
value
,
'Section with "Quote"'
)
...
...
cms/templates/checklists.html
View file @
007a4e53
...
@@ -9,7 +9,6 @@
...
@@ -9,7 +9,6 @@
<script
type=
"text/javascript"
src=
"${static.url('js/template_loader.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/template_loader.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/checklists_view.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/checklists_view.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/checklists.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/checklists.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/server_error.js')}"
></script>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
...
...
cms/templates/course_info.html
View file @
007a4e53
...
@@ -11,7 +11,6 @@
...
@@ -11,7 +11,6 @@
<script
type=
"text/javascript"
src=
"${static.url('js/models/course_info.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/course_info.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/module_info.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/module_info.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/course_info_edit.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/course_info_edit.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/server_error.js')}"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"${static.url('js/vendor/timepicker/jquery.timepicker.css')}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"${static.url('js/vendor/timepicker/jquery.timepicker.css')}"
/>
<script
src=
"${static.url('js/vendor/timepicker/jquery.timepicker.js')}"
></script>
<script
src=
"${static.url('js/vendor/timepicker/jquery.timepicker.js')}"
></script>
<script
src=
"${static.url('js/vendor/timepicker/datepair.js')}"
></script>
<script
src=
"${static.url('js/vendor/timepicker/datepair.js')}"
></script>
...
...
cms/templates/settings.html
View file @
007a4e53
...
@@ -15,7 +15,6 @@ from contentstore import utils
...
@@ -15,7 +15,6 @@ from contentstore import utils
<script
src=
"${static.url('js/vendor/date.js')}"
></script>
<script
src=
"${static.url('js/vendor/date.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/template_loader.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/template_loader.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/server_error.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/course_relative.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/course_relative.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/validating_view.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/validating_view.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/settings/main_settings_view.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/settings/main_settings_view.js')}"
></script>
...
...
cms/templates/settings_advanced.html
View file @
007a4e53
...
@@ -11,7 +11,6 @@ from contentstore import utils
...
@@ -11,7 +11,6 @@ from contentstore import utils
<
%
block
name=
"jsextra"
>
<
%
block
name=
"jsextra"
>
<script
type=
"text/javascript"
src=
"${static.url('js/template_loader.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/template_loader.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/server_error.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/validating_view.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/validating_view.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/settings/advanced.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/settings/advanced.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/settings/advanced_view.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/settings/advanced_view.js')}"
></script>
...
...
cms/templates/settings_discussions_faculty.html
View file @
007a4e53
...
@@ -6,27 +6,26 @@
...
@@ -6,27 +6,26 @@
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%!
<
%!
from
contentstore
import
utils
from
contentstore
import
utils
%
>
%
>
<
%
block
name=
"jsextra"
>
<
%
block
name=
"jsextra"
>
<script
type=
"text/javascript"
src=
"${static.url('js/template_loader.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/template_loader.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/server_error.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/course_relative.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/course_relative.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/validating_view.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/validating_view.js')}"
></script>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
(){
$
(
document
).
ready
(
function
(){
});
});
</script>
</script>
</
%
block>
</
%
block>
<
%
block
name=
"content"
>
<
%
block
name=
"content"
>
<!-- -->
<!-- -->
<div
class=
"main-wrapper"
>
<div
class=
"main-wrapper"
>
<div
class=
"inner-wrapper"
>
<div
class=
"inner-wrapper"
>
<h1>
Settings
</h1>
<h1>
Settings
</h1>
<article
class=
"settings-overview"
>
<article
class=
"settings-overview"
>
<div
class=
"settings-page-section main-column"
>
<div
class=
"settings-page-section main-column"
>
...
@@ -74,7 +73,7 @@ from contentstore import utils
...
@@ -74,7 +73,7 @@ from contentstore import utils
<div
class=
"field"
>
<div
class=
"field"
>
<textarea
class=
"long tall edit-box tinymce"
id=
"course-faculty-1-bio"
></textarea>
<textarea
class=
"long tall edit-box tinymce"
id=
"course-faculty-1-bio"
></textarea>
<span
class=
"tip tip-stacked"
>
A brief description of your education, experience, and expertise
</span>
<span
class=
"tip tip-stacked"
>
A brief description of your education, experience, and expertise
</span>
</div>
</div>
</div>
</div>
<a
href=
"#"
class=
"remove-item remove-faculty-data"
><span
class=
"delete-icon"
></span>
Delete Faculty Member
</a>
<a
href=
"#"
class=
"remove-item remove-faculty-data"
><span
class=
"delete-icon"
></span>
Delete Faculty Member
</a>
...
@@ -102,7 +101,7 @@ from contentstore import utils
...
@@ -102,7 +101,7 @@ from contentstore import utils
<a
href=
"#"
class=
"new-item new-faculty-photo add-faculty-photo-data"
id=
"course-faculty-2-photo"
>
<a
href=
"#"
class=
"new-item new-faculty-photo add-faculty-photo-data"
id=
"course-faculty-2-photo"
>
<span
class=
"upload-icon"
></span>
Upload Faculty Photo
<span
class=
"upload-icon"
></span>
Upload Faculty Photo
</a>
</a>
<span
class=
"tip tip-inline"
>
Max size: 30KB
</span>
<span
class=
"tip tip-inline"
>
Max size: 30KB
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -114,7 +113,7 @@ from contentstore import utils
...
@@ -114,7 +113,7 @@ from contentstore import utils
<textarea
class=
"long tall edit-box tinymce"
id=
"course-faculty-2-bio"
></textarea>
<textarea
class=
"long tall edit-box tinymce"
id=
"course-faculty-2-bio"
></textarea>
<span
class=
"tip tip-stacked"
>
A brief description of your education, experience, and expertise
</span>
<span
class=
"tip tip-stacked"
>
A brief description of your education, experience, and expertise
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</li>
</li>
</ul>
</ul>
...
@@ -143,7 +142,7 @@ from contentstore import utils
...
@@ -143,7 +142,7 @@ from contentstore import utils
<div
class=
"field"
>
<div
class=
"field"
>
<div
class=
"input input-radio"
>
<div
class=
"input input-radio"
>
<input
checked=
"checked"
type=
"radio"
name=
"course-problems-general-randomization"
id=
"course-problems-general-randomization-always"
value=
"Always"
>
<input
checked=
"checked"
type=
"radio"
name=
"course-problems-general-randomization"
id=
"course-problems-general-randomization-always"
value=
"Always"
>
<div
class=
"copy"
>
<div
class=
"copy"
>
<label
for=
"course-problems-general-randomization-always"
>
Always
</label>
<label
for=
"course-problems-general-randomization-always"
>
Always
</label>
<span
class=
"tip tip-stacked"
><strong>
randomize all
</strong>
problems
</span>
<span
class=
"tip tip-stacked"
><strong>
randomize all
</strong>
problems
</span>
...
@@ -217,7 +216,7 @@ from contentstore import utils
...
@@ -217,7 +216,7 @@ from contentstore import utils
<div
class=
"field"
>
<div
class=
"field"
>
<div
class=
"input input-radio"
>
<div
class=
"input input-radio"
>
<input
checked=
"checked"
type=
"radio"
name=
"course-problems-assignment-1-randomization"
id=
"course-problems-assignment-1-randomization-always"
value=
"Always"
>
<input
checked=
"checked"
type=
"radio"
name=
"course-problems-assignment-1-randomization"
id=
"course-problems-assignment-1-randomization-always"
value=
"Always"
>
<div
class=
"copy"
>
<div
class=
"copy"
>
<label
for=
"course-problems-assignment-1-randomization-always"
>
Always
</label>
<label
for=
"course-problems-assignment-1-randomization-always"
>
Always
</label>
<span
class=
"tip tip-stacked"
><strong>
randomize all
</strong>
problems
</span>
<span
class=
"tip tip-stacked"
><strong>
randomize all
</strong>
problems
</span>
...
@@ -283,7 +282,7 @@ from contentstore import utils
...
@@ -283,7 +282,7 @@ from contentstore import utils
<section
class=
"settings-discussions"
>
<section
class=
"settings-discussions"
>
<h2
class=
"title"
>
Discussions
</h2>
<h2
class=
"title"
>
Discussions
</h2>
<section
class=
"settings-discussions-general"
>
<section
class=
"settings-discussions-general"
>
<header>
<header>
<h3>
General Settings
</h3>
<h3>
General Settings
</h3>
...
@@ -296,7 +295,7 @@ from contentstore import utils
...
@@ -296,7 +295,7 @@ from contentstore import utils
<div
class=
"field"
>
<div
class=
"field"
>
<div
class=
"input input-radio"
>
<div
class=
"input input-radio"
>
<input
type=
"radio"
name=
"course-discussions-anonymous"
id=
"course-discussions-anonymous-allow"
value=
"Allow"
>
<input
type=
"radio"
name=
"course-discussions-anonymous"
id=
"course-discussions-anonymous-allow"
value=
"Allow"
>
<div
class=
"copy"
>
<div
class=
"copy"
>
<label
for=
"course-discussions-anonymous-allow"
>
Allow
</label>
<label
for=
"course-discussions-anonymous-allow"
>
Allow
</label>
<span
class=
"tip tip-stacked"
>
Students and faculty
<strong>
will be able to post anonymously
</strong></span>
<span
class=
"tip tip-stacked"
>
Students and faculty
<strong>
will be able to post anonymously
</strong></span>
...
@@ -320,7 +319,7 @@ from contentstore import utils
...
@@ -320,7 +319,7 @@ from contentstore import utils
<div
class=
"field"
>
<div
class=
"field"
>
<div
class=
"input input-radio"
>
<div
class=
"input input-radio"
>
<input
checked=
"checked"
type=
"radio"
name=
"course-discussions-anonymous"
id=
"course-discussions-anonymous-allow"
value=
"Allow"
>
<input
checked=
"checked"
type=
"radio"
name=
"course-discussions-anonymous"
id=
"course-discussions-anonymous-allow"
value=
"Allow"
>
<div
class=
"copy"
>
<div
class=
"copy"
>
<label
for=
"course-discussions-anonymous-allow"
>
Allow
</label>
<label
for=
"course-discussions-anonymous-allow"
>
Allow
</label>
<span
class=
"tip tip-stacked"
>
Students and faculty
<strong>
will be able to post anonymously
</strong></span>
<span
class=
"tip tip-stacked"
>
Students and faculty
<strong>
will be able to post anonymously
</strong></span>
...
@@ -329,7 +328,7 @@ from contentstore import utils
...
@@ -329,7 +328,7 @@ from contentstore import utils
<div
class=
"input input-radio"
>
<div
class=
"input input-radio"
>
<input
disabled=
"disabled"
type=
"radio"
name=
"course-discussions-anonymous"
id=
"course-discussions-anonymous-dontallow"
value=
"Do Not Allow"
>
<input
disabled=
"disabled"
type=
"radio"
name=
"course-discussions-anonymous"
id=
"course-discussions-anonymous-dontallow"
value=
"Do Not Allow"
>
<div
class=
"copy"
>
<div
class=
"copy"
>
<label
for=
"course-discussions-anonymous-dontallow"
>
Do not allow
</label>
<label
for=
"course-discussions-anonymous-dontallow"
>
Do not allow
</label>
<span
class=
"tip tip-stacked"
>
This option is disabled since there are previous discussions that are anonymous.
</span>
<span
class=
"tip tip-stacked"
>
This option is disabled since there are previous discussions that are anonymous.
</span>
...
@@ -351,7 +350,7 @@ from contentstore import utils
...
@@ -351,7 +350,7 @@ from contentstore import utils
<a
href=
"#"
class=
"drag-handle"
></a>
<a
href=
"#"
class=
"drag-handle"
></a>
</li>
</li>
<li
class=
"input input-existing input-default course-discussions-categories-list-item sortable-item"
>
<li
class=
"input input-existing input-default course-discussions-categories-list-item sortable-item"
>
<div
class=
"group"
>
<div
class=
"group"
>
<label
for=
"course-discussions-categories-2-name"
>
Category Name:
</label>
<label
for=
"course-discussions-categories-2-name"
>
Category Name:
</label>
...
...
cms/templates/settings_graders.html
View file @
007a4e53
...
@@ -12,7 +12,6 @@ from contentstore import utils
...
@@ -12,7 +12,6 @@ from contentstore import utils
<script
src=
"${static.url('js/vendor/timepicker/jquery.timepicker.js')}"
></script>
<script
src=
"${static.url('js/vendor/timepicker/jquery.timepicker.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/template_loader.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/template_loader.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/server_error.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/course_relative.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/course_relative.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/validating_view.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/validating_view.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/settings/course_grading_policy.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/settings/course_grading_policy.js')}"
></script>
...
...
common/djangoapps/terrain/ui_helpers.py
View file @
007a4e53
...
@@ -123,3 +123,17 @@ def save_the_html(path='/tmp'):
...
@@ -123,3 +123,17 @@ def save_the_html(path='/tmp'):
f
=
open
(
'
%
s/
%
s'
%
(
path
,
filename
),
'w'
)
f
=
open
(
'
%
s/
%
s'
%
(
path
,
filename
),
'w'
)
f
.
write
(
html
)
f
.
write
(
html
)
f
.
close
()
f
.
close
()
@world.absorb
def
click_course_settings
():
course_settings_css
=
'li.nav-course-settings'
if
world
.
browser
.
is_element_present_by_css
(
course_settings_css
):
world
.
css_click
(
course_settings_css
)
@world.absorb
def
click_tools
():
tools_css
=
'li.nav-course-tools'
if
world
.
browser
.
is_element_present_by_css
(
tools_css
):
world
.
css_click
(
tools_css
)
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