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
57b4cb7f
Commit
57b4cb7f
authored
Jun 01, 2016
by
Brian Jacobel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the flaky focus unit test removed in #12433 to a bok choy test
parent
faa7f544
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
common/test/acceptance/tests/studio/test_studio_split_test.py
+30
-0
No files found.
common/test/acceptance/tests/studio/test_studio_split_test.py
View file @
57b4cb7f
...
...
@@ -482,6 +482,36 @@ class GroupConfigurationsTest(ContainerBase, SplitTestMixin):
groups
=
[
"First Group"
,
"Group C"
,
"Group D"
]
)
def
test_focus_management_in_experiment_group_inputs
(
self
):
"""
Scenario: Ensure that selecting the focus inputs in the groups list
sets the .is-focused class on the fieldset
Given I have a course with experiment group configurations
When I click the name of the first group
Then the fieldset wrapping the group names whould get class .is-focused
When I click away from the first group
Then the fieldset should not have class .is-focused anymore
"""
self
.
page
.
visit
()
self
.
page
.
create_experiment_group_configuration
()
config
=
self
.
page
.
experiment_group_configurations
[
0
]
group_a
=
config
.
groups
[
0
]
# Assert the fieldset doesn't have .is-focused class
self
.
assertFalse
(
self
.
page
.
q
(
css
=
"fieldset.groups-fields.is-focused"
)
.
visible
)
# Click on the Group A input field
self
.
page
.
q
(
css
=
group_a
.
prefix
)
.
click
()
# Assert the fieldset has .is-focused class applied
self
.
assertTrue
(
self
.
page
.
q
(
css
=
"fieldset.groups-fields.is-focused"
)
.
visible
)
# Click away
self
.
page
.
q
(
css
=
".page-header"
)
.
click
()
# Assert the fieldset doesn't have .is-focused class
self
.
assertFalse
(
self
.
page
.
q
(
css
=
"fieldset.groups-fields.is-focused"
)
.
visible
)
def
test_use_group_configuration
(
self
):
"""
Scenario: Ensure that the group configuration can be used by split_module correctly
...
...
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