Commit 8079731d by cahrens

Assign Studio tests to shards.

parent 638d7a45
...@@ -113,6 +113,7 @@ class CoursePagesTest(StudioCourseTest): ...@@ -113,6 +113,7 @@ class CoursePagesTest(StudioCourseTest):
page.visit() page.visit()
@attr('shard_1')
class DiscussionPreviewTest(StudioCourseTest): class DiscussionPreviewTest(StudioCourseTest):
""" """
Tests that Inline Discussions are rendered with a custom preview in Studio Tests that Inline Discussions are rendered with a custom preview in Studio
......
""" """
Acceptance tests for studio related to the outline page. Acceptance tests for studio related to the outline page.
""" """
from nose.plugins.attrib import attr
from datetime import datetime, timedelta from datetime import datetime, timedelta
import itertools import itertools
...@@ -51,6 +52,7 @@ class CourseOutlineTest(StudioCourseTest): ...@@ -51,6 +52,7 @@ class CourseOutlineTest(StudioCourseTest):
) )
@attr('shard_2')
class WarningMessagesTest(CourseOutlineTest): class WarningMessagesTest(CourseOutlineTest):
""" """
Feature: Warning messages on sections, subsections, and units Feature: Warning messages on sections, subsections, and units
...@@ -253,6 +255,7 @@ class WarningMessagesTest(CourseOutlineTest): ...@@ -253,6 +255,7 @@ class WarningMessagesTest(CourseOutlineTest):
unit.toggle_staff_lock() unit.toggle_staff_lock()
@attr('shard_2')
class EditingSectionsTest(CourseOutlineTest): class EditingSectionsTest(CourseOutlineTest):
""" """
Feature: Editing Release date, Due date and grading type. Feature: Editing Release date, Due date and grading type.
...@@ -400,6 +403,7 @@ class EditingSectionsTest(CourseOutlineTest): ...@@ -400,6 +403,7 @@ class EditingSectionsTest(CourseOutlineTest):
self.assertIn(release_text, self.course_outline_page.section_at(0).subsection_at(0).release_date) self.assertIn(release_text, self.course_outline_page.section_at(0).subsection_at(0).release_date)
@attr('shard_2')
class EditNamesTest(CourseOutlineTest): class EditNamesTest(CourseOutlineTest):
""" """
Feature: Click-to-edit section/subsection names Feature: Click-to-edit section/subsection names
...@@ -515,6 +519,7 @@ class EditNamesTest(CourseOutlineTest): ...@@ -515,6 +519,7 @@ class EditNamesTest(CourseOutlineTest):
self.assertTrue(self.course_outline_page.section_at(0).is_collapsed) self.assertTrue(self.course_outline_page.section_at(0).is_collapsed)
@attr('shard_2')
class CreateSectionsTest(CourseOutlineTest): class CreateSectionsTest(CourseOutlineTest):
""" """
Feature: Create new sections/subsections/units Feature: Create new sections/subsections/units
...@@ -588,6 +593,7 @@ class CreateSectionsTest(CourseOutlineTest): ...@@ -588,6 +593,7 @@ class CreateSectionsTest(CourseOutlineTest):
self.assertTrue(unit_page.is_inline_editing_display_name()) self.assertTrue(unit_page.is_inline_editing_display_name())
@attr('shard_2')
class DeleteContentTest(CourseOutlineTest): class DeleteContentTest(CourseOutlineTest):
""" """
Feature: Deleting sections/subsections/units Feature: Deleting sections/subsections/units
...@@ -699,6 +705,7 @@ class DeleteContentTest(CourseOutlineTest): ...@@ -699,6 +705,7 @@ class DeleteContentTest(CourseOutlineTest):
self.assertTrue(self.course_outline_page.has_no_content_message) self.assertTrue(self.course_outline_page.has_no_content_message)
@attr('shard_2')
class ExpandCollapseMultipleSectionsTest(CourseOutlineTest): class ExpandCollapseMultipleSectionsTest(CourseOutlineTest):
""" """
Feature: Courses with multiple sections can expand and collapse all sections. Feature: Courses with multiple sections can expand and collapse all sections.
...@@ -830,6 +837,7 @@ class ExpandCollapseMultipleSectionsTest(CourseOutlineTest): ...@@ -830,6 +837,7 @@ class ExpandCollapseMultipleSectionsTest(CourseOutlineTest):
self.verify_all_sections(collapsed=False) self.verify_all_sections(collapsed=False)
@attr('shard_2')
class ExpandCollapseSingleSectionTest(CourseOutlineTest): class ExpandCollapseSingleSectionTest(CourseOutlineTest):
""" """
Feature: Courses with a single section can expand and collapse all sections. Feature: Courses with a single section can expand and collapse all sections.
...@@ -869,6 +877,7 @@ class ExpandCollapseSingleSectionTest(CourseOutlineTest): ...@@ -869,6 +877,7 @@ class ExpandCollapseSingleSectionTest(CourseOutlineTest):
self.assertFalse(self.course_outline_page.section_at(0).subsection_at(1).is_collapsed) self.assertFalse(self.course_outline_page.section_at(0).subsection_at(1).is_collapsed)
@attr('shard_2')
class ExpandCollapseEmptyTest(CourseOutlineTest): class ExpandCollapseEmptyTest(CourseOutlineTest):
""" """
Feature: Courses with no sections initially can expand and collapse all sections after addition. Feature: Courses with no sections initially can expand and collapse all sections after addition.
...@@ -906,6 +915,7 @@ class ExpandCollapseEmptyTest(CourseOutlineTest): ...@@ -906,6 +915,7 @@ class ExpandCollapseEmptyTest(CourseOutlineTest):
self.assertFalse(self.course_outline_page.section_at(0).is_collapsed) self.assertFalse(self.course_outline_page.section_at(0).is_collapsed)
@attr('shard_2')
class DefaultStatesEmptyTest(CourseOutlineTest): class DefaultStatesEmptyTest(CourseOutlineTest):
""" """
Feature: Misc course outline default states/actions when starting with an empty course Feature: Misc course outline default states/actions when starting with an empty course
...@@ -930,6 +940,7 @@ class DefaultStatesEmptyTest(CourseOutlineTest): ...@@ -930,6 +940,7 @@ class DefaultStatesEmptyTest(CourseOutlineTest):
self.assertTrue(self.course_outline_page.bottom_add_section_button.is_present()) self.assertTrue(self.course_outline_page.bottom_add_section_button.is_present())
@attr('shard_2')
class DefaultStatesContentTest(CourseOutlineTest): class DefaultStatesContentTest(CourseOutlineTest):
""" """
Feature: Misc course outline default states/actions when starting with a course with content Feature: Misc course outline default states/actions when starting with a course with content
...@@ -954,6 +965,7 @@ class DefaultStatesContentTest(CourseOutlineTest): ...@@ -954,6 +965,7 @@ class DefaultStatesContentTest(CourseOutlineTest):
self.assertEqual(courseware.xblock_component_type(2), 'discussion') self.assertEqual(courseware.xblock_component_type(2), 'discussion')
@attr('shard_2')
class UnitNavigationTest(CourseOutlineTest): class UnitNavigationTest(CourseOutlineTest):
""" """
Feature: Navigate to units Feature: Navigate to units
......
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