From 736065d903801ebba3765d5380e152c8647d29e4 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Wed, 12 Jul 2023 14:12:20 -0500 Subject: [PATCH] Fix failing E2E --- test/e2e/fixture-builder.js | 3 --- test/e2e/tests/custom-rpc-history.spec.js | 10 +++++----- ui/selectors/selectors.js | 5 ----- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/test/e2e/fixture-builder.js b/test/e2e/fixture-builder.js index daa16dfc276a..bbbcd49cf42b 100644 --- a/test/e2e/fixture-builder.js +++ b/test/e2e/fixture-builder.js @@ -515,9 +515,6 @@ class FixtureBuilder { withNetworkController(data) { merge(this.fixture.data.NetworkController, data); - - console.log("network controller is: ", this.fixture.data.NetworkController); - return this; } diff --git a/test/e2e/tests/custom-rpc-history.spec.js b/test/e2e/tests/custom-rpc-history.spec.js index 1c87c82ed021..fd8e8314ba8e 100644 --- a/test/e2e/tests/custom-rpc-history.spec.js +++ b/test/e2e/tests/custom-rpc-history.spec.js @@ -190,13 +190,13 @@ describe('Stores custom RPC history', function () { ); }); - it.only('finds all recent RPCs in history', async function () { + it('finds all recent RPCs in history', async function () { await withFixtures( { fixtures: new FixtureBuilder() .withNetworkController({ networkConfigurations: { - networkConfigurationId: { + networkConfigurationIdOne: { rpcUrl: 'http://127.0.0.1:8545/1', chainId: '0x539', ticker: 'ETH', @@ -204,7 +204,7 @@ describe('Stores custom RPC history', function () { rpcPrefs: {}, type: 'rpc', }, - networkConfigurationId2: { + networkConfigurationIdTwo: { rpcUrl: 'http://127.0.0.1:8545/2', chainId: '0x539', ticker: 'ETH', @@ -250,14 +250,14 @@ describe('Stores custom RPC history', function () { fixtures: new FixtureBuilder() .withNetworkController({ networkConfigurations: { - networkConfigurationId: { + networkConfigurationIdOne: { rpcUrl: 'http://127.0.0.1:8545/1', chainId: '0x539', ticker: 'ETH', nickname: 'http://127.0.0.1:8545/1', rpcPrefs: {}, }, - networkConfigurationId2: { + networkConfigurationIdTwo: { rpcUrl: 'http://127.0.0.1:8545/2', chainId: '0x539', ticker: 'ETH', diff --git a/ui/selectors/selectors.js b/ui/selectors/selectors.js index d031cb869f20..8707d26f9038 100644 --- a/ui/selectors/selectors.js +++ b/ui/selectors/selectors.js @@ -1176,11 +1176,6 @@ export function getCurrentNetwork(state) { providerConfig.type === 'rpc' ? (network) => network.id === providerConfig.id : (network) => network.id === providerConfig.type; - - console.log('providerConfig: ', providerConfig); - console.log('allNetworks: ', allNetworks); - console.log('allNetworks.find(filter): ', allNetworks.find(filter)); - return allNetworks.find(filter); }