diff --git a/packages/nux/src/components/dot-tip/test/__snapshots__/index.js.snap b/packages/nux/src/components/dot-tip/test/__snapshots__/index.js.snap index 29a743a5316de3..bfdb68b78cf578 100644 --- a/packages/nux/src/components/dot-tip/test/__snapshots__/index.js.snap +++ b/packages/nux/src/components/dot-tip/test/__snapshots__/index.js.snap @@ -5,7 +5,7 @@ exports[`DotTip should render correctly 1`] = ` aria-label="Editor tips" class="components-popover nux-dot-tip is-positioned" role="dialog" - style="position: absolute; top: 0px; left: 0px; opacity: 1; transform: none; transform-origin: 0% 50% 0;" + style="position: absolute; top: 0px; left: 0px; opacity: 0; transform: translateX(0px) translateY(0px) translateX(-2em) scale(0) translateZ(0); transform-origin: 0% 50% 0;" tabindex="-1" >
{ - beforeEach( () => { - jest.useFakeTimers(); - } ); - - afterEach( () => { - jest.useRealTimers(); - } ); - it( 'should not render anything if invisible', () => { render( @@ -43,9 +35,7 @@ describe( 'DotTip', () => { } ); it( 'should call onDismiss when the dismiss button is clicked', async () => { - const user = userEvent.setup( { - advanceTimers: jest.advanceTimersByTime, - } ); + const user = userEvent.setup(); const onDismiss = jest.fn(); render( @@ -64,9 +54,7 @@ describe( 'DotTip', () => { } ); it( 'should call onDisable when the X button is clicked', async () => { - const user = userEvent.setup( { - advanceTimers: jest.advanceTimersByTime, - } ); + const user = userEvent.setup(); const onDisable = jest.fn(); render(