this test fails all the time in jenkins, probably because it's crazy async

Let's find out.

TEST PLAN:
  1) Less Fragile Failures

Change-Id: I4e0f7137850f107ae3e758c6d0dee5206979123c
Reviewed-on: https://gerrit.instructure.com/52021
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Tested-by: Jenkins
Product-Review: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
This commit is contained in:
Ethan Vizitei 2015-04-10 18:03:52 -06:00
parent 1329e71c53
commit 72cd48462c
1 changed files with 15 additions and 6 deletions

View File

@ -90,16 +90,25 @@ define [
test 'clicking the info button should render out the info panel', ->
asyncTest 'clicking the info button should render out the info panel', ->
expect(1)
@runRouter ->
$('.ef-file-preview-header-info').click()
setTimeout ()->
start()
ok $('.ef-file-preview-information-container').length, 'The info panel did not show'
test 'clicking the info button after the panel has been opened should hide the info panel', ->
asyncTest 'clicking the info button after the panel has been opened should hide the info panel', ->
expect(2)
@runRouter ->
$('.ef-file-preview-header-info').click()
setTimeout ()->
start()
ok $('.ef-file-preview-information-container').length, 'The info panel did not show'
stop()
$('.ef-file-preview-header-info').click()
setTimeout ()->
start()
ok !$('.ef-file-preview-information-container').length, 'The info panel did not close'
test 'opening the preview for one file should show navigation buttons for the previous and next files in the current folder', ->