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
3afc2a9f
Commit
3afc2a9f
authored
Feb 22, 2016
by
Ben Patterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure test waits for the library list to populate before continuing.
parent
8f7c158f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
common/test/acceptance/tests/studio/test_studio_home.py
+6
-3
No files found.
common/test/acceptance/tests/studio/test_studio_home.py
View file @
3afc2a9f
...
...
@@ -3,6 +3,7 @@ Acceptance tests for Home Page (My Courses / My Libraries).
"""
from
bok_choy.web_app_test
import
WebAppTest
from
opaque_keys.edx.locator
import
LibraryLocator
from
uuid
import
uuid4
from
...fixtures
import
PROGRAMS_STUB_URL
from
...fixtures.config
import
ConfigModelFixture
...
...
@@ -41,12 +42,14 @@ class CreateLibraryTest(WebAppTest):
Return to the home page
The newly created library should now appear in the list of libraries
"""
name
=
"New Library Name"
org
=
"TestOrgX"
number
=
"TESTLIB"
unique_suffix
=
uuid4
()
.
hex
[:
4
]
name
=
"New Library Name "
+
unique_suffix
org
=
"TestOrgX"
+
unique_suffix
number
=
"TESTLIB_"
+
unique_suffix
self
.
auth_page
.
visit
()
self
.
dashboard_page
.
visit
()
self
.
dashboard_page
.
wait_for_element_visibility
(
'.content-primary'
,
'See library list.'
)
self
.
assertFalse
(
self
.
dashboard_page
.
has_library
(
name
=
name
,
org
=
org
,
number
=
number
))
self
.
assertTrue
(
self
.
dashboard_page
.
has_new_library_button
())
...
...
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