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
da683ca7
Commit
da683ca7
authored
May 27, 2015
by
Alessandro Verdura
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add UI acceptance test
TNL-925
parent
8f6abbfd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
common/test/acceptance/pages/studio/import_export.py
+6
-0
common/test/acceptance/tests/studio/test_import_export.py
+15
-0
No files found.
common/test/acceptance/pages/studio/import_export.py
View file @
da683ca7
...
@@ -226,6 +226,12 @@ class ImportMixin(object):
...
@@ -226,6 +226,12 @@ class ImportMixin(object):
"""
"""
return
self
.
q
(
css
=
'.wrapper-status'
)
.
visible
return
self
.
q
(
css
=
'.wrapper-status'
)
.
visible
def
is_timestamp_visible
(
self
):
"""
Checks if the UTC timestamp of the last successfull import is visible
"""
return
self
.
q
(
css
=
'.item-progresspoint-success-date'
)
.
visible
def
wait_for_filename_error
(
self
):
def
wait_for_filename_error
(
self
):
"""
"""
Wait for the upload field to display an error.
Wait for the upload field to display an error.
...
...
common/test/acceptance/tests/studio/test_import_export.py
View file @
da683ca7
...
@@ -183,6 +183,21 @@ class ImportTestMixin(object):
...
@@ -183,6 +183,21 @@ class ImportTestMixin(object):
self
.
import_page
.
upload_tarball
(
self
.
tarball_name
)
self
.
import_page
.
upload_tarball
(
self
.
tarball_name
)
self
.
import_page
.
wait_for_upload
()
self
.
import_page
.
wait_for_upload
()
def
test_successful_import_timestamp
(
self
):
"""
Scenario: I perform a course / library import
On import success, the page displays its UTC timestamp previously not visible
And if I refresh the page, the timestamp is still displayed
"""
self
.
assertFalse
(
self
.
import_page
.
is_timestamp_visible
())
self
.
import_page
.
upload_tarball
(
self
.
tarball_name
)
self
.
import_page
.
wait_for_upload
()
self
.
assertTrue
(
self
.
import_page
.
is_timestamp_visible
())
self
.
import_page
.
visit
()
self
.
import_page
.
wait_for_tasks
(
completed
=
True
)
self
.
assertTrue
(
self
.
import_page
.
is_timestamp_visible
())
def
test_landing_url
(
self
):
def
test_landing_url
(
self
):
"""
"""
Scenario: When uploading a library or course, a link appears for me to view the changes.
Scenario: When uploading a library or course, a link appears for me to view the changes.
...
...
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