w3wallets 0.9.4 → 0.9.5
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 +4 -5
- package/dist/index.mjs +4 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -136,7 +136,7 @@ var Backpack = class extends Wallet {
|
|
|
136
136
|
await (0, import_test.expect)(this.page.getByText("You're all good!")).toBeVisible();
|
|
137
137
|
}
|
|
138
138
|
await this.page.goto(`chrome-extension://${this.extensionId}/popup.html`);
|
|
139
|
-
await this.page.getByTestId("
|
|
139
|
+
await this.page.getByTestId("__CAROUSEL_ITEM_0__").waitFor({ state: "visible" });
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
142
|
|
|
@@ -216,10 +216,6 @@ var Metamask = class extends Wallet {
|
|
|
216
216
|
* @param mnemonic 12-word mnemonic seed phrase
|
|
217
217
|
*/
|
|
218
218
|
async onboard(mnemonic, password = this.defaultPassword) {
|
|
219
|
-
await this.page.getByTestId("onboarding-get-started-button").click();
|
|
220
|
-
await this.page.getByTestId("terms-of-use-scroll-button").click();
|
|
221
|
-
await this.page.getByTestId("terms-of-use-checkbox").click();
|
|
222
|
-
await this.page.getByTestId("terms-of-use-agree-button").click();
|
|
223
219
|
await this.page.getByTestId("onboarding-import-wallet").click();
|
|
224
220
|
await this.page.getByTestId("onboarding-import-with-srp-button").click();
|
|
225
221
|
await this.page.getByTestId("srp-input-import__srp-note").pressSequentially(mnemonic);
|
|
@@ -232,6 +228,7 @@ var Metamask = class extends Wallet {
|
|
|
232
228
|
await this.page.getByTestId("onboarding-complete-done").click();
|
|
233
229
|
await this.page.getByTestId("download-app-continue").click();
|
|
234
230
|
await this.page.getByTestId("pin-extension-done").click();
|
|
231
|
+
await this.clickTopRightCornerToCloseAllTheMarketingBullshit();
|
|
235
232
|
}
|
|
236
233
|
async switchAccount(accountNameOrAddress) {
|
|
237
234
|
await this.page.getByTestId("account-menu-icon").click();
|
|
@@ -318,6 +315,8 @@ var Metamask = class extends Wallet {
|
|
|
318
315
|
await p.close();
|
|
319
316
|
}
|
|
320
317
|
async clickTopRightCornerToCloseAllTheMarketingBullshit() {
|
|
318
|
+
await this.page.waitForTimeout(500);
|
|
319
|
+
await this.page.keyboard.press("Escape");
|
|
321
320
|
await this.page.mouse.click(1e3, 10);
|
|
322
321
|
}
|
|
323
322
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -102,7 +102,7 @@ var Backpack = class extends Wallet {
|
|
|
102
102
|
await expect(this.page.getByText("You're all good!")).toBeVisible();
|
|
103
103
|
}
|
|
104
104
|
await this.page.goto(`chrome-extension://${this.extensionId}/popup.html`);
|
|
105
|
-
await this.page.getByTestId("
|
|
105
|
+
await this.page.getByTestId("__CAROUSEL_ITEM_0__").waitFor({ state: "visible" });
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
108
|
|
|
@@ -182,10 +182,6 @@ var Metamask = class extends Wallet {
|
|
|
182
182
|
* @param mnemonic 12-word mnemonic seed phrase
|
|
183
183
|
*/
|
|
184
184
|
async onboard(mnemonic, password = this.defaultPassword) {
|
|
185
|
-
await this.page.getByTestId("onboarding-get-started-button").click();
|
|
186
|
-
await this.page.getByTestId("terms-of-use-scroll-button").click();
|
|
187
|
-
await this.page.getByTestId("terms-of-use-checkbox").click();
|
|
188
|
-
await this.page.getByTestId("terms-of-use-agree-button").click();
|
|
189
185
|
await this.page.getByTestId("onboarding-import-wallet").click();
|
|
190
186
|
await this.page.getByTestId("onboarding-import-with-srp-button").click();
|
|
191
187
|
await this.page.getByTestId("srp-input-import__srp-note").pressSequentially(mnemonic);
|
|
@@ -198,6 +194,7 @@ var Metamask = class extends Wallet {
|
|
|
198
194
|
await this.page.getByTestId("onboarding-complete-done").click();
|
|
199
195
|
await this.page.getByTestId("download-app-continue").click();
|
|
200
196
|
await this.page.getByTestId("pin-extension-done").click();
|
|
197
|
+
await this.clickTopRightCornerToCloseAllTheMarketingBullshit();
|
|
201
198
|
}
|
|
202
199
|
async switchAccount(accountNameOrAddress) {
|
|
203
200
|
await this.page.getByTestId("account-menu-icon").click();
|
|
@@ -284,6 +281,8 @@ var Metamask = class extends Wallet {
|
|
|
284
281
|
await p.close();
|
|
285
282
|
}
|
|
286
283
|
async clickTopRightCornerToCloseAllTheMarketingBullshit() {
|
|
284
|
+
await this.page.waitForTimeout(500);
|
|
285
|
+
await this.page.keyboard.press("Escape");
|
|
287
286
|
await this.page.mouse.click(1e3, 10);
|
|
288
287
|
}
|
|
289
288
|
};
|