From 00b3ff6e5113b780ba004282a73be95d552bd90d Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Mon, 20 Jul 2020 14:06:14 -0400 Subject: [PATCH] update snapshot and tooltip test --- .../ToolbarDeleteButton.test.jsx.snap | 196 +++++++----------- .../DeleteRoleConfirmationModal.test.jsx.snap | 41 +++- .../ResourceAccessListItem.test.jsx.snap | 7 +- .../JobOutput/shared/HostStatusBar.test.jsx | 2 +- 4 files changed, 113 insertions(+), 133 deletions(-) diff --git a/awx/ui_next/src/components/PaginatedDataList/__snapshots__/ToolbarDeleteButton.test.jsx.snap b/awx/ui_next/src/components/PaginatedDataList/__snapshots__/ToolbarDeleteButton.test.jsx.snap index e837c39658..1b146c628b 100644 --- a/awx/ui_next/src/components/PaginatedDataList/__snapshots__/ToolbarDeleteButton.test.jsx.snap +++ b/awx/ui_next/src/components/PaginatedDataList/__snapshots__/ToolbarDeleteButton.test.jsx.snap @@ -8,62 +8,13 @@ exports[` should render button 1`] = ` pluralizedItemName="Items" > - - - Select a row to delete - - - } - delay={ - Array [ - 500, - 500, - ] - } distance={15} - flip={true} + enableFlip={true} flipBehavior={ Array [ "top", @@ -76,83 +27,90 @@ exports[` should render button 1`] = ` ] } isVisible={false} - lazy={true} - maxWidth="18.75rem" - onCreate={[Function]} + onBlur={[Function]} + onDocumentClick={false} + onDocumentKeyDown={[Function]} + onFocus={[Function]} + onMouseEnter={[Function]} + onMouseLeave={[Function]} + onTriggerEnter={[Function]} placement="top" - popperOptions={ - Object { - "modifiers": Object { - "hide": Object { - "enabled": true, - }, - "preventOverflow": Object { - "enabled": true, - }, - }, - } - } - theme="pf-tooltip" - trigger="mouseenter focus" - zIndex={9999} - > -
- - -
- -
-
- Select a row to delete -
-
- - } - > + popper={
+ -
- Select a row to delete -
+ Select a row to delete
-
-
+ } + popperMatchesTriggerWidth={false} + positionModifiers={ + Object { + "bottom": "pf-m-bottom", + "left": "pf-m-left", + "right": "pf-m-right", + "top": "pf-m-top", + } + } + trigger={ +
+ +
+ } + zIndex={9999} + > + +
+ + +
+
+
`; diff --git a/awx/ui_next/src/components/ResourceAccessList/__snapshots__/DeleteRoleConfirmationModal.test.jsx.snap b/awx/ui_next/src/components/ResourceAccessList/__snapshots__/DeleteRoleConfirmationModal.test.jsx.snap index 130f418117..d010f43f4c 100644 --- a/awx/ui_next/src/components/ResourceAccessList/__snapshots__/DeleteRoleConfirmationModal.test.jsx.snap +++ b/awx/ui_next/src/components/ResourceAccessList/__snapshots__/DeleteRoleConfirmationModal.test.jsx.snap @@ -103,12 +103,17 @@ exports[` should render initially 1`] = ` aria-labelledby="pf-modal-part-0 alert-modal-header-label pf-modal-part-1" aria-modal="true" class="pf-c-modal-box pf-m-sm" + data-ouia-component-id="0" + data-ouia-component-type="PF4/ModalContent" + data-ouia-safe="true" id="pf-modal-part-0" role="dialog" >