Skip to content

Commit

Permalink
Fix failing E2E
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwing committed Jul 12, 2023
1 parent c063200 commit 4a1b384
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion test/e2e/fixture-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ class FixtureBuilder {
withNetworkController(data) {
merge(this.fixture.data.NetworkController, data);

console.log("network controller is: ", this.fixture.data.NetworkController);
console.log('network controller is: ', this.fixture.data.NetworkController);

return this;
}
Expand Down
10 changes: 5 additions & 5 deletions test/e2e/tests/custom-rpc-history.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,21 +190,21 @@ 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',
nickname: 'http://127.0.0.1:8545/1',
rpcPrefs: {},
type: 'rpc',
},
networkConfigurationId2: {
networkConfigurationIdTwo: {
rpcUrl: 'http://127.0.0.1:8545/2',
chainId: '0x539',
ticker: 'ETH',
Expand Down Expand Up @@ -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',
Expand Down
5 changes: 0 additions & 5 deletions ui/selectors/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 4a1b384

Please sign in to comment.