Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
205eb5fd
Commit
205eb5fd
authored
Nov 21, 2016
by
Christina Roberts
Committed by
GitHub
Nov 21, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #945 from edx/christina/latex-test
Enable the preview button if the submit button is enabled.
parents
9b682b64
e1b3bbfc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
openassessment/templates/openassessmentblock/response/oa_response.html
+2
-1
test/acceptance/pages.py
+2
-3
No files found.
openassessment/templates/openassessmentblock/response/oa_response.html
View file @
205eb5fd
...
...
@@ -115,7 +115,8 @@
</li>
{% if allow_latex %}
<li
class=
"list--actions__item"
>
<button
type=
"submit"
class=
"submission__preview action action--save"
aria-describedby=
"response__preview_explanation__{{ xblock_id }}"
>
<button
type=
"submit"
class=
"submission__preview action action--save"
aria-describedby=
"response__preview_explanation__{{ xblock_id }}"
{{
submit_enabled
|
yesno:
",
disabled
"
}}
>
{% trans "Preview in LaTeX"%}
</button>
<div
id=
"response__preview_explanation__{{ xblock_id }}"
class=
"response__submission__label"
>
...
...
test/acceptance/pages.py
View file @
205eb5fd
...
...
@@ -85,7 +85,7 @@ class OpenAssessmentPage(BaseAssessmentPage):
"""
submit_button_selector
=
self
.
_bounded_selector
(
button_css
)
EmptyPromise
(
lambda
:
'is--disabled'
not
in
" "
.
join
(
self
.
q
(
css
=
submit_button_selector
)
.
attrs
(
'class
'
)),
lambda
:
False
==
any
(
self
.
q
(
css
=
submit_button_selector
)
.
attrs
(
'disabled
'
)),
"Submit button is enabled."
)
.
fulfill
()
...
...
@@ -165,8 +165,7 @@ class SubmissionPage(OpenAssessmentPage):
Returns:
bool
"""
preview_latex_button_class
=
self
.
q
(
css
=
"button.submission__preview"
)
.
attrs
(
'class'
)[
0
]
return
'is--disabled'
in
preview_latex_button_class
return
self
.
q
(
css
=
"button.submission__preview"
)
.
attrs
(
'disabled'
)
==
[
'true'
]
@property
def
has_submitted
(
self
):
...
...
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