mirror of https://github.com/grafana/grafana
Azure Monitor: Fastpass Fixes -- Add trap focus for modals in grafana/ui and other small a11y fixes for Azure Monitor. (#41449)
parent
24d4c8a9d1
commit
fc8d93e231
@ -1,626 +0,0 @@ |
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP |
||||
|
||||
exports[`Render should disable azure monitor secret input 1`] = ` |
||||
<div |
||||
className="gf-form-group" |
||||
> |
||||
<div |
||||
className="gf-form-inline" |
||||
> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<FormLabel |
||||
className="width-12" |
||||
tooltip="Choose an Azure Cloud" |
||||
> |
||||
Azure Cloud |
||||
</FormLabel> |
||||
<Select |
||||
allowCustomValue={false} |
||||
autoFocus={false} |
||||
backspaceRemovesValue={true} |
||||
className="width-15" |
||||
components={ |
||||
Object { |
||||
"Group": [Function], |
||||
"IndicatorsContainer": [Function], |
||||
"MenuList": [Function], |
||||
"Option": [Function], |
||||
"SingleValue": [Function], |
||||
} |
||||
} |
||||
isClearable={false} |
||||
isDisabled={false} |
||||
isLoading={false} |
||||
isMulti={false} |
||||
isSearchable={true} |
||||
maxMenuHeight={300} |
||||
menuShouldPortal={true} |
||||
onChange={[Function]} |
||||
openMenuOnFocus={false} |
||||
options={ |
||||
Array [ |
||||
Object { |
||||
"label": "Azure", |
||||
"value": "azuremonitor", |
||||
}, |
||||
Object { |
||||
"label": "Azure US Government", |
||||
"value": "govazuremonitor", |
||||
}, |
||||
Object { |
||||
"label": "Azure Germany", |
||||
"value": "germanyazuremonitor", |
||||
}, |
||||
Object { |
||||
"label": "Azure China", |
||||
"value": "chinaazuremonitor", |
||||
}, |
||||
] |
||||
} |
||||
tabSelectsValue={true} |
||||
value={ |
||||
Object { |
||||
"label": "Azure", |
||||
"value": "azuremonitor", |
||||
} |
||||
} |
||||
/> |
||||
</div> |
||||
</div> |
||||
<div |
||||
className="gf-form-inline" |
||||
> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<FormLabel |
||||
className="width-12" |
||||
> |
||||
Directory (tenant) ID |
||||
</FormLabel> |
||||
<div |
||||
className="width-15" |
||||
> |
||||
<Input |
||||
className="width-30" |
||||
onChange={[Function]} |
||||
placeholder="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" |
||||
value="e7f3f661-a933-3h3f-0294-31c4f962ec48" |
||||
/> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div |
||||
className="gf-form-inline" |
||||
> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<FormLabel |
||||
className="width-12" |
||||
> |
||||
Application (client) ID |
||||
</FormLabel> |
||||
<div |
||||
className="width-15" |
||||
> |
||||
<Input |
||||
className="width-30" |
||||
onChange={[Function]} |
||||
placeholder="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" |
||||
value="34509fad-c0r9-45df-9e25-f1ee34af6900" |
||||
/> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div |
||||
className="gf-form-inline" |
||||
> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<FormLabel |
||||
className="width-12" |
||||
> |
||||
Client Secret |
||||
</FormLabel> |
||||
<Input |
||||
className="width-25" |
||||
disabled={true} |
||||
placeholder="configured" |
||||
/> |
||||
</div> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<div |
||||
className="max-width-30 gf-form-inline" |
||||
> |
||||
<Button |
||||
onClick={[Function]} |
||||
type="button" |
||||
variant="secondary" |
||||
> |
||||
reset |
||||
</Button> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div |
||||
className="gf-form-inline" |
||||
> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<FormLabel |
||||
className="width-12" |
||||
> |
||||
Default Subscription |
||||
</FormLabel> |
||||
<div |
||||
className="width-30" |
||||
> |
||||
<Select |
||||
allowCustomValue={false} |
||||
autoFocus={false} |
||||
backspaceRemovesValue={true} |
||||
className="" |
||||
components={ |
||||
Object { |
||||
"Group": [Function], |
||||
"IndicatorsContainer": [Function], |
||||
"MenuList": [Function], |
||||
"Option": [Function], |
||||
"SingleValue": [Function], |
||||
} |
||||
} |
||||
isClearable={false} |
||||
isDisabled={false} |
||||
isLoading={false} |
||||
isMulti={false} |
||||
isSearchable={true} |
||||
maxMenuHeight={300} |
||||
menuShouldPortal={true} |
||||
onChange={[Function]} |
||||
openMenuOnFocus={false} |
||||
options={Array []} |
||||
tabSelectsValue={true} |
||||
/> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div |
||||
className="gf-form-inline" |
||||
> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<div |
||||
className="max-width-30 gf-form-inline" |
||||
> |
||||
<Button |
||||
disabled={false} |
||||
onClick={[Function]} |
||||
size="sm" |
||||
type="button" |
||||
variant="secondary" |
||||
> |
||||
Load Subscriptions |
||||
</Button> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
`; |
||||
|
||||
exports[`Render should enable azure monitor load subscriptions button 1`] = ` |
||||
<div |
||||
className="gf-form-group" |
||||
> |
||||
<div |
||||
className="gf-form-inline" |
||||
> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<FormLabel |
||||
className="width-12" |
||||
tooltip="Choose an Azure Cloud" |
||||
> |
||||
Azure Cloud |
||||
</FormLabel> |
||||
<Select |
||||
allowCustomValue={false} |
||||
autoFocus={false} |
||||
backspaceRemovesValue={true} |
||||
className="width-15" |
||||
components={ |
||||
Object { |
||||
"Group": [Function], |
||||
"IndicatorsContainer": [Function], |
||||
"MenuList": [Function], |
||||
"Option": [Function], |
||||
"SingleValue": [Function], |
||||
} |
||||
} |
||||
isClearable={false} |
||||
isDisabled={false} |
||||
isLoading={false} |
||||
isMulti={false} |
||||
isSearchable={true} |
||||
maxMenuHeight={300} |
||||
menuShouldPortal={true} |
||||
onChange={[Function]} |
||||
openMenuOnFocus={false} |
||||
options={ |
||||
Array [ |
||||
Object { |
||||
"label": "Azure", |
||||
"value": "azuremonitor", |
||||
}, |
||||
Object { |
||||
"label": "Azure US Government", |
||||
"value": "govazuremonitor", |
||||
}, |
||||
Object { |
||||
"label": "Azure Germany", |
||||
"value": "germanyazuremonitor", |
||||
}, |
||||
Object { |
||||
"label": "Azure China", |
||||
"value": "chinaazuremonitor", |
||||
}, |
||||
] |
||||
} |
||||
tabSelectsValue={true} |
||||
value={ |
||||
Object { |
||||
"label": "Azure", |
||||
"value": "azuremonitor", |
||||
} |
||||
} |
||||
/> |
||||
</div> |
||||
</div> |
||||
<div |
||||
className="gf-form-inline" |
||||
> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<FormLabel |
||||
className="width-12" |
||||
> |
||||
Directory (tenant) ID |
||||
</FormLabel> |
||||
<div |
||||
className="width-15" |
||||
> |
||||
<Input |
||||
className="width-30" |
||||
onChange={[Function]} |
||||
placeholder="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" |
||||
value="e7f3f661-a933-3h3f-0294-31c4f962ec48" |
||||
/> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div |
||||
className="gf-form-inline" |
||||
> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<FormLabel |
||||
className="width-12" |
||||
> |
||||
Application (client) ID |
||||
</FormLabel> |
||||
<div |
||||
className="width-15" |
||||
> |
||||
<Input |
||||
className="width-30" |
||||
onChange={[Function]} |
||||
placeholder="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" |
||||
value="34509fad-c0r9-45df-9e25-f1ee34af6900" |
||||
/> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div |
||||
className="gf-form-inline" |
||||
> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<FormLabel |
||||
className="width-12" |
||||
> |
||||
Client Secret |
||||
</FormLabel> |
||||
<div |
||||
className="width-15" |
||||
> |
||||
<Input |
||||
className="width-30" |
||||
onChange={[Function]} |
||||
placeholder="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" |
||||
value="e7f3f661-a933-4b3f-8176-51c4f982ec48" |
||||
/> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div |
||||
className="gf-form-inline" |
||||
> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<FormLabel |
||||
className="width-12" |
||||
> |
||||
Default Subscription |
||||
</FormLabel> |
||||
<div |
||||
className="width-30" |
||||
> |
||||
<Select |
||||
allowCustomValue={false} |
||||
autoFocus={false} |
||||
backspaceRemovesValue={true} |
||||
className="" |
||||
components={ |
||||
Object { |
||||
"Group": [Function], |
||||
"IndicatorsContainer": [Function], |
||||
"MenuList": [Function], |
||||
"Option": [Function], |
||||
"SingleValue": [Function], |
||||
} |
||||
} |
||||
isClearable={false} |
||||
isDisabled={false} |
||||
isLoading={false} |
||||
isMulti={false} |
||||
isSearchable={true} |
||||
maxMenuHeight={300} |
||||
menuShouldPortal={true} |
||||
onChange={[Function]} |
||||
openMenuOnFocus={false} |
||||
options={Array []} |
||||
tabSelectsValue={true} |
||||
/> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div |
||||
className="gf-form-inline" |
||||
> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<div |
||||
className="max-width-30 gf-form-inline" |
||||
> |
||||
<Button |
||||
disabled={false} |
||||
onClick={[Function]} |
||||
size="sm" |
||||
type="button" |
||||
variant="secondary" |
||||
> |
||||
Load Subscriptions |
||||
</Button> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
`; |
||||
|
||||
exports[`Render should render component 1`] = ` |
||||
<div |
||||
className="gf-form-group" |
||||
> |
||||
<div |
||||
className="gf-form-inline" |
||||
> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<FormLabel |
||||
className="width-12" |
||||
tooltip="Choose an Azure Cloud" |
||||
> |
||||
Azure Cloud |
||||
</FormLabel> |
||||
<Select |
||||
allowCustomValue={false} |
||||
autoFocus={false} |
||||
backspaceRemovesValue={true} |
||||
className="width-15" |
||||
components={ |
||||
Object { |
||||
"Group": [Function], |
||||
"IndicatorsContainer": [Function], |
||||
"MenuList": [Function], |
||||
"Option": [Function], |
||||
"SingleValue": [Function], |
||||
} |
||||
} |
||||
isClearable={false} |
||||
isDisabled={false} |
||||
isLoading={false} |
||||
isMulti={false} |
||||
isSearchable={true} |
||||
maxMenuHeight={300} |
||||
menuShouldPortal={true} |
||||
onChange={[Function]} |
||||
openMenuOnFocus={false} |
||||
options={ |
||||
Array [ |
||||
Object { |
||||
"label": "Azure", |
||||
"value": "azuremonitor", |
||||
}, |
||||
Object { |
||||
"label": "Azure US Government", |
||||
"value": "govazuremonitor", |
||||
}, |
||||
Object { |
||||
"label": "Azure Germany", |
||||
"value": "germanyazuremonitor", |
||||
}, |
||||
Object { |
||||
"label": "Azure China", |
||||
"value": "chinaazuremonitor", |
||||
}, |
||||
] |
||||
} |
||||
tabSelectsValue={true} |
||||
value={ |
||||
Object { |
||||
"label": "Azure", |
||||
"value": "azuremonitor", |
||||
} |
||||
} |
||||
/> |
||||
</div> |
||||
</div> |
||||
<div |
||||
className="gf-form-inline" |
||||
> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<FormLabel |
||||
className="width-12" |
||||
> |
||||
Directory (tenant) ID |
||||
</FormLabel> |
||||
<div |
||||
className="width-15" |
||||
> |
||||
<Input |
||||
className="width-30" |
||||
onChange={[Function]} |
||||
placeholder="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" |
||||
value="e7f3f661-a933-3h3f-0294-31c4f962ec48" |
||||
/> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div |
||||
className="gf-form-inline" |
||||
> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<FormLabel |
||||
className="width-12" |
||||
> |
||||
Application (client) ID |
||||
</FormLabel> |
||||
<div |
||||
className="width-15" |
||||
> |
||||
<Input |
||||
className="width-30" |
||||
onChange={[Function]} |
||||
placeholder="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" |
||||
value="34509fad-c0r9-45df-9e25-f1ee34af6900" |
||||
/> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div |
||||
className="gf-form-inline" |
||||
> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<FormLabel |
||||
className="width-12" |
||||
> |
||||
Client Secret |
||||
</FormLabel> |
||||
<div |
||||
className="width-15" |
||||
> |
||||
<Input |
||||
className="width-30" |
||||
onChange={[Function]} |
||||
placeholder="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" |
||||
value="" |
||||
/> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div |
||||
className="gf-form-inline" |
||||
> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<FormLabel |
||||
className="width-12" |
||||
> |
||||
Default Subscription |
||||
</FormLabel> |
||||
<div |
||||
className="width-30" |
||||
> |
||||
<Select |
||||
allowCustomValue={false} |
||||
autoFocus={false} |
||||
backspaceRemovesValue={true} |
||||
className="" |
||||
components={ |
||||
Object { |
||||
"Group": [Function], |
||||
"IndicatorsContainer": [Function], |
||||
"MenuList": [Function], |
||||
"Option": [Function], |
||||
"SingleValue": [Function], |
||||
} |
||||
} |
||||
isClearable={false} |
||||
isDisabled={false} |
||||
isLoading={false} |
||||
isMulti={false} |
||||
isSearchable={true} |
||||
maxMenuHeight={300} |
||||
menuShouldPortal={true} |
||||
onChange={[Function]} |
||||
openMenuOnFocus={false} |
||||
options={Array []} |
||||
tabSelectsValue={true} |
||||
/> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div |
||||
className="gf-form-inline" |
||||
> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<div |
||||
className="max-width-30 gf-form-inline" |
||||
> |
||||
<Button |
||||
disabled={true} |
||||
onClick={[Function]} |
||||
size="sm" |
||||
type="button" |
||||
variant="secondary" |
||||
> |
||||
Load Subscriptions |
||||
</Button> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
`; |
Loading…
Reference in new issue