Expand tests for imageBlockEditor

Description

The test coverage for sjrk.storyTelling.blockUi.editor.imageBlockEditor is incomplete. Add a few more tests:

  • check the grade names to ensure the fluid.contextAware merging is happening as expected (no longer applicable)

  • call the updateImagePreview invoker manually and check the resulting values

  • on imageUploadRequested, check that singleFileUploader's onUploadRequested also fires

  • on imageCaptureRequested, check that cameraCaptureUploader's onUploadRequested also fires (no longer applicable)

  • check that updateImagePreview is called with the correct arguments when singleFileUploader's fileObjectURL changes

  • check that updateImagePreview is called with the correct arguments when cameraCaptureUploader's fileObjectURL changes (no longer applicable)

Also consider these possible additions:

  • check the template has been rendered as expected

  • check the bindings

Activity

Show:

Details

Assignee

Reporter

Components

Priority

Created June 14, 2018 at 7:12 PM
Updated September 12, 2019 at 11:14 PM
Resolved June 14, 2018 at 7:12 PM