diff --git a/.changeset/eighty-bees-breathe.md b/.changeset/eighty-bees-breathe.md new file mode 100644 index 00000000000..7b677fca056 --- /dev/null +++ b/.changeset/eighty-bees-breathe.md @@ -0,0 +1,5 @@ +--- +"@wso2is/features": patch +--- + +add componentId for audit logs diff --git a/features/admin-extensions-v1/components/audit-logs/audit-logs.tsx b/features/admin-extensions-v1/components/audit-logs/audit-logs.tsx index 632ee82584d..5e1c4a73a3c 100644 --- a/features/admin-extensions-v1/components/audit-logs/audit-logs.tsx +++ b/features/admin-extensions-v1/components/audit-logs/audit-logs.tsx @@ -21,7 +21,6 @@ import { EmptyPlaceholder, LinkButton, Message, PrimaryButton } from "@wso2is/react-components"; -import { getEmptyPlaceholderIllustrations } from "../../../admin-core-v1"; import React, { MutableRefObject, ReactElement, @@ -32,6 +31,7 @@ import React, { } from "react"; import { useTranslation } from "react-i18next"; import { Icon, Label } from "semantic-ui-react"; +import { getEmptyPlaceholderIllustrations } from "../../../admin-core-v1"; import InfiniteScrollContainer from "../logs/components/infinite-scroll-container"; import TimeRangeSelector from "../logs/components/time-range-selector"; import { LogsConstants } from "../logs/constants"; @@ -548,3 +548,13 @@ export const AuditLogsPage = (props: AuditPagePropsInterface) : ReactElement => ); }; + + +/** + * Default props for the component. + */ +AuditLogsPage.defaultProps = { + "data-componentid": "audit-logs" +}; + +export default AuditLogsPage; diff --git a/features/admin-extensions-v1/components/logs/components/infinite-scroll-container.tsx b/features/admin-extensions-v1/components/logs/components/infinite-scroll-container.tsx index 4078a4c5a73..de97ae5ca65 100644 --- a/features/admin-extensions-v1/components/logs/components/infinite-scroll-container.tsx +++ b/features/admin-extensions-v1/components/logs/components/infinite-scroll-container.tsx @@ -251,6 +251,7 @@ const InfiniteScrollContainer = (props: InfiniteScrollContainerPropsInterface): handleLogDataViewOpen(logObject) } > @@ -261,6 +262,7 @@ const InfiniteScrollContainer = (props: InfiniteScrollContainerPropsInterface): exportDataOfLog(logObject) } > @@ -327,7 +329,10 @@ const InfiniteScrollContainer = (props: InfiniteScrollContainerPropsInterface): ); const LogViewerToolbar: ReactElement = ( - + @@ -339,12 +344,14 @@ const InfiniteScrollContainer = (props: InfiniteScrollContainerPropsInterface): @@ -407,7 +415,10 @@ const InfiniteScrollContainer = (props: InfiniteScrollContainerPropsInterface): style={ { padding: "0px" } } >
- +
{ getDateFromTimestamp(log.recordedAt) } @@ -531,4 +542,12 @@ const InfiniteScrollContainer = (props: InfiniteScrollContainerPropsInterface): ); }; +/** + * Default props for the component. + */ +InfiniteScrollContainer.defaultProps = { + "data-componentid": "logs-container" +}; + + export default InfiniteScrollContainer;