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
00f9b975
Commit
00f9b975
authored
Aug 21, 2017
by
Eric Fischer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quality
parent
bb30a120
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
test/acceptance/pages.py
+15
-6
test/acceptance/tests.py
+1
-0
No files found.
test/acceptance/pages.py
View file @
00f9b975
...
...
@@ -93,7 +93,7 @@ class OpenAssessmentPage(BaseAssessmentPage):
"""
submit_button_selector
=
self
.
_bounded_selector
(
button_css
)
EmptyPromise
(
lambda
:
False
==
any
(
self
.
q
(
css
=
submit_button_selector
)
.
attrs
(
'disabled'
)),
lambda
:
not
any
(
self
.
q
(
css
=
submit_button_selector
)
.
attrs
(
'disabled'
)),
"Submit button is enabled."
)
.
fulfill
()
...
...
@@ -286,7 +286,7 @@ class AssessmentMixin(object):
attempts
=
0
while
not
criterion_selected
()
and
attempts
<
5
:
select_criterion
()
attempts
+=
1
attempts
+=
1
self
.
submit_assessment
()
return
self
...
...
@@ -695,14 +695,20 @@ class StaffAreaPage(OpenAssessmentPage, AssessmentMixin):
self
.
q
(
css
=
student_input_css
)
.
fill
(
username
)
submit_button
=
self
.
q
(
css
=
self
.
_bounded_selector
(
".action--submit-username"
))
submit_button
.
first
.
click
()
self
.
wait_for_element_visibility
(
self
.
_bounded_selector
(
".staff-info__student__report"
),
"Student report is present"
)
self
.
wait_for_element_visibility
(
self
.
_bounded_selector
(
".staff-info__student__report"
),
"Student report is present"
)
def
expand_staff_grading_section
(
self
):
"""
Clicks the staff grade control to expand staff grading section for use in staff required workflows.
"""
self
.
q
(
css
=
self
.
_bounded_selector
(
".staff__grade__show-form"
))
.
first
.
click
()
self
.
wait_for_element_visibility
(
".staff-full-grade__assessment__rubric__question--0"
,
"staff grading is present"
)
self
.
wait_for_element_visibility
(
".staff-full-grade__assessment__rubric__question--0"
,
"staff grading is present"
)
@property
def
available_checked_out_numbers
(
self
):
...
...
@@ -718,7 +724,8 @@ class StaffAreaPage(OpenAssessmentPage, AssessmentMixin):
def
verify_available_checked_out_numbers
(
self
,
expected_value
):
"""
Waits until the expected value for available and checked out numbers appears. If it does not appear, fails the test.
Waits until the expected value for available and checked out numbers appears. If it does not appear, fails the
test.
expected_value should be a tuple as described in the available_checked_out_numbers property above.
"""
...
...
@@ -863,7 +870,9 @@ class StaffAreaPage(OpenAssessmentPage, AssessmentMixin):
Returns: the text present in "Overall Feedback"
"""
return
self
.
q
(
css
=
self
.
_bounded_selector
(
".staff-info__{} .student__answer__display__content"
.
format
(
section
)))
.
text
[
0
]
return
self
.
q
(
css
=
self
.
_bounded_selector
(
".staff-info__{} .student__answer__display__content"
.
format
(
section
))
)
.
text
[
0
]
def
_get_table_text
(
self
,
selector
):
"""
...
...
test/acceptance/tests.py
View file @
00f9b975
...
...
@@ -20,6 +20,7 @@ from acceptance.pages import AssessmentPage, GradePage, StaffAreaPage, Submissio
# This value is generally used in jenkins, but not locally
PROFILING_ENABLED
=
os
.
environ
.
get
(
'ORA_PROFILING_ENABLED'
,
False
)
def
retry
(
tries
=
2
,
delay
=
4
,
backoff
=
2
):
"""
Retry decorator with exponential backoff.
...
...
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