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
76764b8b
Commit
76764b8b
authored
Aug 08, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed weight test so it won't behave differently on firefox
parent
bcdc4bcb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
cms/djangoapps/contentstore/features/problem-editor.py
+3
-6
No files found.
cms/djangoapps/contentstore/features/problem-editor.py
View file @
76764b8b
...
...
@@ -130,11 +130,7 @@ 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
# On firefox with selenium, it will register as still being a change despite the weight remaining blank
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
)
world
.
verify_setting_entry
(
world
.
get_setting_entry
(
PROBLEM_WEIGHT
),
PROBLEM_WEIGHT
,
""
,
False
)
@step
(
'if I set the max attempts to "(.*)", it displays initially as "(.*)", and is persisted as "(.*)"'
)
...
...
@@ -228,7 +224,8 @@ 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
)
world
.
trigger_event
(
'.wrapper-comp-setting .setting-input'
,
index
=
index
,
event
=
'blur'
)
world
.
trigger_event
(
'a.save-button'
,
event
=
'focus'
)
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