File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ export default function InternalAvatar({
106106 >
107107 { showTooltip && tooltipText && (
108108 < Tooltip
109+ className = { styles . tooltip }
109110 value = { tooltipText }
110111 trackRef = { handleRef }
111112 // This is added to ensure tooltip is closed when clicked for consistency with other tooltip usages
Original file line number Diff line number Diff line change 7676 );
7777 }
7878}
79+
80+ .tooltip {
81+ /* used in test-utils */
82+ }
Original file line number Diff line number Diff line change 11// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22// SPDX-License-Identifier: Apache-2.0
3- import TooltipWrapper from "@cloudscape-design/components/test-utils/dom/internal/tooltip" ;
4- import { ComponentWrapper } from "@cloudscape-design/test-utils-core/dom" ;
3+ import { ComponentWrapper , ElementWrapper } from "@cloudscape-design/test-utils-core/dom" ;
54
65import createWrapper from ".." ;
76
@@ -10,7 +9,7 @@ import avatarStyles from "../../../avatar/styles.selectors.js";
109export default class AvatarWrapper extends ComponentWrapper {
1110 static rootSelector : string = avatarStyles . root ;
1211
13- findTooltip ( ) : TooltipWrapper | null {
14- return createWrapper ( ) . findComponent ( `.${ TooltipWrapper . rootSelector } ` , TooltipWrapper ) ;
12+ findTooltip ( ) : ElementWrapper | null {
13+ return createWrapper ( ) . find ( `.${ avatarStyles . tooltip } ` ) ;
1514 }
1615}
You can’t perform that action at this time.
0 commit comments