Skip to content

Commit

Permalink
fix: e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
micaelae committed Jul 25, 2024
1 parent de1b189 commit b6447a1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
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 @@ -148,7 +148,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
2 changes: 1 addition & 1 deletion test/e2e/tests/swap-send/swap-send-test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export const getSwapSendFixtures = (
const ETH_CONVERSION_RATE_USD = 3010;
return {
driverOptions: {
openDevToolsForTabs: true,
// openDevToolsForTabs: true,
},
fixtures: new FixtureBuilder()
.withPreferencesController({
Expand Down

0 comments on commit b6447a1

Please sign in to comment.