From 5c23171e00b524b3055adfb7e266b14c462bfcd7 Mon Sep 17 00:00:00 2001 From: Pedro Figueiredo Date: Fri, 10 Jan 2025 10:44:13 +0000 Subject: [PATCH] wip --- .../confirmations/signatures/permit-batch.test.tsx | 2 +- .../confirmations/signatures/permit-single.test.tsx | 2 +- test/integration/confirmations/signatures/permit.test.tsx | 2 +- .../info/typed-sign/__snapshots__/typed-sign.test.tsx.snap | 4 ++-- .../__snapshots__/permit-simulation.test.tsx.snap | 2 +- .../typed-sign-v4-simulation.test.tsx | 4 ++-- .../confirm/__snapshots__/confirm.test.tsx.snap | 6 +++--- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test/integration/confirmations/signatures/permit-batch.test.tsx b/test/integration/confirmations/signatures/permit-batch.test.tsx index 2f9213c46b8d..84c050d8e022 100644 --- a/test/integration/confirmations/signatures/permit-batch.test.tsx +++ b/test/integration/confirmations/signatures/permit-batch.test.tsx @@ -100,7 +100,7 @@ describe('Permit Batch Signature Tests', () => { const simulationDetails = [ 'Estimated changes', - "You're removing the spender permission to spend this many tokens from your account.", + "You're giving the spender permission to spend this many tokens from your account.", 'Spending cap', '0xA0b86...6eB48', 'Unlimited', diff --git a/test/integration/confirmations/signatures/permit-single.test.tsx b/test/integration/confirmations/signatures/permit-single.test.tsx index 903576204af3..21851c3e6673 100644 --- a/test/integration/confirmations/signatures/permit-single.test.tsx +++ b/test/integration/confirmations/signatures/permit-single.test.tsx @@ -98,7 +98,7 @@ describe('Permit Single Signature Tests', () => { ); const simulationDetails = [ 'Estimated changes', - "You're removing the spender permission to spend this many tokens from your account.", + "You're giving the spender permission to spend this many tokens from your account.", 'Spending cap', '0xA0b86...6eB48', 'Unlimited', diff --git a/test/integration/confirmations/signatures/permit.test.tsx b/test/integration/confirmations/signatures/permit.test.tsx index 50a477a8fb92..332cebc3a6b2 100644 --- a/test/integration/confirmations/signatures/permit.test.tsx +++ b/test/integration/confirmations/signatures/permit.test.tsx @@ -235,7 +235,7 @@ describe('Permit Confirmation', () => { expect(simulationSection).toBeInTheDocument(); expect(simulationSection).toHaveTextContent('Estimated changes'); expect(simulationSection).toHaveTextContent( - "You're removing the spender permission to spend this many tokens from your account.", + "You're giving the spender permission to spend this many tokens from your account.", ); expect(simulationSection).toHaveTextContent('Spending cap'); expect(simulationSection).toHaveTextContent('0xCcCCc...ccccC'); diff --git a/ui/pages/confirmations/components/confirm/info/typed-sign/__snapshots__/typed-sign.test.tsx.snap b/ui/pages/confirmations/components/confirm/info/typed-sign/__snapshots__/typed-sign.test.tsx.snap index af28e22ec9d1..644b2f0df24c 100644 --- a/ui/pages/confirmations/components/confirm/info/typed-sign/__snapshots__/typed-sign.test.tsx.snap +++ b/ui/pages/confirmations/components/confirm/info/typed-sign/__snapshots__/typed-sign.test.tsx.snap @@ -45,7 +45,7 @@ exports[`TypedSignInfo correctly renders permit sign type 1`] = ` class="mm-box mm-text mm-text--body-md mm-box--color-inherit" style="white-space: pre-wrap;" > - You're removing the spender permission to spend this many tokens from your account. + You're giving the spender permission to spend this many tokens from your account.

@@ -420,7 +420,7 @@ exports[`TypedSignInfo correctly renders permit sign type with no deadline 1`] = class="mm-box mm-text mm-text--body-md mm-box--color-inherit" style="white-space: pre-wrap;" > - You're removing the spender permission to spend this many tokens from your account. + You're giving the spender permission to spend this many tokens from your account.

diff --git a/ui/pages/confirmations/components/confirm/info/typed-sign/typed-sign-v4-simulation/permit-simulation/__snapshots__/permit-simulation.test.tsx.snap b/ui/pages/confirmations/components/confirm/info/typed-sign/typed-sign-v4-simulation/permit-simulation/__snapshots__/permit-simulation.test.tsx.snap index 2e21a976c42c..1c301e59b14f 100644 --- a/ui/pages/confirmations/components/confirm/info/typed-sign/typed-sign-v4-simulation/permit-simulation/__snapshots__/permit-simulation.test.tsx.snap +++ b/ui/pages/confirmations/components/confirm/info/typed-sign/typed-sign-v4-simulation/permit-simulation/__snapshots__/permit-simulation.test.tsx.snap @@ -45,7 +45,7 @@ exports[`PermitSimulation renders component correctly 1`] = ` class="mm-box mm-text mm-text--body-md mm-box--color-inherit" style="white-space: pre-wrap;" > - You're removing the spender permission to spend this many tokens from your account. + You're giving the spender permission to spend this many tokens from your account.

diff --git a/ui/pages/confirmations/components/confirm/info/typed-sign/typed-sign-v4-simulation/typed-sign-v4-simulation.test.tsx b/ui/pages/confirmations/components/confirm/info/typed-sign/typed-sign-v4-simulation/typed-sign-v4-simulation.test.tsx index f13d2f0c04a3..11b5681ef886 100644 --- a/ui/pages/confirmations/components/confirm/info/typed-sign/typed-sign-v4-simulation/typed-sign-v4-simulation.test.tsx +++ b/ui/pages/confirmations/components/confirm/info/typed-sign/typed-sign-v4-simulation/typed-sign-v4-simulation.test.tsx @@ -68,7 +68,7 @@ describe('PermitSimulation', () => { expect(await findByText('Estimated changes')).toBeInTheDocument(); expect( await findByText( - "You're removing the spender permission to spend this many tokens from your account.", + "You're giving the spender permission to spend this many tokens from your account.", ), ).toBeInTheDocument(); }); @@ -103,7 +103,7 @@ describe('PermitSimulation', () => { expect(await findByText('Estimated changes')).toBeInTheDocument(); expect( await findByText( - "You're removing the spender permission to spend this many tokens from your account.", + "You're giving the spender permission to spend this many tokens from your account.", ), ).toBeInTheDocument(); }); diff --git a/ui/pages/confirmations/confirm/__snapshots__/confirm.test.tsx.snap b/ui/pages/confirmations/confirm/__snapshots__/confirm.test.tsx.snap index 80fa0e6dd55e..ff0d77ef8387 100644 --- a/ui/pages/confirmations/confirm/__snapshots__/confirm.test.tsx.snap +++ b/ui/pages/confirmations/confirm/__snapshots__/confirm.test.tsx.snap @@ -395,7 +395,7 @@ exports[`Confirm should match snapshot for signature - typed sign - V4 - PermitB class="mm-box mm-text mm-text--body-md mm-box--color-inherit" style="white-space: pre-wrap;" > - You're removing the spender permission to spend this many tokens from your account. + You're giving the spender permission to spend this many tokens from your account.

@@ -866,7 +866,7 @@ exports[`Confirm should match snapshot for signature - typed sign - V4 - PermitS class="mm-box mm-text mm-text--body-md mm-box--color-inherit" style="white-space: pre-wrap;" > - You're removing the spender permission to spend this many tokens from your account. + You're giving the spender permission to spend this many tokens from your account.

@@ -2349,7 +2349,7 @@ exports[`Confirm should match snapshot for signature - typed sign - permit 1`] = class="mm-box mm-text mm-text--body-md mm-box--color-inherit" style="white-space: pre-wrap;" > - You're removing the spender permission to spend this many tokens from your account. + You're giving the spender permission to spend this many tokens from your account.