Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
OpenEdx
problem-builder
Commits
bc2a12e8
Commit
bc2a12e8
authored
Oct 20, 2015
by
Tim Krones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve tests: Make sure we are at the correct step before checking plot.
parent
e4872215
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
problem_builder/tests/integration/test_step_builder.py
+7
-3
No files found.
problem_builder/tests/integration/test_step_builder.py
View file @
bc2a12e8
...
...
@@ -566,10 +566,14 @@ class StepBuilderTest(MentoringAssessmentBaseTest):
)
choices
.
select
(
choice_name
)
def
submit_and_go_to_next_step
(
self
,
controls
):
def
submit_and_go_to_next_step
(
self
,
controls
,
last
=
False
):
controls
.
submit
.
click
()
self
.
wait_until_clickable
(
controls
.
next_question
)
controls
.
next_question
.
click
()
if
last
:
self
.
wait_until_hidden
(
controls
.
next_question
)
else
:
self
.
wait_until_disabled
(
controls
.
next_question
)
def
plot_controls
(
self
,
step_builder
):
class
Namespace
(
object
):
...
...
@@ -644,7 +648,7 @@ class StepBuilderTest(MentoringAssessmentBaseTest):
# Provide second rating
self
.
answer_rating_question
(
1
,
2
,
step_builder
,
"How important do you think this is?"
,
"5 - Very important"
)
# Advance
self
.
submit_and_go_to_next_step
(
controls
)
self
.
submit_and_go_to_next_step
(
controls
,
last
=
True
)
# Step 2: Plot
# Check if plot is empty initially (default overlay on, average overlay off)
...
...
@@ -709,7 +713,7 @@ class StepBuilderTest(MentoringAssessmentBaseTest):
# Provide second rating
self
.
answer_rating_question
(
2
,
2
,
step_builder
,
"How important do you think this is?"
,
"1 - Not important"
)
# Advance
self
.
submit_and_go_to_next_step
(
controls
)
self
.
submit_and_go_to_next_step
(
controls
,
last
=
True
)
# Step 2: Plot
# Obtain references to plot controls
...
...
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