1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

[e2e] ENS test improvement - with network controller fixture (#18119)

* With network controller fixture

* fix lint
This commit is contained in:
seaona 2023-03-14 12:47:54 +01:00 committed by GitHub
parent eafffb1af5
commit b8ec3623ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"]');