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