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
b8479305
Commit
b8479305
authored
Jun 21, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed a click to css_click and fixed earlier typo
parent
bd811b8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
lms/djangoapps/courseware/features/problems.py
+5
-4
No files found.
lms/djangoapps/courseware/features/problems.py
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 "([^"]*)"'
)
...
...
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