From b8ec3623ffdd0650119cd56cf9b710623238edeb Mon Sep 17 00:00:00 2001 From: seaona <54408225+seaona@users.noreply.github.com> Date: Tue, 14 Mar 2023 12:47:54 +0100 Subject: [PATCH] [e2e] ENS test improvement - with network controller fixture (#18119) * With network controller fixture * fix lint --- test/e2e/tests/ens.spec.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/test/e2e/tests/ens.spec.js b/test/e2e/tests/ens.spec.js index d811db8fd..f5e3536c0 100644 --- a/test/e2e/tests/ens.spec.js +++ b/test/e2e/tests/ens.spec.js @@ -52,7 +52,16 @@ describe('ENS', function () { it('domain resolves to a correct address', async function () { await withFixtures( { - fixtures: new FixtureBuilder().build(), + fixtures: new FixtureBuilder() + .withNetworkController({ + provider: { + chainId: '0x1', + nickname: '', + rpcUrl: '', + type: 'mainnet', + }, + }) + .build(), ganacheOptions, title: this.test.title, testSpecificMock: mockInfura, @@ -63,8 +72,6 @@ describe('ENS', function () { await driver.press('#password', driver.Key.ENTER); await driver.waitForElementNotPresent('.loading-overlay'); - await driver.clickElement('.network-display'); - await driver.clickElement({ text: 'Ethereum Mainnet', tag: 'span' }); await driver.clickElement('[data-testid="eth-overview-send"]');