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
bf28861e
Commit
bf28861e
authored
Dec 29, 2016
by
Ben Patterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create shards 10 and 11 for bok-choy.
parent
4a71af8d
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
69 additions
and
17 deletions
+69
-17
common/test/acceptance/tests/lms/test_library.py
+3
-3
common/test/acceptance/tests/lms/test_lms_courseware.py
+5
-0
common/test/acceptance/tests/lms/test_lms_instructor_dashboard.py
+6
-6
common/test/acceptance/tests/lms/test_lms_problems.py
+13
-0
common/test/acceptance/tests/lms/test_lms_user_preview.py
+5
-5
common/test/acceptance/tests/lms/test_progress_page.py
+2
-0
common/test/acceptance/tests/studio/test_studio_components.py
+3
-0
common/test/acceptance/tests/studio/test_studio_help.py
+28
-1
common/test/acceptance/tests/studio/test_studio_settings.py
+2
-0
scripts/generic-ci-tests.sh
+2
-2
No files found.
common/test/acceptance/tests/lms/test_library.py
View file @
bf28861e
...
@@ -21,7 +21,7 @@ SUBSECTION_NAME = 'Test Subsection'
...
@@ -21,7 +21,7 @@ SUBSECTION_NAME = 'Test Subsection'
UNIT_NAME
=
'Test Unit'
UNIT_NAME
=
'Test Unit'
@attr
(
shard
=
7
)
@attr
(
shard
=
10
)
class
LibraryContentTestBase
(
UniqueCourseTest
):
class
LibraryContentTestBase
(
UniqueCourseTest
):
""" Base class for library content block tests """
""" Base class for library content block tests """
USERNAME
=
"STUDENT_TESTER"
USERNAME
=
"STUDENT_TESTER"
...
@@ -143,7 +143,7 @@ class LibraryContentTestBase(UniqueCourseTest):
...
@@ -143,7 +143,7 @@ class LibraryContentTestBase(UniqueCourseTest):
@ddt.ddt
@ddt.ddt
@attr
(
shard
=
7
)
@attr
(
shard
=
10
)
class
LibraryContentTest
(
LibraryContentTestBase
):
class
LibraryContentTest
(
LibraryContentTestBase
):
"""
"""
Test courseware.
Test courseware.
...
@@ -196,7 +196,7 @@ class LibraryContentTest(LibraryContentTestBase):
...
@@ -196,7 +196,7 @@ class LibraryContentTest(LibraryContentTestBase):
@ddt.ddt
@ddt.ddt
@attr
(
shard
=
7
)
@attr
(
shard
=
10
)
class
StudioLibraryContainerCapaFilterTest
(
LibraryContentTestBase
,
TestWithSearchIndexMixin
):
class
StudioLibraryContainerCapaFilterTest
(
LibraryContentTestBase
,
TestWithSearchIndexMixin
):
"""
"""
Test Library Content block in LMS
Test Library Content block in LMS
...
...
common/test/acceptance/tests/lms/test_lms_courseware.py
View file @
bf28861e
...
@@ -26,6 +26,7 @@ from ...pages.studio.auto_auth import AutoAuthPage
...
@@ -26,6 +26,7 @@ from ...pages.studio.auto_auth import AutoAuthPage
from
...pages.studio.overview
import
CourseOutlinePage
from
...pages.studio.overview
import
CourseOutlinePage
@attr
(
shard
=
9
)
class
CoursewareTest
(
UniqueCourseTest
):
class
CoursewareTest
(
UniqueCourseTest
):
"""
"""
Test courseware.
Test courseware.
...
@@ -125,6 +126,7 @@ class CoursewareTest(UniqueCourseTest):
...
@@ -125,6 +126,7 @@ class CoursewareTest(UniqueCourseTest):
self
.
assertEqual
(
courseware_page_breadcrumb
,
expected_breadcrumb
)
self
.
assertEqual
(
courseware_page_breadcrumb
,
expected_breadcrumb
)
@attr
(
shard
=
9
)
@ddt.ddt
@ddt.ddt
class
ProctoredExamTest
(
UniqueCourseTest
):
class
ProctoredExamTest
(
UniqueCourseTest
):
"""
"""
...
@@ -375,6 +377,7 @@ class ProctoredExamTest(UniqueCourseTest):
...
@@ -375,6 +377,7 @@ class ProctoredExamTest(UniqueCourseTest):
self
.
assertFalse
(
self
.
course_outline
.
exam_review_rules_field_visible
())
self
.
assertFalse
(
self
.
course_outline
.
exam_review_rules_field_visible
())
@attr
(
shard
=
9
)
class
CoursewareMultipleVerticalsTest
(
UniqueCourseTest
,
EventsTestMixin
):
class
CoursewareMultipleVerticalsTest
(
UniqueCourseTest
,
EventsTestMixin
):
"""
"""
Test courseware with multiple verticals
Test courseware with multiple verticals
...
@@ -661,6 +664,7 @@ class CoursewareMultipleVerticalsTest(UniqueCourseTest, EventsTestMixin):
...
@@ -661,6 +664,7 @@ class CoursewareMultipleVerticalsTest(UniqueCourseTest, EventsTestMixin):
self
.
courseware_page
.
a11y_audit
.
check_for_accessibility_errors
()
self
.
courseware_page
.
a11y_audit
.
check_for_accessibility_errors
()
@attr
(
shard
=
9
)
class
ProblemStateOnNavigationTest
(
UniqueCourseTest
):
class
ProblemStateOnNavigationTest
(
UniqueCourseTest
):
"""
"""
Test courseware with problems in multiple verticals.
Test courseware with problems in multiple verticals.
...
@@ -821,6 +825,7 @@ class ProblemStateOnNavigationTest(UniqueCourseTest):
...
@@ -821,6 +825,7 @@ class ProblemStateOnNavigationTest(UniqueCourseTest):
self
.
assertEqual
(
before_meta
,
after_meta
)
self
.
assertEqual
(
before_meta
,
after_meta
)
@attr
(
shard
=
9
)
class
SubsectionHiddenAfterDueDateTest
(
UniqueCourseTest
):
class
SubsectionHiddenAfterDueDateTest
(
UniqueCourseTest
):
"""
"""
Tests the "hide after due date" setting for
Tests the "hide after due date" setting for
...
...
common/test/acceptance/tests/lms/test_lms_instructor_dashboard.py
View file @
bf28861e
...
@@ -95,7 +95,7 @@ class BulkEmailTest(BaseInstructorDashboardTest):
...
@@ -95,7 +95,7 @@ class BulkEmailTest(BaseInstructorDashboardTest):
self
.
send_email_page
.
a11y_audit
.
check_for_accessibility_errors
()
self
.
send_email_page
.
a11y_audit
.
check_for_accessibility_errors
()
@attr
(
shard
=
7
)
@attr
(
shard
=
10
)
class
AutoEnrollmentWithCSVTest
(
BaseInstructorDashboardTest
):
class
AutoEnrollmentWithCSVTest
(
BaseInstructorDashboardTest
):
"""
"""
End-to-end tests for Auto-Registration and enrollment functionality via CSV file.
End-to-end tests for Auto-Registration and enrollment functionality via CSV file.
...
@@ -213,7 +213,7 @@ class AutoEnrollmentWithCSVTest(BaseInstructorDashboardTest):
...
@@ -213,7 +213,7 @@ class AutoEnrollmentWithCSVTest(BaseInstructorDashboardTest):
self
.
auto_enroll_section
.
a11y_audit
.
check_for_accessibility_errors
()
self
.
auto_enroll_section
.
a11y_audit
.
check_for_accessibility_errors
()
@attr
(
shard
=
7
)
@attr
(
shard
=
10
)
class
ProctoredExamsTest
(
BaseInstructorDashboardTest
):
class
ProctoredExamsTest
(
BaseInstructorDashboardTest
):
"""
"""
End-to-end tests for Proctoring Sections of the Instructor Dashboard.
End-to-end tests for Proctoring Sections of the Instructor Dashboard.
...
@@ -403,7 +403,7 @@ class ProctoredExamsTest(BaseInstructorDashboardTest):
...
@@ -403,7 +403,7 @@ class ProctoredExamsTest(BaseInstructorDashboardTest):
self
.
assertFalse
(
exam_attempts_section
.
is_student_attempt_visible
)
self
.
assertFalse
(
exam_attempts_section
.
is_student_attempt_visible
)
@attr
(
shard
=
7
)
@attr
(
shard
=
10
)
@ddt.ddt
@ddt.ddt
class
EntranceExamGradeTest
(
BaseInstructorDashboardTest
):
class
EntranceExamGradeTest
(
BaseInstructorDashboardTest
):
"""
"""
...
@@ -551,7 +551,7 @@ class EntranceExamGradeTest(BaseInstructorDashboardTest):
...
@@ -551,7 +551,7 @@ class EntranceExamGradeTest(BaseInstructorDashboardTest):
self
.
entrance_exam_admin
.
wait_for_task_history_table
()
self
.
entrance_exam_admin
.
wait_for_task_history_table
()
@attr
(
shard
=
7
)
@attr
(
shard
=
10
)
class
DataDownloadsTest
(
BaseInstructorDashboardTest
):
class
DataDownloadsTest
(
BaseInstructorDashboardTest
):
"""
"""
Bok Choy tests for the "Data Downloads" tab.
Bok Choy tests for the "Data Downloads" tab.
...
@@ -669,7 +669,7 @@ class DataDownloadsTest(BaseInstructorDashboardTest):
...
@@ -669,7 +669,7 @@ class DataDownloadsTest(BaseInstructorDashboardTest):
self
.
data_download_section
.
a11y_audit
.
check_for_accessibility_errors
()
self
.
data_download_section
.
a11y_audit
.
check_for_accessibility_errors
()
@attr
(
shard
=
7
)
@attr
(
shard
=
10
)
@ddt.ddt
@ddt.ddt
class
CertificatesTest
(
BaseInstructorDashboardTest
):
class
CertificatesTest
(
BaseInstructorDashboardTest
):
"""
"""
...
@@ -995,7 +995,7 @@ class CertificatesTest(BaseInstructorDashboardTest):
...
@@ -995,7 +995,7 @@ class CertificatesTest(BaseInstructorDashboardTest):
self
.
certificates_section
.
a11y_audit
.
check_for_accessibility_errors
()
self
.
certificates_section
.
a11y_audit
.
check_for_accessibility_errors
()
@attr
(
shard
=
7
)
@attr
(
shard
=
10
)
class
CertificateInvalidationTest
(
BaseInstructorDashboardTest
):
class
CertificateInvalidationTest
(
BaseInstructorDashboardTest
):
"""
"""
Tests for Certificates functionality on instructor dashboard.
Tests for Certificates functionality on instructor dashboard.
...
...
common/test/acceptance/tests/lms/test_lms_problems.py
View file @
bf28861e
...
@@ -65,6 +65,7 @@ class ProblemsTest(UniqueCourseTest):
...
@@ -65,6 +65,7 @@ class ProblemsTest(UniqueCourseTest):
return
XBlockFixtureDesc
(
'sequential'
,
'Test Subsection'
)
return
XBlockFixtureDesc
(
'sequential'
,
'Test Subsection'
)
@attr
(
shard
=
9
)
class
ProblemClarificationTest
(
ProblemsTest
):
class
ProblemClarificationTest
(
ProblemsTest
):
"""
"""
Tests the <clarification> element that can be used in problem XML.
Tests the <clarification> element that can be used in problem XML.
...
@@ -107,6 +108,7 @@ class ProblemClarificationTest(ProblemsTest):
...
@@ -107,6 +108,7 @@ class ProblemClarificationTest(ProblemsTest):
self
.
assertNotIn
(
'strong'
,
tooltip_text
)
self
.
assertNotIn
(
'strong'
,
tooltip_text
)
@attr
(
shard
=
9
)
class
ProblemHintTest
(
ProblemsTest
,
EventsTestMixin
):
class
ProblemHintTest
(
ProblemsTest
,
EventsTestMixin
):
"""
"""
Base test class for problem hint tests.
Base test class for problem hint tests.
...
@@ -169,6 +171,7 @@ class ProblemHintTest(ProblemsTest, EventsTestMixin):
...
@@ -169,6 +171,7 @@ class ProblemHintTest(ProblemsTest, EventsTestMixin):
raise
NotImplementedError
()
raise
NotImplementedError
()
@attr
(
shard
=
9
)
class
ProblemNotificationTests
(
ProblemsTest
):
class
ProblemNotificationTests
(
ProblemsTest
):
"""
"""
Tests that the notifications are visible when expected.
Tests that the notifications are visible when expected.
...
@@ -225,6 +228,7 @@ class ProblemNotificationTests(ProblemsTest):
...
@@ -225,6 +228,7 @@ class ProblemNotificationTests(ProblemsTest):
self
.
assertFalse
(
problem_page
.
is_save_notification_visible
())
self
.
assertFalse
(
problem_page
.
is_save_notification_visible
())
@attr
(
shard
=
9
)
class
ProblemFeedbackNotificationTests
(
ProblemsTest
):
class
ProblemFeedbackNotificationTests
(
ProblemsTest
):
"""
"""
Tests that the feedback notifications are visible when expected.
Tests that the feedback notifications are visible when expected.
...
@@ -262,6 +266,7 @@ class ProblemFeedbackNotificationTests(ProblemsTest):
...
@@ -262,6 +266,7 @@ class ProblemFeedbackNotificationTests(ProblemsTest):
self
.
assertFalse
(
problem_page
.
is_feedback_message_notification_visible
())
self
.
assertFalse
(
problem_page
.
is_feedback_message_notification_visible
())
@attr
(
shard
=
9
)
class
ProblemSaveStatusUpdateTests
(
ProblemsTest
):
class
ProblemSaveStatusUpdateTests
(
ProblemsTest
):
"""
"""
Tests the problem status updates correctly with an answer change and save.
Tests the problem status updates correctly with an answer change and save.
...
@@ -313,6 +318,7 @@ class ProblemSaveStatusUpdateTests(ProblemsTest):
...
@@ -313,6 +318,7 @@ class ProblemSaveStatusUpdateTests(ProblemsTest):
self
.
assertTrue
(
problem_page
.
is_save_notification_visible
())
self
.
assertTrue
(
problem_page
.
is_save_notification_visible
())
@attr
(
shard
=
9
)
class
ProblemSubmitButtonMaxAttemptsTest
(
ProblemsTest
):
class
ProblemSubmitButtonMaxAttemptsTest
(
ProblemsTest
):
"""
"""
Tests that the Submit button disables after the number of max attempts is reached.
Tests that the Submit button disables after the number of max attempts is reached.
...
@@ -361,6 +367,7 @@ class ProblemSubmitButtonMaxAttemptsTest(ProblemsTest):
...
@@ -361,6 +367,7 @@ class ProblemSubmitButtonMaxAttemptsTest(ProblemsTest):
problem_page
.
wait_for_submit_disabled
()
problem_page
.
wait_for_submit_disabled
()
@attr
(
shard
=
9
)
class
ProblemSubmitButtonPastDueTest
(
ProblemsTest
):
class
ProblemSubmitButtonPastDueTest
(
ProblemsTest
):
"""
"""
Tests that the Submit button is disabled if it is past the due date.
Tests that the Submit button is disabled if it is past the due date.
...
@@ -405,6 +412,7 @@ class ProblemSubmitButtonPastDueTest(ProblemsTest):
...
@@ -405,6 +412,7 @@ class ProblemSubmitButtonPastDueTest(ProblemsTest):
problem_page
.
wait_for_submit_disabled
()
problem_page
.
wait_for_submit_disabled
()
@attr
(
shard
=
9
)
class
ProblemExtendedHintTest
(
ProblemHintTest
,
EventsTestMixin
):
class
ProblemExtendedHintTest
(
ProblemHintTest
,
EventsTestMixin
):
"""
"""
Test that extended hint features plumb through to the page html and tracking log.
Test that extended hint features plumb through to the page html and tracking log.
...
@@ -465,6 +473,7 @@ class ProblemExtendedHintTest(ProblemHintTest, EventsTestMixin):
...
@@ -465,6 +473,7 @@ class ProblemExtendedHintTest(ProblemHintTest, EventsTestMixin):
)
)
@attr
(
shard
=
9
)
class
ProblemHintWithHtmlTest
(
ProblemHintTest
,
EventsTestMixin
):
class
ProblemHintWithHtmlTest
(
ProblemHintTest
,
EventsTestMixin
):
"""
"""
Tests that hints containing html get rendered properly
Tests that hints containing html get rendered properly
...
@@ -525,6 +534,7 @@ class ProblemHintWithHtmlTest(ProblemHintTest, EventsTestMixin):
...
@@ -525,6 +534,7 @@ class ProblemHintWithHtmlTest(ProblemHintTest, EventsTestMixin):
)
)
@attr
(
shard
=
9
)
class
ProblemWithMathjax
(
ProblemsTest
):
class
ProblemWithMathjax
(
ProblemsTest
):
"""
"""
Tests the <MathJax> used in problem
Tests the <MathJax> used in problem
...
@@ -584,6 +594,7 @@ class ProblemWithMathjax(ProblemsTest):
...
@@ -584,6 +594,7 @@ class ProblemWithMathjax(ProblemsTest):
problem_page
.
verify_mathjax_rendered_in_hint
()
problem_page
.
verify_mathjax_rendered_in_hint
()
@attr
(
shard
=
9
)
class
ProblemPartialCredit
(
ProblemsTest
):
class
ProblemPartialCredit
(
ProblemsTest
):
"""
"""
Makes sure that the partial credit is appearing properly.
Makes sure that the partial credit is appearing properly.
...
@@ -618,6 +629,7 @@ class ProblemPartialCredit(ProblemsTest):
...
@@ -618,6 +629,7 @@ class ProblemPartialCredit(ProblemsTest):
self
.
assertTrue
(
problem_page
.
simpleprob_is_partially_correct
())
self
.
assertTrue
(
problem_page
.
simpleprob_is_partially_correct
())
@attr
(
shard
=
9
)
class
LogoutDuringAnswering
(
ProblemsTest
):
class
LogoutDuringAnswering
(
ProblemsTest
):
"""
"""
Tests for the scenario where a user is logged out (their session expires
Tests for the scenario where a user is logged out (their session expires
...
@@ -700,6 +712,7 @@ class LogoutDuringAnswering(ProblemsTest):
...
@@ -700,6 +712,7 @@ class LogoutDuringAnswering(ProblemsTest):
self
.
assertEqual
(
problem_page
.
problem_name
,
'TEST PROBLEM'
)
self
.
assertEqual
(
problem_page
.
problem_name
,
'TEST PROBLEM'
)
@attr
(
shard
=
9
)
class
ProblemQuestionDescriptionTest
(
ProblemsTest
):
class
ProblemQuestionDescriptionTest
(
ProblemsTest
):
"""TestCase Class to verify question and description rendering."""
"""TestCase Class to verify question and description rendering."""
descriptions
=
[
descriptions
=
[
...
...
common/test/acceptance/tests/lms/test_lms_user_preview.py
View file @
bf28861e
...
@@ -17,7 +17,7 @@ from xmodule.partitions.partitions import Group
...
@@ -17,7 +17,7 @@ from xmodule.partitions.partitions import Group
from
textwrap
import
dedent
from
textwrap
import
dedent
@attr
(
shard
=
3
)
@attr
(
shard
=
10
)
class
StaffViewTest
(
UniqueCourseTest
):
class
StaffViewTest
(
UniqueCourseTest
):
"""
"""
Tests that verify the staff view.
Tests that verify the staff view.
...
@@ -55,7 +55,7 @@ class StaffViewTest(UniqueCourseTest):
...
@@ -55,7 +55,7 @@ class StaffViewTest(UniqueCourseTest):
return
staff_page
return
staff_page
@attr
(
shard
=
3
)
@attr
(
shard
=
10
)
class
CourseWithoutContentGroupsTest
(
StaffViewTest
):
class
CourseWithoutContentGroupsTest
(
StaffViewTest
):
"""
"""
Setup for tests that have no content restricted to specific content groups.
Setup for tests that have no content restricted to specific content groups.
...
@@ -86,7 +86,7 @@ class CourseWithoutContentGroupsTest(StaffViewTest):
...
@@ -86,7 +86,7 @@ class CourseWithoutContentGroupsTest(StaffViewTest):
)
)
@attr
(
shard
=
3
)
@attr
(
shard
=
10
)
class
StaffViewToggleTest
(
CourseWithoutContentGroupsTest
):
class
StaffViewToggleTest
(
CourseWithoutContentGroupsTest
):
"""
"""
Tests for the staff view toggle button.
Tests for the staff view toggle button.
...
@@ -103,7 +103,7 @@ class StaffViewToggleTest(CourseWithoutContentGroupsTest):
...
@@ -103,7 +103,7 @@ class StaffViewToggleTest(CourseWithoutContentGroupsTest):
self
.
assertFalse
(
course_page
.
has_tab
(
'Instructor'
))
self
.
assertFalse
(
course_page
.
has_tab
(
'Instructor'
))
@attr
(
shard
=
3
)
@attr
(
shard
=
10
)
class
StaffDebugTest
(
CourseWithoutContentGroupsTest
):
class
StaffDebugTest
(
CourseWithoutContentGroupsTest
):
"""
"""
Tests that verify the staff debug info.
Tests that verify the staff debug info.
...
@@ -303,7 +303,7 @@ class CourseWithContentGroupsTest(StaffViewTest):
...
@@ -303,7 +303,7 @@ class CourseWithContentGroupsTest(StaffViewTest):
)
)
)
)
@attr
(
shard
=
3
)
@attr
(
shard
=
10
)
def
test_staff_sees_all_problems
(
self
):
def
test_staff_sees_all_problems
(
self
):
"""
"""
Scenario: Staff see all problems
Scenario: Staff see all problems
...
...
common/test/acceptance/tests/lms/test_progress_page.py
View file @
bf28861e
...
@@ -124,6 +124,7 @@ class ProgressPageBaseTest(UniqueCourseTest):
...
@@ -124,6 +124,7 @@ class ProgressPageBaseTest(UniqueCourseTest):
self
.
logout_page
.
visit
()
self
.
logout_page
.
visit
()
@attr
(
shard
=
9
)
@ddt.ddt
@ddt.ddt
@js_defined
(
'window.jQuery'
)
@js_defined
(
'window.jQuery'
)
class
PersistentGradesTest
(
ProgressPageBaseTest
):
class
PersistentGradesTest
(
ProgressPageBaseTest
):
...
@@ -271,6 +272,7 @@ class PersistentGradesTest(ProgressPageBaseTest):
...
@@ -271,6 +272,7 @@ class PersistentGradesTest(ProgressPageBaseTest):
self
.
assertEqual
(
self
.
_get_section_score
(),
(
0
,
2
))
self
.
assertEqual
(
self
.
_get_section_score
(),
(
0
,
2
))
@attr
(
shard
=
9
)
class
SubsectionGradingPolicyTest
(
ProgressPageBaseTest
):
class
SubsectionGradingPolicyTest
(
ProgressPageBaseTest
):
"""
"""
Tests changing a subsection's 'graded' field
Tests changing a subsection's 'graded' field
...
...
common/test/acceptance/tests/studio/test_studio_components.py
View file @
bf28861e
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
Acceptance tests for adding components in Studio.
Acceptance tests for adding components in Studio.
"""
"""
import
ddt
import
ddt
from
nose.plugins.attrib
import
attr
from
common.test.acceptance.tests.studio.base_studio_test
import
ContainerBase
from
common.test.acceptance.tests.studio.base_studio_test
import
ContainerBase
from
common.test.acceptance.fixtures.course
import
XBlockFixtureDesc
from
common.test.acceptance.fixtures.course
import
XBlockFixtureDesc
...
@@ -10,6 +11,7 @@ from common.test.acceptance.pages.studio.utils import add_component, add_compone
...
@@ -10,6 +11,7 @@ from common.test.acceptance.pages.studio.utils import add_component, add_compone
from
common.test.acceptance.pages.studio.settings_advanced
import
AdvancedSettingsPage
from
common.test.acceptance.pages.studio.settings_advanced
import
AdvancedSettingsPage
@attr
(
shard
=
9
)
@ddt.ddt
@ddt.ddt
class
AdvancedProblemComponentTest
(
ContainerBase
):
class
AdvancedProblemComponentTest
(
ContainerBase
):
"""
"""
...
@@ -68,6 +70,7 @@ class AdvancedProblemComponentTest(ContainerBase):
...
@@ -68,6 +70,7 @@ class AdvancedProblemComponentTest(ContainerBase):
self
.
assertEqual
(
problem
.
name
,
component
)
self
.
assertEqual
(
problem
.
name
,
component
)
@attr
(
shard
=
9
)
class
ComponentTest
(
ContainerBase
):
class
ComponentTest
(
ContainerBase
):
"""
"""
Test class to add different components.
Test class to add different components.
...
...
common/test/acceptance/tests/studio/test_studio_help.py
View file @
bf28861e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
Test the Studio help links.
Test the Studio help links.
"""
"""
from
flaky
import
flaky
from
nose.plugins.attrib
import
attr
from
unittest
import
skip
from
unittest
import
skip
from
common.test.acceptance.fixtures.course
import
XBlockFixtureDesc
from
common.test.acceptance.fixtures.course
import
XBlockFixtureDesc
...
@@ -36,6 +36,7 @@ from common.test.acceptance.pages.studio.import_export import ExportLibraryPage,
...
@@ -36,6 +36,7 @@ from common.test.acceptance.pages.studio.import_export import ExportLibraryPage,
from
common.test.acceptance.pages.studio.auto_auth
import
AutoAuthPage
from
common.test.acceptance.pages.studio.auto_auth
import
AutoAuthPage
@attr
(
shard
=
10
)
class
StudioHelpTest
(
StudioCourseTest
):
class
StudioHelpTest
(
StudioCourseTest
):
"""Tests for Studio help."""
"""Tests for Studio help."""
...
@@ -75,6 +76,7 @@ class StudioHelpTest(StudioCourseTest):
...
@@ -75,6 +76,7 @@ class StudioHelpTest(StudioCourseTest):
)
)
@attr
(
shard
=
10
)
class
SignInHelpTest
(
AcceptanceTest
):
class
SignInHelpTest
(
AcceptanceTest
):
"""
"""
Tests help links on 'Sign In' page
Tests help links on 'Sign In' page
...
@@ -107,6 +109,7 @@ class SignInHelpTest(AcceptanceTest):
...
@@ -107,6 +109,7 @@ class SignInHelpTest(AcceptanceTest):
)
)
@attr
(
shard
=
10
)
class
SignUpHelpTest
(
AcceptanceTest
):
class
SignUpHelpTest
(
AcceptanceTest
):
"""
"""
Tests help links on 'Sign Up' page.
Tests help links on 'Sign Up' page.
...
@@ -139,6 +142,7 @@ class SignUpHelpTest(AcceptanceTest):
...
@@ -139,6 +142,7 @@ class SignUpHelpTest(AcceptanceTest):
)
)
@attr
(
shard
=
10
)
class
HomeHelpTest
(
StudioCourseTest
):
class
HomeHelpTest
(
StudioCourseTest
):
"""
"""
Tests help links on 'Home'(Courses tab) page.
Tests help links on 'Home'(Courses tab) page.
...
@@ -191,6 +195,7 @@ class HomeHelpTest(StudioCourseTest):
...
@@ -191,6 +195,7 @@ class HomeHelpTest(StudioCourseTest):
)
)
@attr
(
shard
=
10
)
class
NewCourseHelpTest
(
AcceptanceTest
):
class
NewCourseHelpTest
(
AcceptanceTest
):
"""
"""
Test help links while creating a new course.
Test help links while creating a new course.
...
@@ -247,6 +252,7 @@ class NewCourseHelpTest(AcceptanceTest):
...
@@ -247,6 +252,7 @@ class NewCourseHelpTest(AcceptanceTest):
)
)
@attr
(
shard
=
10
)
class
NewLibraryHelpTest
(
AcceptanceTest
):
class
NewLibraryHelpTest
(
AcceptanceTest
):
"""
"""
Test help links while creating a new library
Test help links while creating a new library
...
@@ -303,6 +309,7 @@ class NewLibraryHelpTest(AcceptanceTest):
...
@@ -303,6 +309,7 @@ class NewLibraryHelpTest(AcceptanceTest):
)
)
@attr
(
shard
=
10
)
class
LibraryTabHelpTest
(
AcceptanceTest
):
class
LibraryTabHelpTest
(
AcceptanceTest
):
"""
"""
Test help links on the library tab present at dashboard.
Test help links on the library tab present at dashboard.
...
@@ -337,6 +344,7 @@ class LibraryTabHelpTest(AcceptanceTest):
...
@@ -337,6 +344,7 @@ class LibraryTabHelpTest(AcceptanceTest):
)
)
@attr
(
shard
=
10
)
class
LibraryHelpTest
(
StudioLibraryTest
):
class
LibraryHelpTest
(
StudioLibraryTest
):
"""
"""
Test help links on a Library page.
Test help links on a Library page.
...
@@ -415,6 +423,7 @@ class LibraryHelpTest(StudioLibraryTest):
...
@@ -415,6 +423,7 @@ class LibraryHelpTest(StudioLibraryTest):
)
)
@attr
(
shard
=
10
)
class
LibraryImportHelpTest
(
StudioLibraryTest
):
class
LibraryImportHelpTest
(
StudioLibraryTest
):
"""
"""
Test help links on a Library import and export pages.
Test help links on a Library import and export pages.
...
@@ -466,6 +475,7 @@ class LibraryImportHelpTest(StudioLibraryTest):
...
@@ -466,6 +475,7 @@ class LibraryImportHelpTest(StudioLibraryTest):
)
)
@attr
(
shard
=
10
)
class
LibraryExportHelpTest
(
StudioLibraryTest
):
class
LibraryExportHelpTest
(
StudioLibraryTest
):
"""
"""
Test help links on a Library export pages.
Test help links on a Library export pages.
...
@@ -517,6 +527,7 @@ class LibraryExportHelpTest(StudioLibraryTest):
...
@@ -517,6 +527,7 @@ class LibraryExportHelpTest(StudioLibraryTest):
)
)
@attr
(
shard
=
10
)
class
NewProgramHelpTest
(
ProgramsConfigMixin
,
AcceptanceTest
):
class
NewProgramHelpTest
(
ProgramsConfigMixin
,
AcceptanceTest
):
"""
"""
Test help links on a 'New Program' page
Test help links on a 'New Program' page
...
@@ -550,6 +561,7 @@ class NewProgramHelpTest(ProgramsConfigMixin, AcceptanceTest):
...
@@ -550,6 +561,7 @@ class NewProgramHelpTest(ProgramsConfigMixin, AcceptanceTest):
)
)
@attr
(
shard
=
10
)
class
CourseOutlineHelpTest
(
StudioCourseTest
):
class
CourseOutlineHelpTest
(
StudioCourseTest
):
"""
"""
Tests help links on course outline page.
Tests help links on course outline page.
...
@@ -606,6 +618,7 @@ class CourseOutlineHelpTest(StudioCourseTest):
...
@@ -606,6 +618,7 @@ class CourseOutlineHelpTest(StudioCourseTest):
)
)
@attr
(
shard
=
10
)
class
CourseUpdateHelpTest
(
StudioCourseTest
):
class
CourseUpdateHelpTest
(
StudioCourseTest
):
"""
"""
Test help links on Course Update page
Test help links on Course Update page
...
@@ -640,6 +653,7 @@ class CourseUpdateHelpTest(StudioCourseTest):
...
@@ -640,6 +653,7 @@ class CourseUpdateHelpTest(StudioCourseTest):
)
)
@attr
(
shard
=
10
)
class
AssetIndexHelpTest
(
StudioCourseTest
):
class
AssetIndexHelpTest
(
StudioCourseTest
):
"""
"""
Test help links on Course 'Files & Uploads' page
Test help links on Course 'Files & Uploads' page
...
@@ -694,6 +708,7 @@ class AssetIndexHelpTest(StudioCourseTest):
...
@@ -694,6 +708,7 @@ class AssetIndexHelpTest(StudioCourseTest):
)
)
@attr
(
shard
=
10
)
class
CoursePagesHelpTest
(
StudioCourseTest
):
class
CoursePagesHelpTest
(
StudioCourseTest
):
"""
"""
Test help links on Course 'Pages' page
Test help links on Course 'Pages' page
...
@@ -728,6 +743,7 @@ class CoursePagesHelpTest(StudioCourseTest):
...
@@ -728,6 +743,7 @@ class CoursePagesHelpTest(StudioCourseTest):
)
)
@attr
(
shard
=
10
)
class
UploadTextbookHelpTest
(
StudioCourseTest
):
class
UploadTextbookHelpTest
(
StudioCourseTest
):
"""
"""
Test help links on Course 'Textbooks' page
Test help links on Course 'Textbooks' page
...
@@ -782,6 +798,7 @@ class UploadTextbookHelpTest(StudioCourseTest):
...
@@ -782,6 +798,7 @@ class UploadTextbookHelpTest(StudioCourseTest):
)
)
@attr
(
shard
=
10
)
class
StudioUnitHelpTest
(
ContainerBase
):
class
StudioUnitHelpTest
(
ContainerBase
):
"""
"""
Tests help links on Unit page.
Tests help links on Unit page.
...
@@ -831,6 +848,7 @@ class StudioUnitHelpTest(ContainerBase):
...
@@ -831,6 +848,7 @@ class StudioUnitHelpTest(ContainerBase):
)
)
@attr
(
shard
=
10
)
class
SettingsHelpTest
(
StudioCourseTest
):
class
SettingsHelpTest
(
StudioCourseTest
):
"""
"""
Tests help links on Schedule and Details Settings page
Tests help links on Schedule and Details Settings page
...
@@ -867,6 +885,7 @@ class SettingsHelpTest(StudioCourseTest):
...
@@ -867,6 +885,7 @@ class SettingsHelpTest(StudioCourseTest):
)
)
@attr
(
shard
=
10
)
class
GradingPageHelpTest
(
StudioCourseTest
):
class
GradingPageHelpTest
(
StudioCourseTest
):
"""
"""
Tests help links on Grading page
Tests help links on Grading page
...
@@ -903,6 +922,7 @@ class GradingPageHelpTest(StudioCourseTest):
...
@@ -903,6 +922,7 @@ class GradingPageHelpTest(StudioCourseTest):
)
)
@attr
(
shard
=
10
)
class
CourseTeamSettingsHelpTest
(
StudioCourseTest
):
class
CourseTeamSettingsHelpTest
(
StudioCourseTest
):
"""
"""
Tests help links on Course Team settings page
Tests help links on Course Team settings page
...
@@ -939,6 +959,7 @@ class CourseTeamSettingsHelpTest(StudioCourseTest):
...
@@ -939,6 +959,7 @@ class CourseTeamSettingsHelpTest(StudioCourseTest):
)
)
@attr
(
shard
=
10
)
class
CourseGroupConfigurationHelpTest
(
StudioCourseTest
):
class
CourseGroupConfigurationHelpTest
(
StudioCourseTest
):
"""
"""
Tests help links on course Group Configurations settings page
Tests help links on course Group Configurations settings page
...
@@ -997,6 +1018,7 @@ class CourseGroupConfigurationHelpTest(StudioCourseTest):
...
@@ -997,6 +1018,7 @@ class CourseGroupConfigurationHelpTest(StudioCourseTest):
)
)
@attr
(
shard
=
10
)
class
AdvancedSettingHelpTest
(
StudioCourseTest
):
class
AdvancedSettingHelpTest
(
StudioCourseTest
):
"""
"""
Tests help links on course Advanced Settings page.
Tests help links on course Advanced Settings page.
...
@@ -1033,6 +1055,7 @@ class AdvancedSettingHelpTest(StudioCourseTest):
...
@@ -1033,6 +1055,7 @@ class AdvancedSettingHelpTest(StudioCourseTest):
)
)
@attr
(
shard
=
10
)
class
CertificatePageHelpTest
(
StudioCourseTest
):
class
CertificatePageHelpTest
(
StudioCourseTest
):
"""
"""
Tests help links on course Certificate settings page.
Tests help links on course Certificate settings page.
...
@@ -1089,6 +1112,7 @@ class CertificatePageHelpTest(StudioCourseTest):
...
@@ -1089,6 +1112,7 @@ class CertificatePageHelpTest(StudioCourseTest):
)
)
@attr
(
shard
=
10
)
class
GroupExperimentConfigurationHelpTest
(
ContainerBase
):
class
GroupExperimentConfigurationHelpTest
(
ContainerBase
):
"""
"""
Tests help links on course Group Configurations settings page
Tests help links on course Group Configurations settings page
...
@@ -1139,6 +1163,7 @@ class GroupExperimentConfigurationHelpTest(ContainerBase):
...
@@ -1139,6 +1163,7 @@ class GroupExperimentConfigurationHelpTest(ContainerBase):
)
)
@attr
(
shard
=
10
)
class
ToolsImportHelpTest
(
StudioCourseTest
):
class
ToolsImportHelpTest
(
StudioCourseTest
):
"""
"""
Tests help links on tools import pages.
Tests help links on tools import pages.
...
@@ -1195,6 +1220,7 @@ class ToolsImportHelpTest(StudioCourseTest):
...
@@ -1195,6 +1220,7 @@ class ToolsImportHelpTest(StudioCourseTest):
)
)
@attr
(
shard
=
10
)
class
ToolsExportHelpTest
(
StudioCourseTest
):
class
ToolsExportHelpTest
(
StudioCourseTest
):
"""
"""
Tests help links on tools export pages.
Tests help links on tools export pages.
...
@@ -1251,6 +1277,7 @@ class ToolsExportHelpTest(StudioCourseTest):
...
@@ -1251,6 +1277,7 @@ class ToolsExportHelpTest(StudioCourseTest):
)
)
@attr
(
shard
=
10
)
class
StudioWelcomeHelpTest
(
AcceptanceTest
):
class
StudioWelcomeHelpTest
(
AcceptanceTest
):
"""
"""
Tests help link on 'Welcome' page ( User not logged in)
Tests help link on 'Welcome' page ( User not logged in)
...
...
common/test/acceptance/tests/studio/test_studio_settings.py
View file @
bf28861e
...
@@ -565,6 +565,7 @@ class StudioSubsectionSettingsA11yTest(StudioCourseTest):
...
@@ -565,6 +565,7 @@ class StudioSubsectionSettingsA11yTest(StudioCourseTest):
self
.
course_outline
.
a11y_audit
.
check_for_accessibility_errors
()
self
.
course_outline
.
a11y_audit
.
check_for_accessibility_errors
()
@attr
(
shard
=
1
)
class
StudioSettingsImageUploadTest
(
StudioCourseTest
):
class
StudioSettingsImageUploadTest
(
StudioCourseTest
):
"""
"""
Class to test course settings image uploads.
Class to test course settings image uploads.
...
@@ -602,6 +603,7 @@ class StudioSettingsImageUploadTest(StudioCourseTest):
...
@@ -602,6 +603,7 @@ class StudioSettingsImageUploadTest(StudioCourseTest):
self
.
assertIn
(
file_to_upload
,
self
.
settings_page
.
get_uploaded_image_path
(
'#video-thumbnail-image'
))
self
.
assertIn
(
file_to_upload
,
self
.
settings_page
.
get_uploaded_image_path
(
'#video-thumbnail-image'
))
@attr
(
shard
=
1
)
class
CourseSettingsTest
(
StudioCourseTest
):
class
CourseSettingsTest
(
StudioCourseTest
):
"""
"""
Class to test course settings.
Class to test course settings.
...
...
scripts/generic-ci-tests.sh
View file @
bf28861e
...
@@ -176,11 +176,11 @@ case "$TEST_SUITE" in
...
@@ -176,11 +176,11 @@ case "$TEST_SUITE" in
paver test_bokchoy
$PAVER_ARGS
paver test_bokchoy
$PAVER_ARGS
;;
;;
[
1-
8]
)
[
1-
9]|10
)
paver test_bokchoy
--attr
=
"shard=
$SHARD
"
$PAVER_ARGS
paver test_bokchoy
--attr
=
"shard=
$SHARD
"
$PAVER_ARGS
;;
;;
9
|
"noshard"
)
11
|
"noshard"
)
paver test_bokchoy
--attr
=
'!shard,a11y=False'
$PAVER_ARGS
paver test_bokchoy
--attr
=
'!shard,a11y=False'
$PAVER_ARGS
;;
;;
...
...
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