diff --git a/awx/ui_next/src/components/NotificationsList/NotificationListItem.jsx b/awx/ui_next/src/components/NotificationsList/NotificationListItem.jsx index 75f7247569..43c51543d3 100644 --- a/awx/ui_next/src/components/NotificationsList/NotificationListItem.jsx +++ b/awx/ui_next/src/components/NotificationsList/NotificationListItem.jsx @@ -132,6 +132,7 @@ NotificationListItem.propTypes = { NotificationListItem.defaultProps = { errorTurnedOn: false, + startedTurnedOn: false, successTurnedOn: false, }; diff --git a/awx/ui_next/src/components/NotificationsList/__snapshots__/NotificationListItem.test.jsx.snap b/awx/ui_next/src/components/NotificationsList/__snapshots__/NotificationListItem.test.jsx.snap index f7b807c59a..ca70fe07bd 100644 --- a/awx/ui_next/src/components/NotificationsList/__snapshots__/NotificationListItem.test.jsx.snap +++ b/awx/ui_next/src/components/NotificationsList/__snapshots__/NotificationListItem.test.jsx.snap @@ -13,6 +13,7 @@ exports[` initially renders succe "notification_type": "slack", } } + startedTurnedOn={false} successTurnedOn={false} toggleNotification={[MockFunction]} typeLabels={ @@ -63,6 +64,7 @@ exports[` initially renders succe initially renders succe initially renders succe } forwardedRef={null} id="notification-9000-started-toggle" + isChecked={false} isDisabled={false} label="Start" labelOff="Start" @@ -330,6 +334,7 @@ exports[` initially renders succe aria-label="Toggle notification start" className="NotificationListItem__Switch-j7c411-1 ceuHGn" id="notification-9000-started-toggle" + isChecked={false} isDisabled={false} label="Start" labelOff="Start" @@ -342,7 +347,7 @@ exports[` initially renders succe "aria-label": "Toggle notification start", "className": "NotificationListItem__Switch-j7c411-1 ceuHGn", "id": "notification-9000-started-toggle", - "isChecked": undefined, + "isChecked": false, "isDisabled": false, "label": "Start", "labelOff": "Start", @@ -355,7 +360,7 @@ exports[` initially renders succe aria-label="Toggle notification start" className="NotificationListItem__Switch-j7c411-1 ceuHGn" id="notification-9000-started-toggle" - isChecked={true} + isChecked={false} isDisabled={false} label="Start" labelOff="Start" @@ -374,7 +379,7 @@ exports[` initially renders succe ( initially renders succesfully 1`] = ` "items": "items", "itemsPerPage": "Items per page", "optionsToggle": "Select", + "page": "page", "pages": "pages", "paginationTitle": "Pagination", "perPageSuffix": "per page", @@ -3838,6 +3839,7 @@ exports[` initially renders succesfully 1`] = ` "items": "items", "itemsPerPage": "Items per page", "optionsToggle": "Select", + "page": "page", "pages": "pages", "paginationTitle": "Pagination", "perPageSuffix": "per page", @@ -3883,6 +3885,7 @@ exports[` initially renders succesfully 1`] = ` "items": "items", "itemsPerPage": "Items per page", "optionsToggle": "Select", + "page": "page", "pages": "pages", "paginationTitle": "Pagination", "perPageSuffix": "per page", @@ -4548,7 +4551,7 @@ exports[` initially renders succesfully 1`] = ` onPreviousClick={[Function]} onSetPage={[Function]} page={1} - pagesTitle="" + pagesTitle="page" paginationTitle="Pagination" toFirstPage="Go to first page" toLastPage="Go to last page" @@ -4667,7 +4670,7 @@ exports[` initially renders succesfully 1`] = ` aria-hidden="true" > of - 1 + 1 page