w3wallets 0.9.0 → 0.9.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 CHANGED
@@ -123,7 +123,7 @@ var Backpack = class extends Wallet {
123
123
  }
124
124
  await this.page.getByRole("button", { name: "I agree to the terms" }).click();
125
125
  await this.page.getByText("I already have a wallet").click();
126
- await this.page.getByText("Show all networks").click();
126
+ await this.page.getByText("View all").click();
127
127
  await this.page.getByText(network).click();
128
128
  await this.page.getByText("Private key").click();
129
129
  await this.page.getByPlaceholder("Private key").fill(privateKey);
@@ -266,7 +266,7 @@ var Metamask = class extends Wallet {
266
266
  }
267
267
  async connectToNetwork(networkName, networkType = "Default") {
268
268
  await this.page.getByTestId("sort-by-networks").click();
269
- await this.page.getByRole("button", { name: networkType }).click();
269
+ await this.page.getByRole("button", { name: networkType, exact: true }).click();
270
270
  const additionalNetwork = this.page.getByTestId("additional-network-item").getByText(networkName);
271
271
  try {
272
272
  await additionalNetwork.isEnabled({ timeout: 1e3 });
package/dist/index.mjs CHANGED
@@ -89,7 +89,7 @@ var Backpack = class extends Wallet {
89
89
  }
90
90
  await this.page.getByRole("button", { name: "I agree to the terms" }).click();
91
91
  await this.page.getByText("I already have a wallet").click();
92
- await this.page.getByText("Show all networks").click();
92
+ await this.page.getByText("View all").click();
93
93
  await this.page.getByText(network).click();
94
94
  await this.page.getByText("Private key").click();
95
95
  await this.page.getByPlaceholder("Private key").fill(privateKey);
@@ -232,7 +232,7 @@ var Metamask = class extends Wallet {
232
232
  }
233
233
  async connectToNetwork(networkName, networkType = "Default") {
234
234
  await this.page.getByTestId("sort-by-networks").click();
235
- await this.page.getByRole("button", { name: networkType }).click();
235
+ await this.page.getByRole("button", { name: networkType, exact: true }).click();
236
236
  const additionalNetwork = this.page.getByTestId("additional-network-item").getByText(networkName);
237
237
  try {
238
238
  await additionalNetwork.isEnabled({ timeout: 1e3 });
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.0",
4
+ "version": "0.9.2",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "homepage": "https://github.com/Maksandre/w3wallets",