From 46d44adfbdda43800fd45d903205627c4efd41ed Mon Sep 17 00:00:00 2001 From: Charly Chevalier Date: Tue, 19 Nov 2024 17:54:40 +0100 Subject: [PATCH] test: workaround Snap bridge error message --- test/e2e/flask/create-watch-account.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/e2e/flask/create-watch-account.spec.ts b/test/e2e/flask/create-watch-account.spec.ts index 75fc1c66b0cd..71d47327536c 100644 --- a/test/e2e/flask/create-watch-account.spec.ts +++ b/test/e2e/flask/create-watch-account.spec.ts @@ -164,7 +164,10 @@ describe('Account-watcher snap', function (this: Suite) { }, { input: ACCOUNT_1, - message: `Unknown snap error: Account address '${ACCOUNT_1}' already exists`, + // FIXME: Watchout, the Snap bridge will lower-case EVM addresses, even in some error messages, this is + // a mistake, and we might wanna re-change that later, see: + // - https://github.com/MetaMask/accounts/pull/90/files#r1848713364 + message: `Unknown snap error: Account address '${ACCOUNT_1.toLowerCase()}' already exists`, description: 'existing address', }, ];