DiscussionResponseEditTest.test_vote_report_endorse_after_edit fails intermittently

Description

Test path: common.test.acceptance.tests.discussion.test_discussion.DiscussionResponseEditTest.test_vote_report_endorse_after_edit

Test command: paver test_bokchoy -t discussion/test_discussion.pyiscussionResponseEditTest.test_vote_report_endorse_after_edit

Failed build: https://build.testeng.edx.org/job/edx-platform-bok-choy-pr/25751/

Error message:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Promise not satisfied: Vote updated for response_other_author -------------------- >> begin captured logging << -------------------- bok_choy.browser: INFO: Using local browser: firefox [Default is firefox] factory.generate: DEBUG: BaseFactory: Preparing common.test.acceptance.fixtures.discussion.Thread(extra={'id': 'response_edit_test_thread', 'commentable_id': 'test_discussion_f53ceb8b607f4840805da5dc9cd695f6'}) factory.generate: DEBUG: <class 'common.test.acceptance.fixtures.discussion.Thread'>: reusing sequence from <class 'common.test.acceptance.fixtures.discussion.ContentFactory'> factory.containers: DEBUG: LazyStub: Computing values for common.test.acceptance.fixtures.discussion.Thread(anonymous_to_peers=False, unread_comments_count=0, updated_at='2016-09-06T15:16:37.779338', course_id='dummy-course-id', id='response_edit_test_thread', pinned=False, votes={'up_count': 0}, user_id='1234', title='dummy thread title', commentable_id='test_discussion_f53ceb8b607f4840805da5dc9cd695f6', abuse_flaggers=[], closed=False, at_position_list=[], type='thread', username='dummy-username', read=False, body='dummy thread body', anonymous=False, created_at='2016-09-06T15:16:37.779309', thread_type='discussion', comments_count=0, group_id=None, endorsed=False) factory.containers: DEBUG: LazyStub: Computed values, got common.test.acceptance.fixtures.discussion.Thread(anonymous_to_peers=False, unread_comments_count=0, updated_at='2016-09-06T15:16:37.779338', course_id='dummy-course-id', id='response_edit_test_thread', abuse_flaggers=[], votes={'up_count': 0}, user_id='1234', title='dummy thread title', commentable_id='test_discussion_f53ceb8b607f4840805da5dc9cd695f6', pinned=False, closed=False, at_position_list=[], type='thread', username='dummy-username', read=False, body='dummy thread body', anonymous=False, created_at='2016-09-06T15:16:37.779309', thread_type='discussion', comments_count=0, group_id=None, endorsed=False) factory.generate: DEBUG: BaseFactory: Generating common.test.acceptance.fixtures.discussion.Thread(anonymous_to_peers=False, unread_comments_count=0, updated_at='2016-09-06T15:16:37.779338', course_id='dummy-course-id', id='response_edit_test_thread', abuse_flaggers=[], votes={'up_count': 0}, user_id='1234', title='dummy thread title', commentable_id='test_discussion_f53ceb8b607f4840805da5dc9cd695f6', pinned=False, closed=False, at_position_list=[], type='thread', username='dummy-username', read=False, body='dummy thread body', anonymous=False, created_at='2016-09-06T15:16:37.779309', thread_type='discussion', comments_count=0, group_id=None, endorsed=False) factory.generate: DEBUG: BaseFactory: Preparing common.test.acceptance.fixtures.discussion.Response(extra={'thread_id': 'response_edit_test_thread', 'user_id': 'other', 'id': 'response_other_author'}) factory.generate: DEBUG: <class 'common.test.acceptance.fixtures.discussion.Response'>: reusing sequence from <class 'common.test.acceptance.fixtures.discussion.Comment'> factory.generate: DEBUG: <class 'common.test.acceptance.fixtures.discussion.Comment'>: reusing sequence from <class 'common.test.acceptance.fixtures.discussion.ContentFactory'> factory.containers: DEBUG: LazyStub: Computing values for common.test.acceptance.fixtures.discussion.Response(username='dummy-username', anonymous_to_peers=False, votes={'up_count': 0}, user_id='other', closed=False, type='comment', created_at='2016-09-06T15:16:37.779309', body='dummy response body', updated_at='2016-09-06T15:16:37.779338', commentable_id='dummy-commentable-id', abuse_flaggers=[], thread_id='response_edit_test_thread', depth=1, anonymous=False, course_id='dummy-course-id', at_position_list=[], endorsed=False, id='response_other_author') factory.containers: DEBUG: LazyStub: Computed values, got common.test.acceptance.fixtures.discussion.Response(username='dummy-username', anonymous_to_peers=False, votes={'up_count': 0}, user_id='other', anonymous=False, endorsed=False, created_at='2016-09-06T15:16:37.779309', body='dummy response body', updated_at='2016-09-06T15:16:37.779338', commentable_id='dummy-commentable-id', abuse_flaggers=[], thread_id='response_edit_test_thread', depth=1, closed=False, course_id='dummy-course-id', at_position_list=[], type='comment', id='response_other_author') factory.generate: DEBUG: BaseFactory: Generating common.test.acceptance.fixtures.discussion.Response(username='dummy-username', anonymous_to_peers=False, votes={'up_count': 0}, user_id='other', anonymous=False, endorsed=False, created_at='2016-09-06T15:16:37.779309', body='dummy response body', updated_at='2016-09-06T15:16:37.779338', commentable_id='dummy-commentable-id', abuse_flaggers=[], thread_id='response_edit_test_thread', depth=1, closed=False, course_id='dummy-course-id', at_position_list=[], type='comment', id='response_other_author') factory.generate: DEBUG: BaseFactory: Preparing common.test.acceptance.fixtures.discussion.Response(extra={'thread_id': 'response_edit_test_thread', 'user_id': 153, 'id': 'response_self_author'}) factory.generate: DEBUG: <class 'common.test.acceptance.fixtures.discussion.Response'>: reusing sequence from <class 'common.test.acceptance.fixtures.discussion.Comment'> factory.generate: DEBUG: <class 'common.test.acceptance.fixtures.discussion.Comment'>: reusing sequence from <class 'common.test.acceptance.fixtures.discussion.ContentFactory'> factory.containers: DEBUG: LazyStub: Computing values for common.test.acceptance.fixtures.discussion.Response(username='dummy-username', anonymous_to_peers=False, votes={'up_count': 0}, user_id=153, closed=False, type='comment', created_at='2016-09-06T15:16:37.779309', body='dummy response body', updated_at='2016-09-06T15:16:37.779338', commentable_id='dummy-commentable-id', abuse_flaggers=[], thread_id='response_edit_test_thread', depth=1, anonymous=False, course_id='dummy-course-id', at_position_list=[], endorsed=False, id='response_self_author') factory.containers: DEBUG: LazyStub: Computed values, got common.test.acceptance.fixtures.discussion.Response(username='dummy-username', anonymous_to_peers=False, votes={'up_count': 0}, user_id=153, anonymous=False, endorsed=False, created_at='2016-09-06T15:16:37.779309', body='dummy response body', updated_at='2016-09-06T15:16:37.779338', commentable_id='dummy-commentable-id', abuse_flaggers=[], thread_id='response_edit_test_thread', depth=1, closed=False, course_id='dummy-course-id', at_position_list=[], type='comment', id='response_self_author') factory.generate: DEBUG: BaseFactory: Generating common.test.acceptance.fixtures.discussion.Response(username='dummy-username', anonymous_to_peers=False, votes={'up_count': 0}, user_id='153', anonymous=False, endorsed=False, created_at='2016-09-06T15:16:37.779309', body='dummy response body', updated_at='2016-09-06T15:16:37.779338', commentable_id='dummy-commentable-id', abuse_flaggers=[], thread_id='response_edit_test_thread', depth=1, closed=False, course_id='dummy-course-id', at_position_list=[], type='comment', id='response_self_author') --------------------- >> end captured logging << ---------------------

Stack trace:

1 2 3 4 5 6 7 8 9 10 11 12 File "/usr/lib/python2.7/unittest/case.py", line 331, in run testMethod() File "/home/jenkins/workspace/edx-platform-test-subset/common/test/acceptance/tests/discussion/test_discussion.py", line 818, in test_vote_report_endorse_after_edit page.vote_response('response_other_author') File "/home/jenkins/edx-venv/local/lib/python2.7/site-packages/bok_choy/page_object.py", line 88, in wrapper return method(self, *args, **kwargs) File "/home/jenkins/workspace/edx-platform-test-subset/common/test/acceptance/pages/lms/discussion.py", line 193, in vote_response description="Vote updated for {response_id}".format(response_id=response_id) File "/home/jenkins/edx-venv/local/lib/python2.7/site-packages/bok_choy/page_object.py", line 539, in wait_for return EmptyPromise(promise_check_func, description, timeout=timeout).fulfill() File "/home/jenkins/edx-venv/local/lib/python2.7/site-packages/bok_choy/promise.py", line 97, in fulfill raise BrokenPromise(self)

Steps to Reproduce

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

None

Release Notes

None

User Impact Summary

None

Status

Assignee

Jeremy Bowman

Reporter

Brian Jacobel

Reach

None

Impact

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Category of Work

None

Stakeholders

None

Story Points

2

Sprint

None

Priority

CAT-3
Configure