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
d2912705
Commit
d2912705
authored
Jan 09, 2015
by
Jesse Zoldak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6509 from edx/zoldak/fix-textbook-test
Fix flaky textbook upload lettuce tests
parents
72a2998e
3efb377d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
cms/djangoapps/contentstore/features/common.py
+11
-1
cms/djangoapps/contentstore/features/textbooks.feature
+0
-1
No files found.
cms/djangoapps/contentstore/features/common.py
View file @
d2912705
...
...
@@ -348,10 +348,20 @@ def attach_file(filename, sub_path):
def
upload_file
(
filename
,
sub_path
=
''
):
# The file upload dialog is a faux modal, a div that takes over the display
attach_file
(
filename
,
sub_path
)
button_css
=
'.wrapper-modal-window-assetupload .action-upload'
modal_css
=
'div.wrapper-modal-window-assetupload'
button_css
=
'{} .action-upload'
.
format
(
modal_css
)
world
.
css_click
(
button_css
)
# Clicking the Upload button triggers an AJAX POST.
world
.
wait_for_ajax_complete
()
# The modal stays up with a "File uploaded succeeded" confirmation message, then goes away.
# It should take under 2 seconds, so wait up to 10.
# Note that is_css_not_present will return as soon as the element is gone.
assert
world
.
is_css_not_present
(
modal_css
,
wait_time
=
10
)
@step
(
u'"([^"]*)" logs in$'
)
def
other_user_login
(
step
,
name
):
...
...
cms/djangoapps/contentstore/features/textbooks.feature
View file @
d2912705
...
...
@@ -17,7 +17,6 @@ Feature: CMS.Textbooks
And
I name the first chapter
"Chapter 1"
And
I click the Upload Asset link for the first chapter
And
I upload the textbook
"textbook.pdf"
And
I wait for
"2"
seconds
And
I save the textbook
Then
I should see a textbook named
"Economics"
with a chapter path containing
"/static/textbook.pdf"
And
I reload the page
...
...
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