w3wallets 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -4
- package/dist/index.mjs +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -121,7 +121,7 @@ var Backpack = class extends Wallet {
|
|
|
121
121
|
await this.page.getByLabel("Go back").click();
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
await this.page.
|
|
124
|
+
await this.page.getByTestId("terms-of-service-checkbox").click();
|
|
125
125
|
await this.page.getByText("I already have a wallet").click();
|
|
126
126
|
await this.page.getByText(network).click();
|
|
127
127
|
await this.page.getByText("Private key").click();
|
|
@@ -151,6 +151,7 @@ var PolkadotJS = class extends Wallet {
|
|
|
151
151
|
}
|
|
152
152
|
async onboard(seed, password, name) {
|
|
153
153
|
await this.page.getByRole("button", { name: "Understood, let me continue" }).click();
|
|
154
|
+
await this.page.getByRole("button", { name: "I Understand" }).click();
|
|
154
155
|
await this.page.locator(".popupToggle").first().click();
|
|
155
156
|
await this.page.getByText("Import account from pre-existing seed").click();
|
|
156
157
|
await this.page.locator(".seedInput").getByRole("textbox").fill(seed);
|
|
@@ -210,8 +211,8 @@ var Metamask = class extends Wallet {
|
|
|
210
211
|
async onboard(mnemonic, password = this.defaultPassword) {
|
|
211
212
|
await this.page.getByTestId("onboarding-import-wallet").click();
|
|
212
213
|
await this.page.getByTestId("onboarding-import-with-srp-button").click();
|
|
213
|
-
await this.page.getByTestId("srp-input-import__srp-note").pressSequentially(mnemonic);
|
|
214
|
-
await this.page.
|
|
214
|
+
await this.page.getByTestId("srp-input-import__srp-note").pressSequentially(mnemonic, { delay: 5 });
|
|
215
|
+
await this.page.getByRole("button", { name: "Continue" }).click();
|
|
215
216
|
await this.page.getByTestId("create-password-new-input").fill(password);
|
|
216
217
|
await this.page.getByTestId("create-password-confirm-input").fill(password);
|
|
217
218
|
await this.page.getByTestId("create-password-terms").click();
|
|
@@ -280,7 +281,7 @@ var Metamask = class extends Wallet {
|
|
|
280
281
|
await p.locator(
|
|
281
282
|
'[data-testid="confirm-footer-button"], [data-testid="confirm-btn"], [data-testid="page-container-footer-next"], [data-testid="confirmation-submit-button"]'
|
|
282
283
|
).click();
|
|
283
|
-
await p.waitForSelector(".
|
|
284
|
+
await p.waitForSelector(".multichain-app-header", {
|
|
284
285
|
timeout: 1e4
|
|
285
286
|
});
|
|
286
287
|
await p.close();
|
package/dist/index.mjs
CHANGED
|
@@ -87,7 +87,7 @@ var Backpack = class extends Wallet {
|
|
|
87
87
|
await this.page.getByLabel("Go back").click();
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
await this.page.
|
|
90
|
+
await this.page.getByTestId("terms-of-service-checkbox").click();
|
|
91
91
|
await this.page.getByText("I already have a wallet").click();
|
|
92
92
|
await this.page.getByText(network).click();
|
|
93
93
|
await this.page.getByText("Private key").click();
|
|
@@ -117,6 +117,7 @@ var PolkadotJS = class extends Wallet {
|
|
|
117
117
|
}
|
|
118
118
|
async onboard(seed, password, name) {
|
|
119
119
|
await this.page.getByRole("button", { name: "Understood, let me continue" }).click();
|
|
120
|
+
await this.page.getByRole("button", { name: "I Understand" }).click();
|
|
120
121
|
await this.page.locator(".popupToggle").first().click();
|
|
121
122
|
await this.page.getByText("Import account from pre-existing seed").click();
|
|
122
123
|
await this.page.locator(".seedInput").getByRole("textbox").fill(seed);
|
|
@@ -176,8 +177,8 @@ var Metamask = class extends Wallet {
|
|
|
176
177
|
async onboard(mnemonic, password = this.defaultPassword) {
|
|
177
178
|
await this.page.getByTestId("onboarding-import-wallet").click();
|
|
178
179
|
await this.page.getByTestId("onboarding-import-with-srp-button").click();
|
|
179
|
-
await this.page.getByTestId("srp-input-import__srp-note").pressSequentially(mnemonic);
|
|
180
|
-
await this.page.
|
|
180
|
+
await this.page.getByTestId("srp-input-import__srp-note").pressSequentially(mnemonic, { delay: 5 });
|
|
181
|
+
await this.page.getByRole("button", { name: "Continue" }).click();
|
|
181
182
|
await this.page.getByTestId("create-password-new-input").fill(password);
|
|
182
183
|
await this.page.getByTestId("create-password-confirm-input").fill(password);
|
|
183
184
|
await this.page.getByTestId("create-password-terms").click();
|
|
@@ -246,7 +247,7 @@ var Metamask = class extends Wallet {
|
|
|
246
247
|
await p.locator(
|
|
247
248
|
'[data-testid="confirm-footer-button"], [data-testid="confirm-btn"], [data-testid="page-container-footer-next"], [data-testid="confirmation-submit-button"]'
|
|
248
249
|
).click();
|
|
249
|
-
await p.waitForSelector(".
|
|
250
|
+
await p.waitForSelector(".multichain-app-header", {
|
|
250
251
|
timeout: 1e4
|
|
251
252
|
});
|
|
252
253
|
await p.close();
|