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

Commit

Permalink
don't run snap tests on non flask
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetrunic committed Nov 2, 2022
1 parent 5421f52 commit 34ddf80
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/flask/snaps.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,18 @@ describe("snaps", function () {
describe("should test snap methods", function () {
let testPage: DappeteerPage;

beforeEach(function (this: TestContext) {
//skip those tests for non flask metamask
if (!this.browser.isMetaMaskFlask()) {
this.skip();
}
});

before(async function (this: TestContext) {
if (!this.browser.isMetaMaskFlask()) {
this.skip();
return;
}
await metamask.snaps.installSnap(
metamask.page,
getSnapIdByName(this, Snaps.METHODS_SNAP),
Expand Down

0 comments on commit 34ddf80

Please sign in to comment.