mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Add ouiaId props to button and alert components
This commit is contained in:
parent
7662a67a65
commit
1c2605be8e
@ -86,6 +86,7 @@ function ActivityStreamDetail({ i18n }) {
|
||||
<Button
|
||||
aria-label={i18n._(t`Edit`)}
|
||||
component={Link}
|
||||
ouiaId="edit-button"
|
||||
to="/settings/activity_stream/edit"
|
||||
>
|
||||
{i18n._(t`Edit`)}
|
||||
|
||||
@ -78,6 +78,7 @@ function AzureADDetail({ i18n }) {
|
||||
<Button
|
||||
aria-label={i18n._(t`Edit`)}
|
||||
component={Link}
|
||||
ouiaId="edit-button"
|
||||
to="/settings/azure/edit"
|
||||
>
|
||||
{i18n._(t`Edit`)}
|
||||
|
||||
@ -114,6 +114,7 @@ function GitHubDetail({ i18n }) {
|
||||
<Button
|
||||
aria-label={i18n._(t`Edit`)}
|
||||
component={Link}
|
||||
ouiaId="edit-button"
|
||||
to={`${baseURL}/${category}/edit`}
|
||||
>
|
||||
{i18n._(t`Edit`)}
|
||||
|
||||
@ -78,6 +78,7 @@ function GoogleOAuth2Detail({ i18n }) {
|
||||
<Button
|
||||
aria-label={i18n._(t`Edit`)}
|
||||
component={Link}
|
||||
ouiaId="edit-button"
|
||||
to="/settings/google_oauth2/edit"
|
||||
>
|
||||
{i18n._(t`Edit`)}
|
||||
|
||||
@ -95,6 +95,7 @@ function JobsDetail({ i18n }) {
|
||||
<Button
|
||||
aria-label={i18n._(t`Edit`)}
|
||||
component={Link}
|
||||
ouiaId="edit-button"
|
||||
to="/settings/jobs/edit"
|
||||
>
|
||||
{i18n._(t`Edit`)}
|
||||
|
||||
@ -159,6 +159,7 @@ function LDAPDetail({ i18n }) {
|
||||
<Button
|
||||
aria-label={i18n._(t`Edit`)}
|
||||
component={Link}
|
||||
ouiaId="edit-button"
|
||||
to={`${baseURL}/${category}/edit`}
|
||||
>
|
||||
{i18n._(t`Edit`)}
|
||||
|
||||
@ -13,6 +13,7 @@ function LicenseDetail({ i18n }) {
|
||||
<Button
|
||||
aria-label={i18n._(t`Edit`)}
|
||||
component={Link}
|
||||
ouiaId="edit-button"
|
||||
to="/settings/license/edit"
|
||||
>
|
||||
{i18n._(t`Edit`)}
|
||||
|
||||
@ -99,6 +99,7 @@ function LoggingDetail({ i18n }) {
|
||||
<Button
|
||||
aria-label={i18n._(t`Edit`)}
|
||||
component={Link}
|
||||
ouiaId="edit-button"
|
||||
to="/settings/logging/edit"
|
||||
>
|
||||
{i18n._(t`Edit`)}
|
||||
|
||||
@ -246,6 +246,7 @@ function LoggingEdit({ i18n }) {
|
||||
<div>
|
||||
<Button
|
||||
aria-label={i18n._(t`Test logging`)}
|
||||
ouiaId="test-logging-button"
|
||||
variant="secondary"
|
||||
type="button"
|
||||
onClick={handleTest}
|
||||
|
||||
@ -140,6 +140,7 @@ function MiscSystemDetail({ i18n }) {
|
||||
<Button
|
||||
aria-label={i18n._(t`Edit`)}
|
||||
component={Link}
|
||||
ouiaId="edit-button"
|
||||
to="/settings/miscellaneous_system/edit"
|
||||
>
|
||||
{i18n._(t`Edit`)}
|
||||
|
||||
@ -78,6 +78,7 @@ function RADIUSDetail({ i18n }) {
|
||||
<Button
|
||||
aria-label={i18n._(t`Edit`)}
|
||||
component={Link}
|
||||
ouiaId="edit-button"
|
||||
to="/settings/radius/edit"
|
||||
>
|
||||
{i18n._(t`Edit`)}
|
||||
|
||||
@ -78,6 +78,7 @@ function SAMLDetail({ i18n }) {
|
||||
<Button
|
||||
aria-label={i18n._(t`Edit`)}
|
||||
component={Link}
|
||||
ouiaId="edit-button"
|
||||
to="/settings/saml/edit"
|
||||
>
|
||||
{i18n._(t`Edit`)}
|
||||
|
||||
@ -79,6 +79,7 @@ function TACACSDetail({ i18n }) {
|
||||
aria-label={i18n._(t`Edit`)}
|
||||
component={Link}
|
||||
to="/settings/tacacs/edit"
|
||||
ouiaId="edit-button"
|
||||
>
|
||||
{i18n._(t`Edit`)}
|
||||
</Button>
|
||||
|
||||
@ -94,6 +94,7 @@ function UIDetail({ i18n }) {
|
||||
aria-label={i18n._(t`Edit`)}
|
||||
component={Link}
|
||||
to="/settings/ui/edit"
|
||||
ouiaId="edit-button"
|
||||
>
|
||||
{i18n._(t`Edit`)}
|
||||
</Button>
|
||||
|
||||
@ -33,6 +33,7 @@ function LoggingTestAlert({ i18n, successResponse, errorResponse, onClose }) {
|
||||
{testMessage && (
|
||||
<Alert
|
||||
actionClose={<AlertActionCloseButton onClose={onClose} />}
|
||||
ouiaId="logging-test-alert"
|
||||
title={successResponse ? i18n._(t`Success`) : i18n._(t`Error`)}
|
||||
variant={successResponse ? 'success' : 'danger'}
|
||||
>
|
||||
|
||||
@ -11,12 +11,14 @@ function RevertAllAlert({ i18n, onClose, onRevertAll }) {
|
||||
title={i18n._(t`Revert settings`)}
|
||||
variant="info"
|
||||
onClose={onClose}
|
||||
ouiaId="revert-all-modal"
|
||||
actions={[
|
||||
<Button
|
||||
key="revert"
|
||||
variant="primary"
|
||||
aria-label={i18n._(t`Confirm revert all`)}
|
||||
onClick={onRevertAll}
|
||||
ouiaId="confirm-revert-all-button"
|
||||
>
|
||||
{i18n._(t`Revert all`)}
|
||||
</Button>,
|
||||
@ -25,6 +27,7 @@ function RevertAllAlert({ i18n, onClose, onRevertAll }) {
|
||||
variant="secondary"
|
||||
aria-label={i18n._(t`Cancel revert`)}
|
||||
onClick={onClose}
|
||||
ouiaId="cancel-revert-all-button"
|
||||
>
|
||||
{i18n._(t`Cancel`)}
|
||||
</Button>,
|
||||
|
||||
@ -20,6 +20,7 @@ const RevertFormActionGroup = ({
|
||||
variant="primary"
|
||||
type="button"
|
||||
onClick={onSubmit}
|
||||
ouiaId="save-button"
|
||||
>
|
||||
{i18n._(t`Save`)}
|
||||
</Button>
|
||||
@ -28,6 +29,7 @@ const RevertFormActionGroup = ({
|
||||
variant="secondary"
|
||||
type="button"
|
||||
onClick={onRevert}
|
||||
ouiaId="revert-all-button"
|
||||
>
|
||||
{i18n._(t`Revert all to default`)}
|
||||
</Button>
|
||||
@ -37,6 +39,7 @@ const RevertFormActionGroup = ({
|
||||
variant="secondary"
|
||||
type="button"
|
||||
onClick={onCancel}
|
||||
ouiaId="cancel-button"
|
||||
>
|
||||
{i18n._(t`Cancel`)}
|
||||
</Button>
|
||||
|
||||
@ -90,6 +90,7 @@ const BooleanField = withI18n()(
|
||||
labelOff={i18n._(t`Off`)}
|
||||
onChange={checked => helpers.setValue(checked)}
|
||||
aria-label={ariaLabel || config.label}
|
||||
ouiaId={ariaLabel || config.label}
|
||||
/>
|
||||
</SettingGroup>
|
||||
) : null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user