Skip to content

Commit

Permalink
Fix snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
rivka-ungar committed Jun 6, 2024
1 parent 6aee43e commit 71adb12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ describe("Snapshot tests", () => {
describe("Tipseen content tests", () => {
it("renders correctly without props", async () => {
const { asFragment } = render(<TipseenContent />);
await waitFor(() => {
expect(asFragment()).toBeTruthy();
});
expect(asFragment()).toMatchSnapshot();
});
it("renders correctly with dismiss", () => {
Expand Down Expand Up @@ -72,9 +69,6 @@ describe("Snapshot tests", () => {
{tipseenMockChildren}
</Tipseen>
);
await waitFor(() => {
expect(asFragment()).toBeTruthy();
});
expect(asFragment()).toMatchSnapshot();
});
it("renders correctly without close - deprecated version", async () => {
Expand Down Expand Up @@ -104,7 +98,6 @@ describe("Snapshot tests", () => {
await waitFor(() => {
expect(container.firstChild).toBeTruthy();
});

expect(container.firstChild).toMatchSnapshot();
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ exports[`Snapshot tests Tipseen tests renders correctly without close 1`] = `
class="monday-style-dialog-content-wrapper contentWrapper"
data-popper-reference-hidden="false"
data-testid="tooltip"
style="position: absolute; left: 0px; top: 0px; transform: translate(0px, 4px);"
style="position: absolute; left: 0px; top: 0px;"
>
<div
class="contentComponent bottom edgeCenter hasTooltip"
Expand All @@ -315,7 +315,7 @@ exports[`Snapshot tests Tipseen tests renders correctly without close 1`] = `
<div
class="arrow arrow primary"
data-placement="bottom"
style="position: absolute; left: 0px; transform: translate(0px, 0px) rotate(45deg);"
style="position: absolute;"
/>
</div>
</span>
Expand Down

0 comments on commit 71adb12

Please sign in to comment.