MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / enterPrivateKey

Method enterPrivateKey

e2e/pages/ImportAccountView.js:26–39  ·  view source on GitHub ↗
(privateKey)

Source from the content-addressed store, hash-verified

24 }
25
26 static async enterPrivateKey(privateKey) {
27 if (device.getPlatform() === 'android') {
28 await TestHelpers.replaceTextInField(
29 PRIVATE_KEY_INPUT_BOX_ID,
30 privateKey,
31 );
32 await element(by.id(PRIVATE_KEY_INPUT_BOX_ID)).tapReturnKey();
33 } else {
34 await TestHelpers.typeTextAndHideKeyboard(
35 PRIVATE_KEY_INPUT_BOX_ID,
36 privateKey,
37 );
38 }
39 }
40
41 // Closing import success view
42 static async tapCloseButtonOnImportSuccess() {

Calls 2

replaceTextInFieldMethod · 0.45

Tested by

no test coverage detected