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
41b519fd
Commit
41b519fd
authored
Oct 17, 2016
by
Cliff Dyer
Committed by
GitHub
Oct 17, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13767 from edx/cdyer/flakies-2016-10-14
Added flaky tests.
parents
84b27e09
87e23088
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
2 deletions
+12
-2
common/test/acceptance/tests/lms/test_conditional.py
+4
-0
common/test/acceptance/tests/lms/test_lms_courseware_search.py
+2
-0
common/test/acceptance/tests/lms/test_problem_types.py
+4
-2
common/test/acceptance/tests/studio/test_studio_course_info.py
+2
-0
No files found.
common/test/acceptance/tests/lms/test_conditional.py
View file @
41b519fd
"""
Bok choy acceptance tests for conditionals in the LMS
"""
from
flaky
import
flaky
from
capa.tests.response_xml_factory
import
StringResponseXMLFactory
from
common.test.acceptance.tests.helpers
import
UniqueCourseTest
from
common.test.acceptance.fixtures.course
import
CourseFixture
,
XBlockFixtureDesc
...
...
@@ -112,6 +115,7 @@ class ConditionalTest(UniqueCourseTest):
conditional_page
=
ConditionalPage
(
self
.
browser
)
self
.
assertTrue
(
conditional_page
.
is_content_visible
())
@flaky
# TNL-5770
def
test_conditional_handles_polls
(
self
):
self
.
install_course_fixture
(
block_type
=
'poll'
)
self
.
courseware_page
.
visit
()
...
...
common/test/acceptance/tests/lms/test_lms_courseware_search.py
View file @
41b519fd
...
...
@@ -3,6 +3,7 @@ Test courseware search
"""
import
json
from
flaky
import
flaky
from
nose.plugins.attrib
import
attr
from
common.test.acceptance.tests.helpers
import
UniqueCourseTest
,
remove_file
...
...
@@ -176,6 +177,7 @@ class CoursewareSearchTest(UniqueCourseTest):
# Do the search again, this time we expect results.
self
.
assertTrue
(
self
.
_search_for_content
(
self
.
SEARCH_STRING
))
@flaky
# TNL-5771
def
test_reindex
(
self
):
"""
Make sure new content gets reindexed on button press.
...
...
common/test/acceptance/tests/lms/test_problem_types.py
View file @
41b519fd
...
...
@@ -6,8 +6,9 @@ See also lettuce tests in lms/djangoapps/courseware/features/problems.feature
import
random
import
textwrap
from
nose
import
SkipTest
from
abc
import
ABCMeta
,
abstractmethod
from
flaky
import
flaky
from
nose
import
SkipTest
from
nose.plugins.attrib
import
attr
from
selenium.webdriver
import
ActionChains
...
...
@@ -29,8 +30,8 @@ from capa.tests.response_xml_factory import (
from
common.test.acceptance.fixtures.course
import
XBlockFixtureDesc
from
common.test.acceptance.pages.lms.problem
import
ProblemPage
from
common.test.acceptance.tests.helpers
import
select_option_by_text
from
common.test.acceptance.tests.lms.test_lms_problems
import
ProblemsTest
from
common.test.acceptance.tests.helpers
import
EventsTestMixin
from
common.test.acceptance.tests.lms.test_lms_problems
import
ProblemsTest
class
ProblemTypeTestBaseMeta
(
ABCMeta
):
...
...
@@ -291,6 +292,7 @@ class ProblemTypeTestMixin(object):
self
.
answer_problem
(
correctness
=
'incorrect'
)
self
.
assertFalse
(
self
.
problem_page
.
is_save_notification_visible
())
@flaky
# TNL-5774
@attr
(
shard
=
7
)
def
test_reset_clears_answer_and_focus
(
self
):
"""
...
...
common/test/acceptance/tests/studio/test_studio_course_info.py
View file @
41b519fd
...
...
@@ -109,6 +109,7 @@ class UsersCanAddUpdatesTest(StudioCourseTest):
self
.
course_updates_page
.
click_new_update_save_button
()
self
.
assertTrue
(
self
.
course_updates_page
.
is_first_update_date
(
'June 1, 2013'
))
@flaky
# TNL-5775
def
test_outside_tag_preserved
(
self
):
"""
Scenario: Text outside of tags is preserved
...
...
@@ -123,6 +124,7 @@ class UsersCanAddUpdatesTest(StudioCourseTest):
self
.
course_updates_page
.
visit
()
self
.
assertTrue
(
self
.
course_updates_page
.
is_first_update_message
(
'before <strong>middle</strong> after'
))
@flaky
# TNL-5773
def
test_asset_change_in_updates
(
self
):
"""
Scenario: Static links are rewritten when previewing a course update
...
...
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