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