w3wallets 0.9.0 → 0.9.1

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
@@ -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
@@ -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.1",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "homepage": "https://github.com/Maksandre/w3wallets",