Skip to content

Commit

Permalink
fix: add the feature flag condition
Browse files Browse the repository at this point in the history
  • Loading branch information
salimtb committed Jul 18, 2024
1 parent ef3f811 commit 8ceae67
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/e2e/tests/multichain/network/add-custom-network.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ describe('Add custom network', function () {
});

it('should show suggestion name and symbol', async function () {
if (!process.env.ENABLE_NETWORK_UI_REDESIGN) {
return;
}
async function mockRPCURLAndChainId(mockServer: Mockttp) {
return [
await mockServer
Expand Down Expand Up @@ -191,6 +194,9 @@ describe('Add custom network', function () {
});

it('should throw error for invalid RPC URL', async function () {
if (!process.env.ENABLE_NETWORK_UI_REDESIGN) {
return;
}
async function mockRPCURLAndChainId(mockServer: Mockttp) {
return [
await mockServer
Expand Down Expand Up @@ -240,6 +246,9 @@ describe('Add custom network', function () {
});

it('rpc url should not be associated with another network and should match with chainID', async function () {
if (!process.env.ENABLE_NETWORK_UI_REDESIGN) {
return;
}
async function mockRPCURLAndChainId(mockServer: Mockttp) {
return [
await mockServer
Expand Down

0 comments on commit 8ceae67

Please sign in to comment.