Skip to content

Commit 359cb29

Browse files
wip
1 parent 7b02688 commit 359cb29

File tree

4 files changed

+11
-17
lines changed

4 files changed

+11
-17
lines changed

test/integration/confirmations/signatures/permit-batch.test.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ describe('Permit Batch Signature Tests', () => {
8888
"You're giving the spender permission to spend this many tokens from your account.",
8989
'Spending cap',
9090
'0xA0b86...6eB48',
91-
'Unlimited',
91+
'1,461,501,637,3...',
9292
'0xb0B86...6EB48',
93-
'Unlimited',
93+
'2,461,501,637,3...',
9494
];
9595

9696
verifyDetails(simulationSection, simulationDetails);

test/integration/confirmations/signatures/permit-single.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ describe('Permit Single Signature Tests', () => {
8686
"You're giving the spender permission to spend this many tokens from your account.",
8787
'Spending cap',
8888
'0xA0b86...6eB48',
89-
'Unlimited',
89+
'1,461,501,637,3...',
9090
];
9191

9292
expect(simulationSection).toBeInTheDocument();

ui/pages/confirmations/confirm/__snapshots__/confirm.test.tsx.snap

+3-3
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ exports[`Confirm should match snapshot for signature - typed sign - V4 - PermitB
486486
data-testid="simulation-token-value"
487487
style="padding-top: 1px; padding-bottom: 1px;"
488488
>
489-
Unlimited
489+
14,615,016,373,...
490490
</p>
491491
</div>
492492
</div>
@@ -539,7 +539,7 @@ exports[`Confirm should match snapshot for signature - typed sign - V4 - PermitB
539539
data-testid="simulation-token-value"
540540
style="padding-top: 1px; padding-bottom: 1px;"
541541
>
542-
Unlimited
542+
24,615,016,373,...
543543
</p>
544544
</div>
545545
</div>
@@ -1069,7 +1069,7 @@ exports[`Confirm should match snapshot for signature - typed sign - V4 - PermitS
10691069
data-testid="simulation-token-value"
10701070
style="padding-top: 1px; padding-bottom: 1px;"
10711071
>
1072-
Unlimited
1072+
14,615,016,373,...
10731073
</p>
10741074
</div>
10751075
</div>

ui/pages/confirmations/confirm/confirm.test.tsx

+5-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { act, waitFor } from '@testing-library/react';
1+
import { act } from '@testing-library/react';
22
import React from 'react';
33
import configureMockStore from 'redux-mock-store';
44
import thunk from 'redux-thunk';
@@ -153,11 +153,8 @@ describe('Confirm', () => {
153153
const { container, findAllByText } =
154154
await renderWithConfirmContextProvider(<Confirm />, mockStore);
155155

156-
await waitFor(async () => {
157-
const element = await findAllByText('Unlimited');
158-
expect(element[0]).toBeInTheDocument();
159-
});
160-
156+
const valueElement = await findAllByText('14,615,016,373,...');
157+
expect(valueElement[0]).toBeInTheDocument();
161158
expect(container).toMatchSnapshot();
162159
});
163160
});
@@ -180,11 +177,8 @@ describe('Confirm', () => {
180177
const { container, findAllByText } =
181178
await renderWithConfirmContextProvider(<Confirm />, mockStore);
182179

183-
await waitFor(async () => {
184-
const element = await findAllByText('Unlimited');
185-
expect(element[0]).toBeInTheDocument();
186-
});
187-
180+
const valueElement = await findAllByText('14,615,016,373,...');
181+
expect(valueElement[0]).toBeInTheDocument();
188182
expect(container).toMatchSnapshot();
189183
});
190184
});

0 commit comments

Comments
 (0)