From 4d6024c95cb464b76934741ddb166d647f1e68fe Mon Sep 17 00:00:00 2001 From: Anton Lykhoyda Date: Mon, 14 Nov 2022 19:55:36 +0100 Subject: [PATCH] update test --- test/flask/snaps.spec.ts | 6 +----- yarn.lock | 14 -------------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/test/flask/snaps.spec.ts b/test/flask/snaps.spec.ts index 7d698bd7..f3220b69 100644 --- a/test/flask/snaps.spec.ts +++ b/test/flask/snaps.spec.ts @@ -119,11 +119,7 @@ describe("snaps", function () { // the time between showing next notification should be minimum 5 seconds await metamask.page.waitForTimeout(5000); - await metamask.snaps.invokeSnap( - testPage, - getSnapIdByName(this, Snaps.METHODS_SNAP), - "notify_inApp" - ); + await metamask.snaps.invokeSnap(testPage, snapId, "notify_inApp"); await metamask.snaps.waitForAmountOfNotifications(2); diff --git a/yarn.lock b/yarn.lock index b153a56e..f322333d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5657,13 +5657,6 @@ p-defer@^1.0.0: resolved "https://registry.yarnpkg.com/p-defer/-/p-defer-1.0.0.tgz#9f6eb182f6c9aa8cd743004a7d4f96b196b0fb0c" integrity sha1-n26xgvbJqozXQwBKfU+WsZaw+ww= -p-event@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/p-event/-/p-event-4.2.0.tgz#af4b049c8acd91ae81083ebd1e6f5cae2044c1b5" - integrity sha512-KXatOjCRXXkSePPb1Nbi0p0m+gQAwdlbhi4wQKJPI1HsMQS9g+Sqp2o+QHziPr7eYJyOZet836KoHEVM1mwOrQ== - dependencies: - p-timeout "^3.1.0" - p-finally@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" @@ -5723,13 +5716,6 @@ p-timeout@^1.1.1: dependencies: p-finally "^1.0.0" -p-timeout@^3.1.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-3.2.0.tgz#c7e17abc971d2a7962ef83626b35d635acf23dfe" - integrity sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg== - dependencies: - p-finally "^1.0.0" - p-try@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3"