|
1 | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
2 | 2 | // Licensed under the MIT License. |
| 3 | +import * as React from 'react'; |
| 4 | + |
3 | 5 | import { DefaultWidgetPropertyBag } from 'common/types/property-bag/default-widget'; |
4 | 6 | import { VisualizationType } from 'common/types/visualization-type'; |
5 | 7 | import { link } from 'content/link'; |
| 8 | +import { productName } from 'content/strings/application'; |
| 9 | +import { TestAutomaticallyPassedNotice } from 'content/test/common/test-automatically-passed-notice'; |
6 | 10 | import * as content from 'content/test/native-widgets/instructions'; |
7 | 11 | import { AssessmentVisualizationEnabledToggle } from 'DetailsView/components/assessment-visualization-enabled-toggle'; |
8 | 12 | import { ScannerUtils } from 'injected/scanner-utils'; |
9 | | -import * as React from 'react'; |
10 | | - |
11 | 13 | import { AnalyzerConfigurationFactory } from '../../common/analyzer-configuration-factory'; |
12 | 14 | import { AssistedTestRecordYourResults } from '../../common/assisted-test-record-your-results'; |
13 | | -import { InstructionsAndLabelsNotes } from '../../common/instructions-and-labels-note'; |
14 | 15 | import { NoValue, PropertyBagColumnRendererConfig } from '../../common/property-bag-column-renderer'; |
15 | 16 | import { PropertyBagColumnRendererFactory } from '../../common/property-bag-column-renderer-factory'; |
16 | 17 | import * as Markup from '../../markup'; |
17 | 18 | import { ReportInstanceField } from '../../types/report-instance-field'; |
18 | 19 | import { Requirement } from '../../types/requirement'; |
19 | 20 | import { NativeWidgetsTestStep } from './test-steps'; |
20 | 21 |
|
21 | | -const description: JSX.Element = ( |
22 | | - <span>If a native widget has a visible label or instructions, they must be programmatically related.</span> |
23 | | -); |
| 22 | +const description: JSX.Element = <span>If a native widget has visible instructions, they must be programmatically related to it.</span>; |
24 | 23 |
|
25 | 24 | const howToTest: JSX.Element = ( |
26 | 25 | <div> |
27 | 26 | <p> |
28 | | - The visual helper for this requirement highlights native widgets. Native widgets include |
| 27 | + For this requirement, {productName} highlights native widgets. Native widgets include |
29 | 28 | <Markup.NonBreakingSpace /> |
30 | | - <Markup.Tag tagName="button" isBold={false} />, |
| 29 | + <Markup.Tag tagName="button" isBold={true} />, |
31 | 30 | <Markup.NonBreakingSpace /> |
32 | | - <Markup.Tag tagName="input" isBold={false} />, |
| 31 | + <Markup.Tag tagName="input" isBold={true} />, |
33 | 32 | <Markup.NonBreakingSpace /> |
34 | | - <Markup.Tag tagName="select" isBold={false} />, and |
| 33 | + <Markup.Tag tagName="select" isBold={true} />, and |
35 | 34 | <Markup.NonBreakingSpace /> |
36 | | - <Markup.Tag tagName="textarea" isBold={false} /> elements. |
| 35 | + <Markup.Tag tagName="textarea" isBold={true} /> elements. |
37 | 36 | </p> |
38 | | - <InstructionsAndLabelsNotes /> |
| 37 | + <TestAutomaticallyPassedNotice /> |
39 | 38 | <ol> |
40 | | - <li>In the target page, examine each highlighted element to determine whether it has a visible label or instructions.</li> |
41 | 39 | <li> |
42 | | - Verify that all visible labels and instructions are displayed in the Instances list: |
43 | | - <ol> |
44 | | - <li>Any label should appear in the accessible name.</li> |
45 | | - <li>Any additional instructions should appear in the accessible description.</li> |
46 | | - </ol> |
| 40 | + For each widget, verify that any instructions visible in the target page are also visible in the |
| 41 | + <Markup.Term> Instances</Markup.Term> list. |
47 | 42 | </li> |
48 | 43 | <AssistedTestRecordYourResults /> |
49 | 44 | </ol> |
@@ -74,7 +69,7 @@ export const Instructions: Requirement = { |
74 | 69 | description, |
75 | 70 | howToTest, |
76 | 71 | isManual: false, |
77 | | - guidanceLinks: [link.WCAG_1_3_1, link.WCAG_2_5_3], |
| 72 | + guidanceLinks: [link.WCAG_1_3_1], |
78 | 73 | ...content, |
79 | 74 | columnsConfig: [ |
80 | 75 | { |
|
0 commit comments