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
973d5e65
Commit
973d5e65
authored
Aug 02, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue of firefox behaving differently for erroneous input
Removed set traces
parent
9cce3a9a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
cms/djangoapps/contentstore/features/common.py
+4
-0
cms/djangoapps/contentstore/features/problem-editor.py
+7
-0
No files found.
cms/djangoapps/contentstore/features/common.py
View file @
973d5e65
...
...
@@ -197,11 +197,15 @@ def add_subsection(name='Subsection One'):
def
set_date_and_time
(
date_css
,
desired_date
,
time_css
,
desired_time
):
world
.
css_fill
(
date_css
,
desired_date
)
if
world
.
is_firefox
():
world
.
trigger_event
(
date_css
)
# hit TAB to get to the time field
e
=
world
.
css_find
(
date_css
)
.
first
# pylint: disable=W0212
e
.
_element
.
send_keys
(
Keys
.
TAB
)
world
.
css_fill
(
time_css
,
desired_time
)
if
world
.
is_firefox
():
world
.
trigger_event
(
time_css
)
e
=
world
.
css_find
(
time_css
)
.
first
e
.
_element
.
send_keys
(
Keys
.
TAB
)
time
.
sleep
(
float
(
1
))
...
...
cms/djangoapps/contentstore/features/problem-editor.py
View file @
973d5e65
...
...
@@ -130,6 +130,9 @@ def set_the_weight_to_abc(step, bad_weight):
world
.
verify_setting_entry
(
world
.
get_setting_entry
(
PROBLEM_WEIGHT
),
PROBLEM_WEIGHT
,
""
,
True
)
world
.
save_component_and_reopen
(
step
)
# But no change was actually ever sent to the model, so on reopen, explicitly_set is False
if
world
.
is_firefox
():
world
.
verify_setting_entry
(
world
.
get_setting_entry
(
PROBLEM_WEIGHT
),
PROBLEM_WEIGHT
,
""
,
True
)
else
:
world
.
verify_setting_entry
(
world
.
get_setting_entry
(
PROBLEM_WEIGHT
),
PROBLEM_WEIGHT
,
""
,
False
)
...
...
@@ -137,6 +140,8 @@ def set_the_weight_to_abc(step, bad_weight):
def
set_the_max_attempts
(
step
,
max_attempts_set
,
max_attempts_displayed
,
max_attempts_persisted
):
index
=
world
.
get_setting_entry_index
(
MAXIMUM_ATTEMPTS
)
world
.
css_fill
(
'.wrapper-comp-setting .setting-input'
,
max_attempts_set
,
index
=
index
)
if
world
.
is_firefox
():
world
.
trigger_event
(
'.wrapper-comp-setting .setting-input'
,
index
=
index
)
world
.
verify_setting_entry
(
world
.
get_setting_entry
(
MAXIMUM_ATTEMPTS
),
MAXIMUM_ATTEMPTS
,
max_attempts_displayed
,
True
)
world
.
save_component_and_reopen
(
step
)
world
.
verify_setting_entry
(
world
.
get_setting_entry
(
MAXIMUM_ATTEMPTS
),
MAXIMUM_ATTEMPTS
,
max_attempts_persisted
,
True
)
...
...
@@ -222,6 +227,8 @@ def verify_unset_display_name():
def
set_weight
(
weight
):
index
=
world
.
get_setting_entry_index
(
PROBLEM_WEIGHT
)
world
.
css_fill
(
'.wrapper-comp-setting .setting-input'
,
weight
,
index
=
index
)
if
world
.
is_firefox
():
world
.
trigger_event
(
'.wrapper-comp-setting .setting-input'
,
index
=
index
)
def
open_high_level_source
():
...
...
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