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
95f8f811
Commit
95f8f811
authored
Mar 11, 2013
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master' into feature/alex/poll-merged
Conflicts: common/lib/xmodule/xmodule/course_module.py
parents
9c85d920
43ec6eaa
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
17 deletions
+18
-17
cms/djangoapps/contentstore/features/advanced-settings.py
+10
-13
cms/djangoapps/contentstore/features/common.py
+1
-1
cms/static/js/views/settings/advanced_view.js
+2
-2
common/lib/capa/capa/templates/choicegroup.html
+5
-1
lms/static/images/university/delft/delft-cover.jpg
+0
-0
No files found.
cms/djangoapps/contentstore/features/advanced-settings.py
View file @
95f8f811
...
...
@@ -39,7 +39,7 @@ def reload_the_page(step):
def
edit_the_name_of_a_policy_key
(
step
):
policy_key_css
=
'input.policy-key'
e
=
css_find
(
policy_key_css
)
.
first
e
.
fill
(
'
new'
)
e
.
type
(
'_
new'
)
@step
(
u'I press the "([^"]*)" notification button$'
)
...
...
@@ -97,7 +97,12 @@ def i_see_only_display_name(step):
@step
(
'there are no advanced policy settings$'
)
def
no_policy_settings
(
step
):
assert_policy_entries
([],
[])
keys_css
=
'input.policy-key'
val_css
=
'textarea.json'
k
=
world
.
browser
.
is_element_not_present_by_css
(
keys_css
,
5
)
v
=
world
.
browser
.
is_element_not_present_by_css
(
val_css
,
5
)
assert_true
(
k
)
assert_true
(
v
)
@step
(
'they are alphabetized$'
)
...
...
@@ -121,7 +126,7 @@ def the_policy_key_name_is_unchanged(step):
def
the_policy_key_name_is_changed
(
step
):
policy_key_css
=
'input.policy-key'
val
=
css_find
(
policy_key_css
)
.
first
.
value
assert_equal
(
val
,
'new'
)
assert_equal
(
val
,
'
display_name_
new'
)
@step
(
u'the policy key value is unchanged$'
)
...
...
@@ -170,8 +175,8 @@ def delete_entry(index):
def
assert_policy_entries
(
expected_keys
,
expected_values
):
assert_entries
(
'.key input'
,
expected_keys
)
assert_entries
(
'.json'
,
expected_values
)
assert_entries
(
'.key input
.policy-key
'
,
expected_keys
)
assert_entries
(
'
textarea
.json'
,
expected_values
)
def
assert_entries
(
css
,
expected_values
):
...
...
@@ -184,14 +189,6 @@ def assert_entries(css, expected_values):
def
click_save
():
css
=
"a.save-button"
# def is_shown(driver):
# visible = css_find(css).first.visible
# if visible:
# # Even when waiting for visible, this fails sporadically. Adding in a small wait.
# time.sleep(float(1))
# return visible
# wait_for(is_shown)
css_click_at
(
css
)
...
...
cms/djangoapps/contentstore/features/common.py
View file @
95f8f811
...
...
@@ -126,7 +126,7 @@ def css_find(css):
def
is_visible
(
driver
):
return
EC
.
visibility_of_element_located
((
By
.
CSS_SELECTOR
,
css
,))
assert_true
(
world
.
browser
.
is_element_present_by_css
(
css
,
5
)
)
world
.
browser
.
is_element_present_by_css
(
css
,
5
)
wait_for
(
is_visible
)
return
world
.
browser
.
find_by_css
(
css
)
...
...
cms/static/js/views/settings/advanced_view.js
View file @
95f8f811
...
...
@@ -229,7 +229,7 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({
var
error
=
{};
error
[
oldKey
]
=
'You have already defined "'
+
newKey
+
'" in the manual policy definitions.'
;
error
[
newKey
]
=
"You tried to enter a duplicate of this key."
;
this
.
model
.
trigger
(
"
error
"
,
this
.
model
,
error
);
this
.
model
.
trigger
(
"
invalid
"
,
this
.
model
,
error
);
return
false
;
}
...
...
@@ -245,7 +245,7 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({
// swap to the key which the map knows about
validation
[
oldKey
]
=
validation
[
newKey
];
}
this
.
model
.
trigger
(
"
error
"
,
this
.
model
,
validation
);
this
.
model
.
trigger
(
"
invalid
"
,
this
.
model
,
validation
);
// abandon update
return
;
}
...
...
common/lib/capa/capa/templates/choicegroup.html
View file @
95f8f811
...
...
@@ -21,11 +21,15 @@
<%
if
status =
=
'
correct
'
:
correctness =
'correct'
if
status =
=
'
incorrect
'
:
el
if
status =
=
'
incorrect
'
:
correctness =
'incorrect'
else:
correctness =
None
%
>
% if correctness:
class="choicegroup_${correctness}"
% endif
% endif
>
<input
type=
"${input_type}"
name=
"input_${id}${name_array_suffix}"
id=
"input_${id}_${choice_id}"
value=
"${choice_id}"
%
if
choice_id
in
value:
...
...
lms/static/images/university/delft/delft-cover.jpg
View replaced file @
9c85d920
View file @
95f8f811
170 KB
|
W:
|
H:
193 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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