Skip to content

Commit e61eca0

Browse files
committed
feat: add token created address check
1 parent cc3c5cf commit e61eca0

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

test/e2e/page-objects/pages/test-dapp.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,19 @@ class TestDapp {
556556
});
557557
}
558558

559+
/**
560+
* Checks the value of a token address once created.
561+
*
562+
* @param value - The address to be checked
563+
*/
564+
async check_TokenAddressesValue(value: string) {
565+
console.log('Verify token address');
566+
await this.driver.waitForSelector({
567+
css: this.erc20TokenAddresses,
568+
text: value,
569+
});
570+
}
571+
559572
/**
560573
* Checks the count of token addresses.
561574
*

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ describe('Ledger Hardware', function (this: Suite) {
3535
const createContractModal = new CreateContractModal(driver);
3636
await createContractModal.check_pageIsLoaded();
3737
await createContractModal.clickConfirm();
38-
await driver.delay(100000000);
38+
await driver.switchToWindowWithTitle(WINDOW_TITLES.TestDApp);
39+
await testDappPage.check_TokenAddressesValue(
40+
'0xcB17707e0623251182A654BEdaE16429C78A7424',
41+
);
3942
},
4043
);
4144
});

0 commit comments

Comments
 (0)