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
a6fe9fca
Commit
a6fe9fca
authored
Aug 17, 2017
by
Stuart Young
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove or unskip skipped flaky tests
parent
1a4d0d6b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1 additions
and
107 deletions
+1
-107
common/test/acceptance/tests/lms/test_lms.py
+0
-2
common/test/acceptance/tests/studio/test_studio_asset.py
+0
-3
common/test/acceptance/tests/studio/test_studio_container.py
+0
-49
common/test/acceptance/tests/studio/test_studio_settings_details.py
+0
-3
common/test/acceptance/tests/studio/test_studio_split_test.py
+0
-19
common/test/acceptance/tests/video/test_video_module.py
+1
-31
No files found.
common/test/acceptance/tests/lms/test_lms.py
View file @
a6fe9fca
...
@@ -5,7 +5,6 @@ End-to-end tests for the LMS.
...
@@ -5,7 +5,6 @@ End-to-end tests for the LMS.
import
urllib
import
urllib
from
datetime
import
datetime
,
timedelta
from
datetime
import
datetime
,
timedelta
from
textwrap
import
dedent
from
textwrap
import
dedent
from
unittest
import
skip
import
pytz
import
pytz
from
bok_choy.promise
import
EmptyPromise
from
bok_choy.promise
import
EmptyPromise
...
@@ -436,7 +435,6 @@ class PayAndVerifyTest(EventsTestMixin, UniqueCourseTest):
...
@@ -436,7 +435,6 @@ class PayAndVerifyTest(EventsTestMixin, UniqueCourseTest):
# Add a verified mode to the course
# Add a verified mode to the course
ModeCreationPage
(
self
.
browser
,
self
.
course_id
,
mode_slug
=
u'verified'
,
mode_display_name
=
u'Verified Certificate'
,
min_price
=
10
,
suggested_prices
=
'10,20'
)
.
visit
()
ModeCreationPage
(
self
.
browser
,
self
.
course_id
,
mode_slug
=
u'verified'
,
mode_display_name
=
u'Verified Certificate'
,
min_price
=
10
,
suggested_prices
=
'10,20'
)
.
visit
()
@skip
(
"Flaky 02/02/2015"
)
def
test_immediate_verification_enrollment
(
self
):
def
test_immediate_verification_enrollment
(
self
):
# Create a user and log them in
# Create a user and log them in
student_id
=
AutoAuthPage
(
self
.
browser
)
.
visit
()
.
get_user_id
()
student_id
=
AutoAuthPage
(
self
.
browser
)
.
visit
()
.
get_user_id
()
...
...
common/test/acceptance/tests/studio/test_studio_asset.py
View file @
a6fe9fca
...
@@ -2,15 +2,12 @@
...
@@ -2,15 +2,12 @@
Acceptance tests for Studio related to the asset index page.
Acceptance tests for Studio related to the asset index page.
"""
"""
from
unittest
import
skip
from
common.test.acceptance.fixtures.base
import
StudioApiLoginError
from
common.test.acceptance.fixtures.base
import
StudioApiLoginError
from
common.test.acceptance.pages.studio.asset_index
import
AssetIndexPage
from
common.test.acceptance.pages.studio.asset_index
import
AssetIndexPage
from
common.test.acceptance.tests.helpers
import
skip_if_browser
from
common.test.acceptance.tests.helpers
import
skip_if_browser
from
common.test.acceptance.tests.studio.base_studio_test
import
StudioCourseTest
from
common.test.acceptance.tests.studio.base_studio_test
import
StudioCourseTest
@skip
(
'FEDX-88'
)
class
AssetIndexTest
(
StudioCourseTest
):
class
AssetIndexTest
(
StudioCourseTest
):
"""
"""
...
...
common/test/acceptance/tests/studio/test_studio_container.py
View file @
a6fe9fca
...
@@ -4,7 +4,6 @@ The container page is used both for displaying units, and
...
@@ -4,7 +4,6 @@ The container page is used both for displaying units, and
for displaying containers within units.
for displaying containers within units.
"""
"""
import
datetime
import
datetime
from
unittest
import
skip
import
ddt
import
ddt
from
nose.plugins.attrib
import
attr
from
nose.plugins.attrib
import
attr
...
@@ -73,7 +72,6 @@ class NestedVerticalTest(ContainerBase):
...
@@ -73,7 +72,6 @@ class NestedVerticalTest(ContainerBase):
)
)
@skip
(
"Flaky: 01/16/2015"
)
@attr
(
shard
=
1
)
@attr
(
shard
=
1
)
class
DragAndDropTest
(
NestedVerticalTest
):
class
DragAndDropTest
(
NestedVerticalTest
):
"""
"""
...
@@ -106,53 +104,6 @@ class DragAndDropTest(NestedVerticalTest):
...
@@ -106,53 +104,6 @@ class DragAndDropTest(NestedVerticalTest):
{
self
.
group_empty
:
[]}]
{
self
.
group_empty
:
[]}]
self
.
drag_and_verify
(
self
.
group_a_item_1_handle
,
self
.
group_a_handle
,
expected_ordering
)
self
.
drag_and_verify
(
self
.
group_a_item_1_handle
,
self
.
group_a_handle
,
expected_ordering
)
def
test_drag_into_different_group
(
self
):
"""
Drag Group B Item 1 into Group A (first element).
"""
expected_ordering
=
[{
self
.
container_title
:
[
self
.
group_a
,
self
.
group_empty
,
self
.
group_b
]},
{
self
.
group_a
:
[
self
.
group_b_item_1
,
self
.
group_a_item_1
,
self
.
group_a_item_2
]},
{
self
.
group_b
:
[
self
.
group_b_item_2
]},
{
self
.
group_empty
:
[]}]
self
.
drag_and_verify
(
self
.
group_b_item_1_handle
,
self
.
group_a_item_1_handle
,
expected_ordering
)
def
test_drag_group_into_group
(
self
):
"""
Drag Group B into Group A (first element).
"""
expected_ordering
=
[{
self
.
container_title
:
[
self
.
group_a
,
self
.
group_empty
]},
{
self
.
group_a
:
[
self
.
group_b
,
self
.
group_a_item_1
,
self
.
group_a_item_2
]},
{
self
.
group_b
:
[
self
.
group_b_item_1
,
self
.
group_b_item_2
]},
{
self
.
group_empty
:
[]}]
self
.
drag_and_verify
(
self
.
group_b_handle
,
self
.
group_a_item_1_handle
,
expected_ordering
)
def
test_drag_after_addition
(
self
):
"""
Add some components and then verify that drag and drop still works.
"""
group_a_menu
=
0
def
add_new_components_and_rearrange
(
container
):
# Add a video component to Group 1
add_discussion
(
container
,
group_a_menu
)
# Duplicate the first item in Group A
container
.
duplicate
(
self
.
group_a_item_1_action_index
)
first_handle
=
self
.
group_a_item_1_handle
# Drag newly added video component to top.
drag
(
container
,
first_handle
+
3
,
first_handle
,
40
)
# Drag duplicated component to top.
drag
(
container
,
first_handle
+
2
,
first_handle
,
40
)
duplicate_label
=
self
.
duplicate_label
.
format
(
self
.
group_a_item_1
)
expected_ordering
=
[{
self
.
container_title
:
[
self
.
group_a
,
self
.
group_empty
,
self
.
group_b
]},
{
self
.
group_a
:
[
duplicate_label
,
self
.
discussion_label
,
self
.
group_a_item_1
,
self
.
group_a_item_2
]},
{
self
.
group_b
:
[
self
.
group_b_item_1
,
self
.
group_b_item_2
]},
{
self
.
group_empty
:
[]}]
self
.
do_action_and_verify
(
add_new_components_and_rearrange
,
expected_ordering
)
@attr
(
shard
=
1
)
@attr
(
shard
=
1
)
class
AddComponentTest
(
NestedVerticalTest
):
class
AddComponentTest
(
NestedVerticalTest
):
...
...
common/test/acceptance/tests/studio/test_studio_settings_details.py
View file @
a6fe9fca
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
Acceptance tests for Studio's Settings Details pages
Acceptance tests for Studio's Settings Details pages
"""
"""
from
datetime
import
datetime
,
timedelta
from
datetime
import
datetime
,
timedelta
from
unittest
import
skip
from
nose.plugins.attrib
import
attr
from
nose.plugins.attrib
import
attr
...
@@ -48,7 +47,6 @@ class SettingsMilestonesTest(StudioSettingsDetailsTest):
...
@@ -48,7 +47,6 @@ class SettingsMilestonesTest(StudioSettingsDetailsTest):
self
.
assertTrue
(
self
.
settings_detail
.
pre_requisite_course_options
)
self
.
assertTrue
(
self
.
settings_detail
.
pre_requisite_course_options
)
@skip
(
"Too flaky for the flaky decorator SOL-1811"
)
# SOL-1811
def
test_prerequisite_course_save_successfully
(
self
):
def
test_prerequisite_course_save_successfully
(
self
):
"""
"""
Scenario: Selecting course from Pre-Requisite course drop down save the selected course as pre-requisite
Scenario: Selecting course from Pre-Requisite course drop down save the selected course as pre-requisite
...
@@ -140,7 +138,6 @@ class SettingsMilestonesTest(StudioSettingsDetailsTest):
...
@@ -140,7 +138,6 @@ class SettingsMilestonesTest(StudioSettingsDetailsTest):
"""
"""
self
.
assertTrue
(
self
.
settings_detail
.
entrance_exam_field
)
self
.
assertTrue
(
self
.
settings_detail
.
entrance_exam_field
)
@skip
(
'Passes in devstack, passes individually in Jenkins, fails in suite in Jenkins.'
)
def
test_enable_entrance_exam_for_course
(
self
):
def
test_enable_entrance_exam_for_course
(
self
):
"""
"""
Test that entrance exam should be created after checking the 'enable entrance exam' checkbox.
Test that entrance exam should be created after checking the 'enable entrance exam' checkbox.
...
...
common/test/acceptance/tests/studio/test_studio_split_test.py
View file @
a6fe9fca
...
@@ -3,7 +3,6 @@ Acceptance tests for Studio related to the split_test module.
...
@@ -3,7 +3,6 @@ Acceptance tests for Studio related to the split_test module.
"""
"""
import
math
import
math
from
unittest
import
skip
from
bok_choy.promise
import
Promise
from
bok_choy.promise
import
Promise
from
nose.plugins.attrib
import
attr
from
nose.plugins.attrib
import
attr
...
@@ -167,24 +166,6 @@ class SplitTest(ContainerBase, SplitTestMixin):
...
@@ -167,24 +166,6 @@ class SplitTest(ContainerBase, SplitTestMixin):
container
=
self
.
go_to_nested_container_page
()
container
=
self
.
go_to_nested_container_page
()
self
.
verify_groups
(
container
,
[
'Group 0'
,
'Group 1'
,
'Group 2'
],
[
'Group ID 0'
,
'Group ID 1'
])
self
.
verify_groups
(
container
,
[
'Group 0'
,
'Group 1'
,
'Group 2'
],
[
'Group ID 0'
,
'Group ID 1'
])
@skip
(
"This fails periodically where it fails to trigger the add missing groups action.Dis"
)
def
test_missing_group
(
self
):
"""
The case of a split test with invalid configuration (missing group).
"""
container
=
self
.
create_poorly_configured_split_instance
()
# Wait for the xblock to be fully initialized so that the add button is rendered
wait_for_xblock_initialization
(
self
,
'.xblock[data-block-type="split_test"]'
)
# Click the add button and verify that the groups were added on the page
container
.
add_missing_groups
()
self
.
verify_groups
(
container
,
[
'alpha'
,
'gamma'
],
[
'beta'
])
# Reload the page to make sure the groups were persisted.
container
=
self
.
go_to_nested_container_page
()
self
.
verify_groups
(
container
,
[
'alpha'
,
'gamma'
],
[
'beta'
])
def
test_delete_inactive_group
(
self
):
def
test_delete_inactive_group
(
self
):
"""
"""
Test deleting an inactive group.
Test deleting an inactive group.
...
...
common/test/acceptance/tests/video/test_video_module.py
View file @
a6fe9fca
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
Acceptance tests for Video.
Acceptance tests for Video.
"""
"""
import
os
import
os
from
unittest
import
skip
,
skip
If
from
unittest
import
skipIf
from
ddt
import
data
,
ddt
,
unpack
from
ddt
import
data
,
ddt
,
unpack
from
mock
import
patch
from
mock
import
patch
...
@@ -761,36 +761,6 @@ class YouTubeVideoTest(VideoBaseTest):
...
@@ -761,36 +761,6 @@ class YouTubeVideoTest(VideoBaseTest):
self
.
assertGreaterEqual
(
self
.
video
.
seconds
,
3
)
self
.
assertGreaterEqual
(
self
.
video
.
seconds
,
3
)
@skip
(
"Intermittently fails 03 June 2014"
)
def
test_video_position_stored_correctly_with_seek
(
self
):
"""
Scenario: Video component stores position correctly when page is reloaded
Given the course has a Video component in "Youtube" mode
Then the video has rendered in "Youtube" mode
And I click video button "play""
And I click video button "pause"
Then I seek video to "0:10" position
And I click video button "play""
And I click video button "pause"
And I reload the page with video
Then video slider should be Equal or Greater than "0:10"
"""
self
.
navigate_to_video
()
self
.
video
.
click_player_button
(
'play'
)
self
.
video
.
seek
(
'0:10'
)
self
.
video
.
click_player_button
(
'pause'
)
self
.
video
.
reload_page
()
self
.
video
.
click_player_button
(
'play'
)
self
.
video
.
click_player_button
(
'pause'
)
self
.
assertGreaterEqual
(
self
.
video
.
seconds
,
10
)
def
test_simplified_and_traditional_chinese_transcripts
(
self
):
def
test_simplified_and_traditional_chinese_transcripts
(
self
):
"""
"""
Scenario: Simplified and Traditional Chinese transcripts work as expected in Youtube mode
Scenario: Simplified and Traditional Chinese transcripts work as expected in Youtube mode
...
...
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