Skip to content

Commit 66b5dc9

Browse files
committed
test: remove toMatchSnapshot and removed snapshot files in swaps tests
1 parent 9355fcc commit 66b5dc9

24 files changed

Lines changed: 237 additions & 11555 deletions

app/components/UI/Bridge/components/ApprovalText/ApprovalTooltip.test.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,13 @@ describe('ApprovalTooltip', () => {
6565
});
6666

6767
it('renders correctly with given props', () => {
68-
const { toJSON } = renderScreen(() => <ApprovalText {...defaultProps} />, {
69-
name: Routes.BRIDGE.ROOT,
70-
});
71-
expect(toJSON()).toMatchSnapshot();
68+
const { getByRole } = renderScreen(
69+
() => <ApprovalText {...defaultProps} />,
70+
{
71+
name: Routes.BRIDGE.ROOT,
72+
},
73+
);
74+
expect(getByRole('button')).toBeOnTheScreen();
7275
});
7376

7477
it('displays info button with correct accessibility properties', () => {

app/components/UI/Bridge/components/ApprovalText/__snapshots__/ApprovalTooltip.test.tsx.snap

Lines changed: 0 additions & 381 deletions
This file was deleted.

0 commit comments

Comments
 (0)