Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
update install snap url
Browse files Browse the repository at this point in the history
  • Loading branch information
Lykhoyda committed Dec 9, 2022
1 parent 7c5f319 commit ac595f4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/flask/snaps.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect } from "chai";
import { DappeteerPage, Dappeteer } from "../../src";
import { EXAMPLE_WEBSITE, TestContext } from "../constant";
import { TestContext } from "../constant";
import { Snaps } from "../deploy";

describe("snaps", function () {
Expand Down Expand Up @@ -36,6 +36,7 @@ describe("snaps", function () {
});

describe("should test snap methods", function () {
const installationSnapUrl = "https://google.com/";
let testPage: DappeteerPage;
let snapId: string;
let permissionSnapId: string;
Expand All @@ -52,14 +53,16 @@ describe("snaps", function () {
this.skip();
}
snapId = await metaMask.snaps.installSnap(
this.snapServers[Snaps.METHODS_SNAP]
this.snapServers[Snaps.METHODS_SNAP],
{ installationSnapUrl }
);
permissionSnapId = await metaMask.snaps.installSnap(
this.snapServers[Snaps.PERMISSIONS_SNAP]
this.snapServers[Snaps.PERMISSIONS_SNAP],
{ installationSnapUrl }
);

testPage = await metaMaskPage.browser().newPage();
await testPage.goto(EXAMPLE_WEBSITE);
await testPage.goto(installationSnapUrl);
return testPage;
});

Expand Down

0 comments on commit ac595f4

Please sign in to comment.