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
9ebfc49b
Commit
9ebfc49b
authored
Mar 02, 2016
by
Jesse Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wait for the Advanced problem tab to be active. Remove the __test__ signifier.
parent
2c8148c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
common/test/acceptance/pages/studio/utils.py
+7
-0
common/test/acceptance/tests/studio/test_studio_components.py
+0
-2
No files found.
common/test/acceptance/pages/studio/utils.py
View file @
9ebfc49b
...
...
@@ -87,6 +87,13 @@ def add_component(page, item_type, specific_type, is_advanced_problem=False):
advanced_tab
=
page
.
q
(
css
=
'.problem-type-tabs a'
)
.
filter
(
text
=
'Advanced'
)
.
first
advanced_tab
.
click
()
# Wait for the advanced tab to be active
css
=
'.problem-type-tabs li.ui-tabs-active a'
page
.
wait_for
(
lambda
:
len
(
page
.
q
(
css
=
css
)
.
filter
(
text
=
'Advanced'
)
.
execute
())
>
0
,
'Waiting for the Advanced problem tab to be active'
)
all_options
=
page
.
q
(
css
=
'.new-component-{} ul.new-component-template li button span'
.
format
(
item_type
))
chosen_option
=
all_options
.
filter
(
text
=
specific_type
)
.
first
chosen_option
.
click
()
...
...
common/test/acceptance/tests/studio/test_studio_components.py
View file @
9ebfc49b
...
...
@@ -15,8 +15,6 @@ class AdvancedProblemComponentTest(ContainerBase):
Feature: CMS.Component Adding
As a course author, I want to be able to add a wide variety of components
"""
__test__
=
True
def
setUp
(
self
,
is_staff
=
True
):
"""
Create a course with a section, subsection, and unit to which to add the component.
...
...
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