Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
b8479305
Commit
b8479305
authored
11 years ago
by
JonahStanley
Browse files
Options
Downloads
Patches
Plain Diff
Changed a click to css_click and fixed earlier typo
parent
bd811b8b
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/courseware/features/problems.py
+5
-4
5 additions, 4 deletions
lms/djangoapps/courseware/features/problems.py
with
5 additions
and
4 deletions
lms/djangoapps/courseware/features/problems.py
+
5
−
4
View file @
b8479305
...
...
@@ -9,7 +9,8 @@ from lettuce import world, step
from
lettuce.django
import
django_url
from
common
import
i_am_registered_for_the_course
,
TEST_SECTION_NAME
from
problems_setup
import
PROBLEM_DICT
,
answer_problem
,
problem_has_answer
,
add_problem_to_course
from
nose.tools
import
assert_equal
,
assert_not_equal
from
nose.tools
import
assert_equal
@step
(
u
'
I am viewing a
"
([^
"
]*)
"
problem with
"
([^
"
]*)
"
attempt
'
)
def
view_problem_with_attempts
(
step
,
problem_type
,
attempts
):
...
...
@@ -121,7 +122,7 @@ def press_the_button_with_label(_step, buttonname):
button_css
=
'
button span.show-label
'
elem
=
world
.
css_find
(
button_css
).
first
assert_equal
(
elem
.
text
,
buttonname
)
elem
.
click
(
)
world
.
css_click
(
button_css
)
@step
(
u
'
The
"
([^
"
]*)
"
button does( not)? appear
'
)
...
...
@@ -136,9 +137,9 @@ def action_button_present(_step, buttonname, doesnt_appear):
@step
(
u
'
the button with the label
"
([^
"
]*)
"
does( not)? appear
'
)
def
button_with_label_present
(
step
,
buttonname
,
doesnt_appear
):
if
doesnt_appear
:
world
.
browser
.
is_text_not_present
(
buttonname
,
wait_time
=
5
)
assert
world
.
browser
.
is_text_not_present
(
buttonname
,
wait_time
=
5
)
else
:
world
.
browser
.
is_text_present
(
buttonname
,
wait_time
=
5
)
assert
world
.
browser
.
is_text_present
(
buttonname
,
wait_time
=
5
)
@step
(
u
'
My
"
([^
"
]*)
"
answer is marked
"
([^
"
]*)
"'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment