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
b6b0d7fd
Commit
b6b0d7fd
authored
Apr 08, 2016
by
Ben Patterson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12016 from edx/muddasser/bokchoy/upload_tar_flakiness
Decreased the flakiness of upload_tar function
parents
46d69eba
7680d0b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
common/test/acceptance/pages/studio/import_export.py
+8
-0
common/test/acceptance/tests/studio/test_import_export.py
+0
-1
No files found.
common/test/acceptance/pages/studio/import_export.py
View file @
b6b0d7fd
...
...
@@ -178,7 +178,15 @@ class ImportMixin(object):
asset_file_path
=
self
.
file_path
(
tarball_filename
)
# Make the upload elements visible to the WebDriver.
self
.
browser
.
execute_script
(
'$(".file-name-block").show();$(".file-input").show()'
)
# Upload the file.
self
.
q
(
css
=
'input[type="file"]'
)[
0
]
.
send_keys
(
asset_file_path
)
# Upload the same file again. Reason behind this is to decrease the
# probability or fraction of times the failure occur. Please be
# noted this doesn't eradicate the root cause of the error, it
# just decreases to failure rate to minimal.
# Jira ticket reference: TNL-4191.
self
.
q
(
css
=
'input[type="file"]'
)[
0
]
.
send_keys
(
asset_file_path
)
# Some of the tests need these lines to pass so don't remove them.
self
.
_wait_for_button
()
click_css
(
self
,
'.submit-button'
,
require_notification
=
False
)
...
...
common/test/acceptance/tests/studio/test_import_export.py
View file @
b6b0d7fd
...
...
@@ -182,7 +182,6 @@ class ImportTestMixin(object):
"""
return
[]
@flaky
# TODO, fix this: TNL-4191
def
test_upload
(
self
):
"""
Scenario: I want to upload a course or library for import.
...
...
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