Skip to content

QA Testing: Image Plugin

Nicholas Hoyt edited this page Feb 7, 2019 · 59 revisions

The functionality for this plugin resides mainly in the Link dialog, invoked by selecting the A11y Image button in the first row of the toolbar.

Testing domain within the Image Properties dialog

  • URL
  • Alternative Text
  • Checkbox: Image does not require alt. text

Conditions, Actions & Responses Matrix

Condition User action System response & message User action System response
alt. text empty AND not required checkbox not checked Select OK Warning dialog with OK button / EMPTY msg Select OK Focus: Alternative Text
alt. text empty AND not required checkbox checked Select OK Confirm dialog with OK and Cancel buttons / EMPTY msg Select Cancel Focus: Alternative Text
alt. text empty && not required checkbox checked Select OK Confirm dialog with OK and Cancel buttons / EMPTY msg Select OK Image inserted in document
alt. text length > 100 Select OK Confirm dialog with OK and Cancel buttons / LENGTH msg Select Cancel Focus: Alternative Text
alt. text length > 100 Select OK Confirm dialog with OK and Cancel buttons / LENGTH msg Select OK Image inserted in document
alt. text starts with redundant phrase ('image of', 'graphic of') Select OK Warning dialog with OK button / PREFIX + PHRASE msgs Select OK Focus: Alternative Text
alt. text is equal to a common nondescriptive word (image, photo, spacer, separator, nbsp) Select OK Warning dialog with OK button / PREFIX + WORD msgs Select OK Focus: Alternative Text
alt. text ends with a size-related word (e.g. bytes) Select OK Warning dialog with OK button / PREFIX + BYTES msgs Select OK Focus: Alternative Text
alt. text contains file ext. (e.g. .tif, .gif, .png...) Select OK Warning dialog with OK button / PREFIX + FILEEXT msgs Select OK Focus: Alternative Text
url empty Select OK Warning dialog with OK button / SOURCE msg Select OK Focus: URL
alt. text empty OR only contains whitespace none Checkbox is enabled none
alt. text has content none Checkbox is disabled and unchecked none

Messages

Note: The message values below may not be exact or up-to-date, but should paraphrase the actual messages.

ID Message
EMPTY Please provide alternative text ...
LENGTH The alternative text is n characters, which is longer than the recommended maximum length of 100 characters. Are you sure you want to continue?
PREFIX The alternative text should succinctly describe the content of the image.
PHRASE Please remove 'phrase' from the alternative text.
WORD Please replace 'word' with alternative text that describes the image.
BYTES Please do not include the size of the image in the alternative text.
FILEEXT Please remove the filename with the extension '.xyz' from the alternative text.
SOURCE Please provide the URL for the image

Testing Long Description Options

Testing if long description information is being added to the IMG ALT attribute and the dialog is correctly identifying the additional ALT content and updating the select box accordingly.

  • Select box label (paraphrased): Adjacent detailed description in document

Preconditions

  • URL field validated
  • Alternative text field validated
Condition User action System response & message User action System response
Select box: none Select before option then OK dialog closes open dialog on same image Select Box: before
Select box: none Select after option then OK dialog closes open dialog on same image Select Box: after
Select box: none Select both option then OK dialog closes open dialog on same image Select Box: both
Select box: before Select none option then OK dialog closes open dialog on same image Select Box: none
Select box: after Select none option then OK dialog closes open dialog on same image Select Box: none
Select box: both Select none option then OK dialog closes open dialog on same image Select Box: none

Clone this wiki locally