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
a8adce13
Commit
a8adce13
authored
Jan 12, 2015
by
Jesse Zoldak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6530 from edx/zoldak/fix-annotation-test
Fix flakiness on annotation selenium test
parents
ab06f37c
586d7980
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
common/test/acceptance/pages/lms/annotation_component.py
+9
-1
No files found.
common/test/acceptance/pages/lms/annotation_component.py
View file @
a8adce13
...
...
@@ -65,8 +65,16 @@ class AnnotationComponentPage(PageObject):
Submit correct answer for active problem.
"""
self
.
q
(
css
=
self
.
active_problem_selector
(
'.comment'
))
.
fill
(
'Test Response'
)
self
.
q
(
css
=
self
.
active_problem_selector
(
'.tag[data-id="{}"]'
.
format
(
self
.
active_problem
)))
.
click
()
answer_css
=
self
.
active_problem_selector
(
'.tag[data-id="{}"]'
.
format
(
self
.
active_problem
))
# Selenium will first move the element into view then click on it.
self
.
q
(
css
=
answer_css
)
.
click
()
# Wait for the click to take effect, which is after the class is applied.
self
.
wait_for
(
lambda
:
'selected'
in
self
.
q
(
css
=
answer_css
)
.
attrs
(
'class'
)[
0
],
description
=
'answer selected'
)
# Click the "Check" button.
self
.
q
(
css
=
self
.
active_problem_selector
(
'.check'
))
.
click
()
# This will trigger a POST to problem_check so wait until the response is returned.
self
.
wait_for_ajax
()
def
check_feedback
(
self
):
"""
...
...
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