Commit c10b1f61 by Diana Huang Committed by Andy Armstrong

Update section names to match buttons.

parent 44196db2
......@@ -11,7 +11,7 @@
<div class="openassessment__staff-tools wrapper--staff-tools wrapper--ui-staff is--hidden">
<div class="staff-info ui-staff">
<h2 class="staff-info__title ui-staff__title">
<span class="staff-info__title__copy">{% trans "Course Staff Tools" %}</span>
<span class="staff-info__title__copy">{% trans "Manage Individual Learners" %}</span>
<button class="ui-staff_close_button"><span class="sr">{% trans "Close" %}</span> <i class="icon fa fa-close" aria-hidden="true"></i></button>
</h2>
......@@ -87,7 +87,7 @@
<div class="openassessment__staff-info wrapper--staff-info wrapper--ui-staff is--hidden">
<div class="staff-info ui-staff">
<h2 class="staff-info__title ui-staff__title">
<span class="staff-info__title__copy">{% trans "Course Staff Information" %}</span>
<span class="staff-info__title__copy">{% trans "View Assignment Statistics" %}</span>
<button class="ui-staff_close_button"><span class="sr">{% trans "Close" %}</span> <i class="icon fa fa-close" aria-hidden="true"></i></button>
</h2>
......@@ -168,7 +168,7 @@
<div class="openassessment__staff-grading wrapper--staff-grading wrapper--ui-staff is--hidden">
<div class="staff-grading ui-staff">
<h2 class="staff-grading__title ui-staff__title">
<span class="staff-info__title__copy">{% trans "Staff Grading" %}</span>
<span class="staff-info__title__copy">{% trans "Grade Available Responses" %}</span>
<button class="ui-staff_close_button"><span class="sr">{% trans "Close" %}</span> <i class="icon fa fa-close" aria-hidden="true"></i></button>
</h2>
......
......@@ -81,12 +81,12 @@ class TestCourseStaff(XBlockHandlerTestCase):
xblock.scope_ids.usage_id, False, False, "Bob"
)
resp = self.request(xblock, 'render_staff_area', json.dumps({}))
self.assertNotIn("Staff Info", resp.decode('utf-8').lower())
self.assertNotIn("view assignment statistics", resp.decode('utf-8').lower())
# If we ARE course staff, then we should see the debug info
xblock.xmodule_runtime.user_is_staff = True
resp = self.request(xblock, 'render_staff_area', json.dumps({}))
self.assertIn("staff info", resp.decode('utf-8').lower())
self.assertIn("view assignment statistics", resp.decode('utf-8').lower())
@scenario('data/basic_scenario.xml', user_id='Bob')
def test_course_student_debug_info(self, xblock):
......@@ -113,7 +113,7 @@ class TestCourseStaff(XBlockHandlerTestCase):
# If the client requests the staff info directly, they should get an error
resp = self.request(xblock, 'render_staff_area', json.dumps({}))
self.assertNotIn("course staff information", resp.decode('utf-8').lower())
self.assertNotIn("view assignment statistics", resp.decode('utf-8').lower())
self.assertIn("do not have permission", resp.decode('utf-8').lower())
# The container page should not contain a staff info section at all
......@@ -130,7 +130,7 @@ class TestCourseStaff(XBlockHandlerTestCase):
# Verify that we can render without error
resp = self.request(xblock, 'render_staff_area', json.dumps({}))
decoded_response = resp.decode('utf-8').lower()
self.assertIn("course staff information", decoded_response)
self.assertIn("view assignment statistics", decoded_response)
# Confirm example-based-assessment does not show up; it is not date
# driven so its start / due dates are not relevant
......@@ -154,7 +154,7 @@ class TestCourseStaff(XBlockHandlerTestCase):
# Verify that we can render without error
resp = self.request(xblock, 'render_staff_area', json.dumps({}))
self.assertIn("course staff information", resp.decode('utf-8').lower())
self.assertIn("view assignment statistics", resp.decode('utf-8').lower())
self.assertIn("n/a", resp.decode('utf-8').lower())
@scenario('data/basic_scenario.xml', user_id='Bob')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment