Skip to content

Commit 6fa66ac

Browse files
committed
Migrate to one test.
1 parent 3473681 commit 6fa66ac

File tree

1 file changed

+1
-35
lines changed

1 file changed

+1
-35
lines changed

test/e2e/tests/hardware-wallets/ledger-erc721.spec.ts

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -19,41 +19,6 @@ describe('Ledger Hardware', function (this: Suite) {
1919
title: this.test?.fullTitle(),
2020
dapp: true,
2121
},
22-
async ({ driver, localNodes }) => {
23-
(await localNodes?.[0]?.setAccountBalance(
24-
KNOWN_PUBLIC_KEY_ADDRESSES[0].address,
25-
'0x100000000000000000000',
26-
)) ?? console.error('localNodes is undefined or empty');
27-
await loginWithBalanceValidation(
28-
driver,
29-
undefined,
30-
undefined,
31-
'1208925.8196',
32-
);
33-
const testDappPage = new TestDappPage(driver);
34-
await testDappPage.openTestDappPage();
35-
await testDappPage.check_pageIsLoaded();
36-
await testDappPage.clickERC721DeployButton();
37-
// Confirm token creation
38-
await driver.switchToWindowWithTitle(WINDOW_TITLES.Dialog);
39-
const createContractModal = new CreateContractModal(driver);
40-
await createContractModal.check_pageIsLoaded();
41-
await createContractModal.clickConfirm();
42-
await driver.switchToWindowWithTitle(WINDOW_TITLES.TestDApp);
43-
await testDappPage.check_ERC721TokenAddressesValue(
44-
'0xcB17707e0623251182A654BEdaE16429C78A7424',
45-
);
46-
},
47-
);
48-
});
49-
50-
it('can mint an ERC-721 token', async function () {
51-
await withFixtures(
52-
{
53-
fixtures: new FixtureBuilder().withLedgerAccount().build(),
54-
title: this.test?.fullTitle(),
55-
dapp: true,
56-
},
5722
async ({ driver, localNodes }) => {
5823
(await localNodes?.[0]?.setAccountBalance(
5924
KNOWN_PUBLIC_KEY_ADDRESSES[0].address,
@@ -79,6 +44,7 @@ describe('Ledger Hardware', function (this: Suite) {
7944
'0xcB17707e0623251182A654BEdaE16429C78A7424',
8045
);
8146

47+
// mint function test
8248
await testDappPage.clickERC721MintButton();
8349
await driver.switchToWindowWithTitle(WINDOW_TITLES.Dialog);
8450
const mintTokenModal = new CreateContractModal(driver);

0 commit comments

Comments
 (0)