Skip to content

Commit a900aa0

Browse files
author
Eric Olkowski
committed
Removed extraenous snapshot test
1 parent d3d88c5 commit a900aa0

File tree

2 files changed

+2
-74
lines changed

2 files changed

+2
-74
lines changed

packages/react-core/src/components/Tooltip/__tests__/Tooltip.test.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -201,18 +201,7 @@ test('Passes minWidth to Popper', async () => {
201201
expect(contentPassedToPopper).toBeVisible();
202202
});
203203

204-
test('Matches snapshot with Popper mock', async () => {
205-
render(
206-
<Tooltip id="custom-id" isVisible content="Test content">
207-
<button>Trigger</button>
208-
</Tooltip>
209-
);
210-
211-
await screen.findByRole('tooltip');
212-
expect(screen.getByTestId('mock-wrapper')).toMatchSnapshot();
213-
});
214-
215-
test('Matches snapshot with Tooltip only', async () => {
204+
test('Matches snapshot', async () => {
216205
render(
217206
<Tooltip id="custom-id" isVisible isContentLeftAligned content="Test content">
218207
<button>Trigger</button>

packages/react-core/src/components/Tooltip/__tests__/__snapshots__/Tooltip.test.tsx.snap

Lines changed: 1 addition & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`Matches snapshot with Popper mock 1`] = `
4-
<div
5-
data-testid="mock-wrapper"
6-
>
7-
<div
8-
data-testid="popper"
9-
>
10-
<div
11-
aria-live="off"
12-
class="pf-v5-c-tooltip"
13-
id="custom-id"
14-
role="tooltip"
15-
style="opacity: 1;"
16-
>
17-
<div
18-
class="pf-v5-c-tooltip__arrow"
19-
/>
20-
<div
21-
class="pf-v5-c-tooltip__content"
22-
>
23-
Test content
24-
</div>
25-
</div>
26-
</div>
27-
<p>
28-
zIndex: 9999
29-
</p>
30-
<p>
31-
isVisible: true
32-
</p>
33-
<p>
34-
enableFlip: true
35-
</p>
36-
<p>
37-
placement: top
38-
</p>
39-
<p>
40-
appendTo: () =&gt; {
41-
/* istanbul ignore next */
42-
cov_1bpyalqf4w().f[1]++;
43-
cov_1bpyalqf4w().s[2]++;
44-
return document.body;
45-
}
46-
</p>
47-
<p>
48-
distance: 15
49-
</p>
50-
<p>
51-
flipBehavior: top,right,bottom,left,top,right,bottom
52-
</p>
53-
<p>
54-
minWidth: revert
55-
</p>
56-
<button
57-
aria-describedby="custom-id"
58-
>
59-
Trigger
60-
</button>
61-
</div>
62-
`;
63-
64-
exports[`Matches snapshot with Tooltip only 1`] = `
3+
exports[`Matches snapshot 1`] = `
654
<div
665
aria-live="off"
676
class="pf-v5-c-tooltip"

0 commit comments

Comments
 (0)