test: 💍 a11y (#3302)
This commit is contained in:
1 parent
35377e8466
commit
9aea1a8fd8
13 files changed
+25
-11
No files matched your search
@@ -95,6 +95,7 @@
|
||||
<:row as |R|>
|
||||
<R.Field as |F|>
|
||||
<F.Textarea
|
||||
aria-label={{t 'resources.auth-method.form.certificates.label'}}
|
||||
data-test-value-input
|
||||
@value={{R.rowData.value}}
|
||||
{{on 'input' (fn R.updateRow 'value')}}
|
||||
|
||||
@@ -159,6 +159,7 @@
|
||||
<:row as |R|>
|
||||
<R.Field as |F|>
|
||||
<F.Select
|
||||
aria-label={{t 'form.signing_algorithms.label'}}
|
||||
data-test-value-select
|
||||
{{on 'change' (fn R.updateRow 'value')}}
|
||||
>
|
||||
@@ -195,6 +196,7 @@
|
||||
<:row as |R|>
|
||||
<R.Field as |F|>
|
||||
<F.TextInput
|
||||
aria-label={{t 'form.allowed_audiences.label'}}
|
||||
data-test-value-input
|
||||
@value={{R.rowData.value}}
|
||||
{{on 'input' (fn R.updateRow 'value')}}
|
||||
@@ -220,6 +222,7 @@
|
||||
<:row as |R|>
|
||||
<R.Field as |F|>
|
||||
<F.TextInput
|
||||
aria-label={{t 'form.claims_scopes.label'}}
|
||||
data-test-value-input
|
||||
@value={{R.rowData.value}}
|
||||
{{on 'input' (fn R.updateRow 'value')}}
|
||||
@@ -289,6 +292,7 @@
|
||||
<:row as |R|>
|
||||
<R.Field as |F|>
|
||||
<F.Textarea
|
||||
aria-label={{t 'form.idp_ca_certs.label'}}
|
||||
data-test-value-input
|
||||
@value={{R.rowData.value}}
|
||||
{{on 'input' (fn R.updateRow 'value')}}
|
||||
|
||||
@@ -284,6 +284,7 @@
|
||||
>
|
||||
<:row as |R|>
|
||||
<R.Field as |F|>
|
||||
<F.Label>{{t 'form.key.label'}}</F.Label>
|
||||
<F.TextInput
|
||||
data-test-key-input
|
||||
@value={{R.rowData.key}}
|
||||
@@ -291,6 +292,7 @@
|
||||
/>
|
||||
</R.Field>
|
||||
<R.Field as |F|>
|
||||
<F.Label>{{t 'form.value.label'}}</F.Label>
|
||||
<F.TextInput
|
||||
data-test-value-input
|
||||
@value={{R.rowData.value}}
|
||||
|
||||
@@ -75,6 +75,7 @@
|
||||
<:row as |R|>
|
||||
<R.Field as |F|>
|
||||
<F.TextInput
|
||||
aria-label={{t 'resources.host-set.form.preferred_endpoints.label'}}
|
||||
data-test-value-input
|
||||
@value={{R.rowData.value}}
|
||||
{{on 'input' (fn R.updateRow 'value')}}
|
||||
@@ -99,6 +100,7 @@
|
||||
<:row as |R|>
|
||||
<R.Field as |F|>
|
||||
<F.TextInput
|
||||
aria-label={{t 'resources.host-set.form.filter.label'}}
|
||||
data-test-value-input
|
||||
@value={{R.rowData.value}}
|
||||
{{on 'input' (fn R.updateRow 'value')}}
|
||||
|
||||
@@ -75,6 +75,7 @@
|
||||
<:row as |R|>
|
||||
<R.Field as |F|>
|
||||
<F.TextInput
|
||||
aria-label={{t 'resources.host-set.form.preferred_endpoints.label'}}
|
||||
data-test-value-input
|
||||
@value={{R.rowData.value}}
|
||||
{{on 'input' (fn R.updateRow 'value')}}
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
<:row as |R|>
|
||||
<R.Field as |F|>
|
||||
<F.TextInput
|
||||
aria-label={{t 'resources.host-set.form.preferred_endpoints.label'}}
|
||||
data-test-value-input
|
||||
@value={{R.rowData.value}}
|
||||
{{on 'input' (fn R.updateRow 'value')}}
|
||||
@@ -98,6 +99,7 @@
|
||||
<:row as |R|>
|
||||
<R.Field as |F|>
|
||||
<F.TextInput
|
||||
aria-label={{t 'resources.host-set.form.filter.label'}}
|
||||
data-test-value-input
|
||||
@value={{R.rowData.value}}
|
||||
{{on 'input' (fn R.updateRow 'value')}}
|
||||
|
||||
@@ -430,6 +430,7 @@
|
||||
>
|
||||
<:row as |R|>
|
||||
<R.Field as |F|>
|
||||
<F.Label>{{t 'form.key.label'}}</F.Label>
|
||||
<F.TextInput
|
||||
data-test-key-input
|
||||
@value={{R.rowData.key}}
|
||||
@@ -437,6 +438,7 @@
|
||||
/>
|
||||
</R.Field>
|
||||
<R.Field as |F|>
|
||||
<F.Label>{{t 'form.value.label'}}</F.Label>
|
||||
<F.TextInput
|
||||
data-test-value-input
|
||||
@value={{R.rowData.value}}
|
||||
|
||||
@@ -257,6 +257,7 @@
|
||||
<:row as |R|>
|
||||
<R.Field as |F|>
|
||||
<F.TextInput
|
||||
aria-label={{t 'resources.alias.form.alias.label'}}
|
||||
data-test-value-input
|
||||
@value={{R.rowData.value}}
|
||||
{{on 'input' (fn R.updateRow 'value')}}
|
||||
|
||||
@@ -92,6 +92,7 @@
|
||||
>
|
||||
<:row as |R|>
|
||||
<R.Field as |F|>
|
||||
<F.Label>{{t 'form.key.label'}}</F.Label>
|
||||
<F.TextInput
|
||||
data-test-key-input
|
||||
@value={{R.rowData.key}}
|
||||
@@ -100,6 +101,7 @@
|
||||
</R.Field>
|
||||
|
||||
<R.Field as |F|>
|
||||
<F.Label>{{t 'form.value.label'}}</F.Label>
|
||||
<F.TextInput
|
||||
data-test-value-input
|
||||
@value={{R.rowData.value}}
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
|
||||
import Route from '@ember/routing/route';
|
||||
import { service } from '@ember/service';
|
||||
import { TYPE_HOST_CATALOG_PLUGIN_AWS } from 'api/models/host-catalog';
|
||||
|
||||
export default class ScopesScopeHostCatalogsNewRoute extends Route {
|
||||
// =services
|
||||
@@ -61,11 +60,6 @@ export default class ScopesScopeHostCatalogsNewRoute extends Route {
|
||||
disable_credential_rotation,
|
||||
});
|
||||
|
||||
if (compositeType === TYPE_HOST_CATALOG_PLUGIN_AWS) {
|
||||
// Ensure one editable role_tags row exists for dynamic credentials.
|
||||
record.role_tags = [{ key: '', value: '' }];
|
||||
}
|
||||
|
||||
record.scopeModel = scopeModel;
|
||||
return record;
|
||||
}
|
||||
|
||||
@@ -53,8 +53,7 @@ export default class ScopesScopeStorageBucketsNewRoute extends Route {
|
||||
bucket_name,
|
||||
bucket_prefix,
|
||||
region,
|
||||
worker_filter,
|
||||
role_tags;
|
||||
worker_filter;
|
||||
|
||||
if (this.currentModel?.isNew) {
|
||||
({
|
||||
@@ -65,7 +64,6 @@ export default class ScopesScopeStorageBucketsNewRoute extends Route {
|
||||
bucket_prefix,
|
||||
region,
|
||||
worker_filter,
|
||||
role_tags,
|
||||
} = this.currentModel);
|
||||
this.currentModel.rollbackAttributes();
|
||||
}
|
||||
@@ -80,7 +78,6 @@ export default class ScopesScopeStorageBucketsNewRoute extends Route {
|
||||
bucket_prefix,
|
||||
region,
|
||||
worker_filter,
|
||||
role_tags: role_tags || [{ key: '', value: '' }],
|
||||
});
|
||||
return record;
|
||||
}
|
||||
|
||||
@@ -80,6 +80,9 @@ module('Acceptance | auth-methods | oidc', function (hooks) {
|
||||
id: instances.authMethod.id,
|
||||
});
|
||||
|
||||
// Re-open dropdown to check the selected state
|
||||
await click(selectors.CHANGE_STATE_DROPDOWN);
|
||||
|
||||
assert
|
||||
.dom(selectors.CHANGE_STATE_DROPDOWN_CHECKED)
|
||||
.hasValue(instances.authMethod.attributes.state);
|
||||
@@ -98,6 +101,9 @@ module('Acceptance | auth-methods | oidc', function (hooks) {
|
||||
id: instances.authMethod.id,
|
||||
});
|
||||
|
||||
// Re-open dropdown to check the selected state
|
||||
await click(selectors.CHANGE_STATE_DROPDOWN);
|
||||
|
||||
assert
|
||||
.dom(selectors.CHANGE_STATE_DROPDOWN_CHECKED)
|
||||
.hasValue(instances.authMethod.attributes.state);
|
||||
|
||||
Reference in new issue
Block a user