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
5aba2f0e
Commit
5aba2f0e
authored
Mar 05, 2015
by
Jonathan Piacenti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exfoliate flaky studio home test.
parent
4cb45571
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
common/test/acceptance/pages/studio/index.py
+6
-1
common/test/acceptance/tests/studio/test_studio_home.py
+0
-1
No files found.
common/test/acceptance/pages/studio/index.py
View file @
5aba2f0e
...
...
@@ -86,16 +86,21 @@ class DashboardPage(PageObject):
def
list_libraries
(
self
):
"""
List all the libraries found on the page's list of libraries
.
Click the tab to display the available libraries, and return detail of them
.
"""
# Workaround Selenium/Firefox bug: `.text` property is broken on invisible elements
self
.
q
(
css
=
'#course-index-tabs .libraries-tab a'
)
.
click
()
if
self
.
q
(
css
=
'.list-notices.libraries-tab'
)
.
present
:
# No libraries are available.
self
.
wait_for_element_visibility
(
'.libraries-tab .new-library-button'
,
"Switch to library tab"
)
return
[]
div2info
=
lambda
element
:
{
'name'
:
element
.
find_element_by_css_selector
(
'.course-title'
)
.
text
,
'org'
:
element
.
find_element_by_css_selector
(
'.course-org .value'
)
.
text
,
'number'
:
element
.
find_element_by_css_selector
(
'.course-num .value'
)
.
text
,
'url'
:
element
.
find_element_by_css_selector
(
'a.library-link'
)
.
get_attribute
(
'href'
),
}
self
.
wait_for_element_visibility
(
'.libraries li.course-item'
,
"Switch to library tab"
)
return
self
.
q
(
css
=
'.libraries li.course-item'
)
.
map
(
div2info
)
.
results
def
has_library
(
self
,
**
kwargs
):
...
...
common/test/acceptance/tests/studio/test_studio_home.py
View file @
5aba2f0e
...
...
@@ -24,7 +24,6 @@ class CreateLibraryTest(WebAppTest):
self
.
auth_page
=
AutoAuthPage
(
self
.
browser
,
staff
=
True
)
self
.
dashboard_page
=
DashboardPage
(
self
.
browser
)
@skip
(
"Flaky test. See SOL-430"
)
def
test_create_library
(
self
):
"""
From the home 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