Skip to content

Commit

Permalink
fix: e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
micaelae committed Aug 16, 2024
1 parent 52a0d93 commit 76b3ba8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/e2e/fixture-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,8 @@ class FixtureBuilder {
},
destTokens: {},
destTopAssets: [],
srcTokens: {},
srcTopAssets: [],
},
};
return this;
Expand Down
12 changes: 11 additions & 1 deletion test/e2e/tests/bridge/bridge-test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,17 @@ const mockServer =
};
}),
);
return Promise.all(featureFlagMocks);
const portfolioMock = async () =>
await mockServer_
.forGet('https://portfolio.metamask.io/bridge')
.always()
.thenCallback(() => {
return {
statusCode: 200,
json: {},
};
});
return Promise.all([...featureFlagMocks, portfolioMock]);
};

export const getBridgeFixtures = (
Expand Down

0 comments on commit 76b3ba8

Please sign in to comment.