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
3f76da0b
Commit
3f76da0b
authored
Nov 18, 2015
by
raeeschachar
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10657 from edx/raees/chrome-bok-choy-EditVisibilityModalTest
Fixed Chrome Bok Choy tests
parents
06cd352e
dfa0fe2d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
common/test/acceptance/tests/studio/test_studio_container.py
+5
-5
No files found.
common/test/acceptance/tests/studio/test_studio_container.py
View file @
3f76da0b
...
...
@@ -397,6 +397,7 @@ class EditVisibilityModalTest(ContainerBase):
# Re-open the modal and inspect its selected inputs
visibility_editor
=
self
.
edit_component_visibility
(
component
)
self
.
verify_selected_labels
(
visibility_editor
,
expected_labels
)
visibility_editor
.
save
()
def
verify_component_validation_error
(
self
,
component
):
"""
...
...
@@ -427,14 +428,13 @@ class EditVisibilityModalTest(ContainerBase):
self
.
browser
.
refresh
()
self
.
container_page
.
wait_for_page
()
def
remove_missing_groups
(
self
,
component
):
def
remove_missing_groups
(
self
,
visibility_editor
,
component
):
"""
Deselect the missing groups for a component. After save,
verify that there are no missing group messages in the modal
and that there is no validation error on the component.
"""
visibility_editor
=
self
.
edit_component_visibility
(
component
)
for
option
in
self
.
edit_component_visibility
(
component
)
.
selected_options
:
for
option
in
visibility_editor
.
selected_options
:
if
option
.
text
==
self
.
MISSING_GROUP_LABEL
:
option
.
click
()
visibility_editor
.
save
()
...
...
@@ -541,7 +541,7 @@ class EditVisibilityModalTest(ContainerBase):
self
.
verify_component_validation_error
(
self
.
html_component
)
visibility_editor
=
self
.
edit_component_visibility
(
self
.
html_component
)
self
.
verify_selected_labels
(
visibility_editor
,
[
self
.
MISSING_GROUP_LABEL
]
*
2
)
self
.
remove_missing_groups
(
self
.
html_component
)
self
.
remove_missing_groups
(
visibility_editor
,
self
.
html_component
)
self
.
verify_visibility_set
(
self
.
html_component
,
False
)
def
test_found_and_missing_groups
(
self
):
...
...
@@ -565,7 +565,7 @@ class EditVisibilityModalTest(ContainerBase):
self
.
verify_component_validation_error
(
self
.
html_component
)
visibility_editor
=
self
.
edit_component_visibility
(
self
.
html_component
)
self
.
verify_selected_labels
(
visibility_editor
,
[
'Dogs'
,
'Cats'
]
+
[
self
.
MISSING_GROUP_LABEL
]
*
2
)
self
.
remove_missing_groups
(
self
.
html_component
)
self
.
remove_missing_groups
(
visibility_editor
,
self
.
html_component
)
visibility_editor
=
self
.
edit_component_visibility
(
self
.
html_component
)
self
.
verify_selected_labels
(
visibility_editor
,
[
'Dogs'
,
'Cats'
])
self
.
verify_visibility_set
(
self
.
html_component
,
True
)
...
...
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