w3wallets 0.9.3 → 0.9.4

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.d.mts CHANGED
@@ -76,7 +76,7 @@ declare class Metamask extends Wallet {
76
76
  importAccount(privateKey: string): Promise<void>;
77
77
  addAccount(accountName?: string): Promise<void>;
78
78
  getAccountName(): Promise<string>;
79
- connectToNetwork(networkName: string, networkType?: "Default" | "Custom"): Promise<void>;
79
+ connectToNetwork(networkName: string, networkType?: "Popular" | "Custom"): Promise<void>;
80
80
  addCustomNetwork(settings: NetworkSettings): Promise<void>;
81
81
  enableTestNetworks(): Promise<void>;
82
82
  approve(): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -76,7 +76,7 @@ declare class Metamask extends Wallet {
76
76
  importAccount(privateKey: string): Promise<void>;
77
77
  addAccount(accountName?: string): Promise<void>;
78
78
  getAccountName(): Promise<string>;
79
- connectToNetwork(networkName: string, networkType?: "Default" | "Custom"): Promise<void>;
79
+ connectToNetwork(networkName: string, networkType?: "Popular" | "Custom"): Promise<void>;
80
80
  addCustomNetwork(settings: NetworkSettings): Promise<void>;
81
81
  enableTestNetworks(): Promise<void>;
82
82
  approve(): Promise<void>;
package/dist/index.js CHANGED
@@ -230,6 +230,7 @@ var Metamask = class extends Wallet {
230
230
  await this.page.getByTestId("create-password-submit").click();
231
231
  await this.page.getByTestId("metametrics-no-thanks").click();
232
232
  await this.page.getByTestId("onboarding-complete-done").click();
233
+ await this.page.getByTestId("download-app-continue").click();
233
234
  await this.page.getByTestId("pin-extension-done").click();
234
235
  }
235
236
  async switchAccount(accountNameOrAddress) {
@@ -263,7 +264,7 @@ var Metamask = class extends Wallet {
263
264
  if (!text) throw Error("Cannot get account name");
264
265
  return text;
265
266
  }
266
- async connectToNetwork(networkName, networkType = "Default") {
267
+ async connectToNetwork(networkName, networkType = "Popular") {
267
268
  await this.page.getByTestId("sort-by-networks").click();
268
269
  await this.page.getByRole("button", { name: networkType, exact: true }).click();
269
270
  const additionalNetwork = this.page.getByTestId("additional-network-item").getByText(networkName);
@@ -273,7 +274,6 @@ var Metamask = class extends Wallet {
273
274
  await this.page.getByTestId("confirmation-submit-button").click();
274
275
  } catch (error) {
275
276
  await this.page.getByText(networkName).click();
276
- await this.page.getByTestId("modal-header-close-button").click();
277
277
  }
278
278
  }
279
279
  async addCustomNetwork(settings) {
package/dist/index.mjs CHANGED
@@ -196,6 +196,7 @@ var Metamask = class extends Wallet {
196
196
  await this.page.getByTestId("create-password-submit").click();
197
197
  await this.page.getByTestId("metametrics-no-thanks").click();
198
198
  await this.page.getByTestId("onboarding-complete-done").click();
199
+ await this.page.getByTestId("download-app-continue").click();
199
200
  await this.page.getByTestId("pin-extension-done").click();
200
201
  }
201
202
  async switchAccount(accountNameOrAddress) {
@@ -229,7 +230,7 @@ var Metamask = class extends Wallet {
229
230
  if (!text) throw Error("Cannot get account name");
230
231
  return text;
231
232
  }
232
- async connectToNetwork(networkName, networkType = "Default") {
233
+ async connectToNetwork(networkName, networkType = "Popular") {
233
234
  await this.page.getByTestId("sort-by-networks").click();
234
235
  await this.page.getByRole("button", { name: networkType, exact: true }).click();
235
236
  const additionalNetwork = this.page.getByTestId("additional-network-item").getByText(networkName);
@@ -239,7 +240,6 @@ var Metamask = class extends Wallet {
239
240
  await this.page.getByTestId("confirmation-submit-button").click();
240
241
  } catch (error) {
241
242
  await this.page.getByText(networkName).click();
242
- await this.page.getByTestId("modal-header-close-button").click();
243
243
  }
244
244
  }
245
245
  async addCustomNetwork(settings) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "w3wallets",
3
3
  "description": "browser wallets for playwright",
4
- "version": "0.9.3",
4
+ "version": "0.9.4",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "homepage": "https://github.com/Maksandre/w3wallets",