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
d3fefa59
Commit
d3fefa59
authored
Sep 30, 2015
by
Christine Lytwynec
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9866 from edx/clytwynec/update-bokchoy
Update bok-choy version to v0.4.5
parents
999c5d8c
9387b607
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
30 deletions
+17
-30
common/test/acceptance/accessibility/test_lms_dashboard_a11y.py
+7
-15
common/test/acceptance/accessibility/test_studio_library_a11y.py
+7
-14
common/test/acceptance/tests/studio/test_studio_settings.py
+2
-0
requirements/edx/base.txt
+1
-1
No files found.
common/test/acceptance/accessibility/test_lms_dashboard_a
xs
.py
→
common/test/acceptance/accessibility/test_lms_dashboard_a
11y
.py
View file @
d3fefa59
...
...
@@ -2,7 +2,7 @@
Accessibility tests for LMS dashboard page.
Run just this test with:
SELENIUM_BROWSER=phantomjs paver test_bokchoy -d accessibility -t test_lms_dashboard_a
xs
.py
SELENIUM_BROWSER=phantomjs paver test_bokchoy -d accessibility -t test_lms_dashboard_a
11y
.py
"""
from
..tests.lms.test_lms_dashboard
import
BaseLmsDashboardTest
...
...
@@ -19,18 +19,10 @@ class LmsDashboardAxsTest(BaseLmsDashboardTest):
course_listings
=
self
.
dashboard_page
.
get_course_listings
()
self
.
assertEqual
(
len
(
course_listings
),
1
)
report
=
self
.
dashboard_page
.
do_axs_audit
()
# There are several existing color contrast errors on this page,
# we will ignore this error in the test until we fix them.
self
.
dashboard_page
.
a11y_audit
.
config
.
set_rules
({
"ignore"
:
[
'color-contrast'
],
})
# There was one page in this session
self
.
assertEqual
(
1
,
len
(
report
))
result
=
report
[
0
]
# Verify that this page has no accessibility errors.
self
.
assertEqual
(
0
,
len
(
result
.
errors
))
# Verify that this page currently has 2 accessibility warnings.
self
.
assertEqual
(
2
,
len
(
result
.
warnings
))
# And that these are the warnings that the page currently gives.
for
warning
in
result
.
warnings
:
self
.
assertTrue
(
warning
.
startswith
((
'Warning: AX_FOCUS_01'
,
'Warning: AX_COLOR_01'
,)),
msg
=
"Unexpected warning: {}"
.
format
(
warning
))
self
.
dashboard_page
.
a11y_audit
.
check_for_accessibility_errors
()
common/test/acceptance/accessibility/test_studio_library_a
xs
.py
→
common/test/acceptance/accessibility/test_studio_library_a
11y
.py
View file @
d3fefa59
...
...
@@ -2,7 +2,7 @@
Accessibility tests for Studio Library pages.
Run just this test with:
SELENIUM_BROWSER=phantomjs paver test_bokchoy -d accessibility -t test_studio_library_a
xs
.py
SELENIUM_BROWSER=phantomjs paver test_bokchoy -d accessibility -t test_studio_library_a
11y
.py
"""
from
..tests.studio.base_studio_test
import
StudioLibraryTest
from
..pages.studio.library
import
LibraryEditPage
...
...
@@ -20,18 +20,11 @@ class StudioLibraryAxsTest(StudioLibraryTest):
lib_page
=
LibraryEditPage
(
self
.
browser
,
self
.
library_key
)
lib_page
.
visit
()
lib_page
.
wait_until_ready
()
report
=
lib_page
.
do_axs_audit
()
# There was one page in this session
self
.
assertEqual
(
1
,
len
(
report
))
# There are several existing color contrast errors on this page,
# we will ignore this error in the test until we fix them.
lib_page
.
a11y_audit
.
config
.
set_rules
({
"ignore"
:
[
'color-contrast'
],
})
result
=
report
[
0
]
# Verify that this page has no accessibility errors.
self
.
assertEqual
(
0
,
len
(
result
.
errors
))
# Verify that this page currently has 3 accessibility warnings.
self
.
assertEqual
(
3
,
len
(
result
.
warnings
))
# And that these are the warnings that the page currently gives.
for
warning
in
result
.
warnings
:
self
.
assertTrue
(
warning
.
startswith
((
'Warning: AX_FOCUS_01'
,
'Warning: AX_COLOR_01'
,
'Warning: AX_IMAGE_01'
,)),
msg
=
"Unexpected warning: {}"
.
format
(
warning
))
lib_page
.
a11y_audit
.
check_for_accessibility_errors
()
common/test/acceptance/tests/studio/test_studio_settings.py
View file @
d3fefa59
...
...
@@ -4,6 +4,7 @@ Acceptance tests for Studio's Setting pages
"""
from
__future__
import
unicode_literals
from
nose.plugins.attrib
import
attr
from
unittest
import
skip
from
base_studio_test
import
StudioCourseTest
from
bok_choy.promise
import
EmptyPromise
...
...
@@ -151,6 +152,7 @@ class ContentGroupConfigurationTest(StudioCourseTest):
config
=
self
.
group_configurations_page
.
content_groups
[
0
]
self
.
assertTrue
(
config
.
delete_button_is_disabled
)
@skip
(
"TNL-3258"
)
def
test_can_delete_unused_content_group
(
self
):
"""
Scenario: Ensure that the user can delete unused content group.
...
...
requirements/edx/base.txt
View file @
d3fefa59
...
...
@@ -119,7 +119,7 @@ django_debug_toolbar==1.3.2
# Used for testing
astroid==1.3.8
bok-choy==0.4.
3
bok-choy==0.4.
5
chrono==1.0.2
coverage==4.0
ddt==0.8.0
...
...
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