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
fdae162b
Commit
fdae162b
authored
Nov 30, 2015
by
solashirai
Committed by
solashirai
Mar 26, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added method to skip test unless testing in lms
parent
b7b1d43e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
openedx/tests/xblock_integration/crowdsourcehinter_problem.py
+37
-0
No files found.
openedx/tests/xblock_integration/crowdsourcehinter_problem.py
0 → 100644
View file @
fdae162b
from
bok_choy.page_object
import
PageObject
class
CrowdsourcehinterProblemPage
(
PageObject
):
url
=
None
def
is_browser_on_page
(
self
):
return
len
(
self
.
browser
.
find_elements_by_class_name
(
'crowdsourcehinter_block'
))
>
0
def
submit_text_answer
(
self
,
text
):
"""
Submit an answer to the problem block
"""
self
.
q
(
css
=
'input[type="text"]'
)
.
fill
(
text
)
self
.
q
(
css
=
'.action [data-value="Check"]'
)
.
click
()
self
.
wait_for_ajax
()
def
get_hint_text
(
self
):
"""
Return the hint shown to the student
"""
return
self
.
q
(
css
=
'div.csh_hint_text'
)
.
text
def
get_student_answer_text
(
self
):
return
self
.
q
(
css
=
'div.csh_hint_text'
)
.
attrs
(
'student_answer'
)
def
rate_hint
(
self
):
self
.
q
(
css
=
'div.csh_rate_hint'
)
.
click
()
self
.
wait_for_ajax
()
def
submit_new_hint
(
self
,
text
):
self
.
q
(
css
=
'.csh_student_hint_creation input[type="button"]'
)
.
click
()
self
.
wait_for_ajax
()
self
.
q
(
css
=
'.csh_student_text_input input[type="text"]'
)
.
fill
(
text
)
self
.
q
(
css
=
'.csh_submit_new input[type="button"]'
)
.
click
()
self
.
wait_for_ajax
()
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