Repository navigation
QA Testing: Link Plugin
Nicholas Hoyt edited this page Mar 16, 2018
·
10 revisions
The functionality for this plugin resides mainly in the Link dialog, invoked by selecting the Link button in the second row of the toolbar.
- Of the three tabs in the Link dialog, only the
Linktab functionality needs to be tested. - Within the
Linktab, all three of the options provided by theLink Typeselect box need to be tested:URL,Link to anchor in the textandE-mail. - The following three sections describe how to test each of these.
- The last section describes the string matches used in validating display text for all link types.
- Invocation: Position cursor within paragraph (no selection) and select
Linkbutton - Initial state: Focus is placed within
Display Text;Link Typedefaults toURL
| Display Text | URL | User action | System response & message | User action | System response |
|---|---|---|---|---|---|
| empty | empty | Select OK
|
Warning dialog with OK button; 'Please type the display text for the link' |
Dismiss dialog with OK
|
Focus: Display Text |
| empty | test.org | Select OK
|
Warning dialog with OK button; 'Please type the display text for the link' |
Dismiss dialog with OK
|
Focus: Display Text |
| test | empty | Select OK
|
Warning dialog with OK button; 'Please type the URL for the link' |
Dismiss dialog with OK
|
Focus: URL |
| test.org | test.org | Select OK
|
Confirmation dialog with OK and Cancel buttons; 'For accessibility reasons the URL is considered a poor choice as the display text for the link. Are you sure you want to continue?' |
Select Cancel
|
Focus: Display Text |
| test.org | test.org | Select OK
|
Confirmation dialog with OK and Cancel buttons; 'For accessibility reasons the URL is considered a poor choice as the display text for the link. Are you sure you want to continue?' |
Select OK
|
Link is inserted in document |
| test | test.org | Select OK
|
Link is inserted in document | n/a | n/a |
- Invocation: Position cursor within paragraph (no selection) and select
Linkbutton - Initial state: Focus is placed within
Display Text; selectE-mailLink Type
| Display Text | E-Mail Address | User action | System response & message | User action | System response |
|---|---|---|---|---|---|
| empty | empty | Select OK
|
Warning dialog with OK button; 'Please type the display text for the link' |
Dismiss dialog with OK
|
Focus: Display Text |
| empty | abc@test.org |
Select OK
|
Warning dialog with OK button; 'Please type the display text for the link' |
Dismiss dialog with OK
|
Focus: Display Text |
| test | empty | Select OK
|
Warning dialog with OK button; 'Please type the e-mail address for the link' |
Dismiss dialog with OK
|
Focus: URL |
abc@test.org |
abc@test.org |
Select OK
|
Confirmation dialog with OK and Cancel buttons; 'For accessibility reasons the e-mail address is considered a poor choice as the display text for the link. Are you sure you want to continue?' |
Select Cancel
|
Focus: Display Text |
abc@test.org |
abc@test.org |
Select OK
|
Confirmation dialog with OK and Cancel buttons; 'For accessibility reasons the email address is considered a poor choice as the display text for the link. Are you sure you want to continue?' |
Select OK
|
Link is inserted in document |
| test | abc@test.org |
Select OK
|
Link is inserted in document | n/a | n/a |
- Invocation: Position cursor within paragraph (no selection) and select
Linkbutton - Initial state: Focus is placed within
Display Text; selectLink to anchor in the textLink Type
| Display Text | Select an Anchor | User action | System response & message | User action | System response |
|---|---|---|---|---|---|
| empty | no anchors | Select OK
|
Warning dialog with OK button; 'Please type the display text for the link' |
Dismiss dialog with OK
|
Focus: Display Text |
| empty | no selection | Select OK
|
Warning dialog with OK button; 'Please type the display text for the link' |
Dismiss dialog with OK
|
Focus: Display Text |
| empty | sub1a | Select OK
|
Warning dialog with OK button; 'Please type the display text for the link' |
Dismiss dialog with OK
|
Focus: Display Text |
| test | no anchors | Select OK
|
Warning dialog with OK button; 'No anchors available in the document. The link will be inserted, but will not link to an anchor.' |
Dismiss dialog with OK
|
Link is inserted in document |
| test | no selection | Select OK
|
Confirmation dialog with OK and Cancel buttons; 'The link is not associated with an anchor. Do you want to continue?' |
Select Cancel
|
Focus: By Anchor Name |
| test | no selection | Select OK
|
Confirmation dialog with OK and Cancel buttons; 'The link is not associated with an anchor. Do you want to continue?' |
Select OK
|
Link is inserted in document |
| test | sub1a | Select OK
|
Link is inserted in document | n/a | n/a |
| sub1a | sub1a | Select OK
|
Confirmation dialog with OK and Cancel buttons; 'For accessibility reasons, in many cases the anchor name or ID may not be a good choice as the display text for the link. Are you sure you want to continue?' |
Select Cancel
|
Focus: Display Text |
| sub1a | sub1a | Select OK
|
Confirmation dialog with OK and Cancel buttons; 'For accessibility reasons, in many cases the anchor name or ID may not be a good choice as the display text for the link. Are you sure you want to continue?' |
Select OK
|
Link is inserted in document |
- Invocation: Position cursor within paragraph (no selection) and select
Linkbutton - Initial state: Focus is placed within
Display Text; select anyLink Type
Note: The following table is not an exhaustive list of all possible string matches, but does provide examples of the main types of strings considered invalid when used as, or at the beginning of the display text.
| Display Text | Other fields | User action | System response & message | User action | System response |
|---|---|---|---|---|---|
| click | empty or any text | Select OK
|
Warning dialog with OK button; 'Please replace "click" with text that describes the target of the link' |
Dismiss dialog with OK
|
Focus: Display Text |
| Click! | empty or any text | Select OK
|
Warning dialog with OK button; 'Please replace "Click!" with text that describes the target of the link' |
Dismiss dialog with OK
|
Focus: Display Text |
| Click Here. | empty or any text | Select OK
|
Warning dialog with OK button; 'Please replace "Click Here." with text that describes the target of the link' |
Dismiss dialog with OK
|
Focus: Display Text |
| add | empty or any text | Select OK
|
Warning dialog with OK button; 'Please replace "add" with text that describes the target of the link' |
Dismiss dialog with OK
|
Focus: Display Text |
| download, | empty or any text | Select OK
|
Warning dialog with OK button; 'Please replace "download," with text that describes the target of the link' |
Dismiss dialog with OK
|
Focus: Display Text |
| go to | empty or any text | Select OK
|
Warning dialog with OK button; 'Please replace "go to" with text that describes the target of the link' |
Dismiss dialog with OK
|
Focus: Display Text |
| Here? | empty or any text | Select OK
|
Warning dialog with OK button; 'Please replace "Here?" with text that describes the target of the link' |
Dismiss dialog with OK
|
Focus: Display Text |
| Link to more information | empty or any text | Select OK
|
Warning dialog with OK button; 'Please remove "Link to" from the display text' |
Dismiss dialog with OK
|
Focus: Display Text |
| Link for more information | empty or any text | Select OK
|
Warning dialog with OK button; 'Please remove "Link" from the display text' |
Dismiss dialog with OK
|
Focus: Display Text |
| http://somewhere.org | empty or any text | Select OK
|
Confirm dialog with OK button; 'For accessibility reasons the URL is considered a poor choice as the display text for the link. Are you sure you want to continue?',' |
Select Cancel
|
Focus: Display Text |
| https://somewhere.org | empty or any text | Select OK
|
Confirm dialog with OK button; 'For accessibility reasons the URL is considered a poor choice as the display text for the link. Are you sure you want to continue?',' |
Select OK
|
Link is inserted in document |