PR 4864: Intermittent bok-choy video test Promise not satisfied: State is pause

Description

Seems there is a synchronization issue with this test, that YouTube is still loading the video. You can see in the screenshot the small YouTube spinner.

Failed in build: https://jenkins.testeng.edx.org/job/edx-all-tests-auto-pr/13743/SHARD=2,TEST_SUITE=bok-choy/

acceptance.tests.video.test_video_module.YouTubeVideoTest.test_video_position_stored_correctly_wo_seek (from nosetests)
Error Message

1 2 3 4 Promise not satisfied: State is pause -------------------- >> begin captured logging << -------------------- bok_choy.browser: INFO: Using local browser: firefox [Default is firefox] --------------------- >> end captured logging << ---------------------

Stacktrace

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 File "/usr/lib/python2.7/unittest/case.py", line 327, in run testMethod() File "/home/jenkins/workspace/edx-all-tests-auto-pr/SHARD/2/TEST_SUITE/bok-choy/common/test/acceptance/tests/video/test_video_module.py", line 645, in test_video_position_stored_correctly_wo_seek self.video.click_player_button('pause') File "/home/jenkins/edx-venv/src/bok-choy/bok_choy/page_object.py", line 64, in wrapper return method(self, *args, **kwargs) File "/home/jenkins/workspace/edx-all-tests-auto-pr/SHARD/2/TEST_SUITE/bok-choy/common/test/acceptance/pages/lms/video/video.py", line 356, in click_player_button self.wait_for_state(button_states[button]) File "/home/jenkins/edx-venv/src/bok-choy/bok_choy/page_object.py", line 64, in wrapper return method(self, *args, **kwargs) File "/home/jenkins/workspace/edx-all-tests-auto-pr/SHARD/2/TEST_SUITE/bok-choy/common/test/acceptance/pages/lms/video/video.py", line 698, in wait_for_state 'State is {state}'.format(state=state) File "/home/jenkins/workspace/edx-all-tests-auto-pr/SHARD/2/TEST_SUITE/bok-choy/common/test/acceptance/pages/lms/video/video.py", line 686, in _wait_for return EmptyPromise(check_func, desc, timeout=timeout).fulfill() File "/home/jenkins/edx-venv/src/bok-choy/bok_choy/promise.py", line 96, in fulfill raise BrokenPromise(self) 'Promise not satisfied: State is pause\n-------------------- >> begin captured logging << --------------------\nbok_choy.browser: INFO: Using local browser: firefox [Default is firefox]\n--------------------- >> end captured logging << ---------------------'

Steps to Reproduce

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

None

Release Notes

None

User Impact Summary

None

Status

Assignee

Muhammad Ammar

Reporter

JesseZ

Labels

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

Sprint

None

Priority

Unset
Configure