w3wallets 1.0.0-beta.11 → 1.0.0-beta.12

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
@@ -150,8 +150,11 @@ declare class Metamask extends Wallet {
150
150
  /**
151
151
  * Switch to an existing network in MetaMask
152
152
  * @param networkName - Name of the network to switch to (e.g., "Ethereum Mainnet", "Sepolia")
153
+ * @param _networkType - Deprecated: MetaMask 13.40 merged the Default/Custom
154
+ * tabs into a single "Select network" list, so the type is no longer needed.
155
+ * Kept for backward compatibility.
153
156
  */
154
- switchNetwork(networkName: string, networkType?: "Popular" | "Custom"): Promise<void>;
157
+ switchNetwork(networkName: string, _networkType?: "Popular" | "Custom"): Promise<void>;
155
158
  switchAccount(accountName: string): Promise<void>;
156
159
  /**
157
160
  * Add a custom network to MetaMask
package/dist/index.d.ts CHANGED
@@ -150,8 +150,11 @@ declare class Metamask extends Wallet {
150
150
  /**
151
151
  * Switch to an existing network in MetaMask
152
152
  * @param networkName - Name of the network to switch to (e.g., "Ethereum Mainnet", "Sepolia")
153
+ * @param _networkType - Deprecated: MetaMask 13.40 merged the Default/Custom
154
+ * tabs into a single "Select network" list, so the type is no longer needed.
155
+ * Kept for backward compatibility.
153
156
  */
154
- switchNetwork(networkName: string, networkType?: "Popular" | "Custom"): Promise<void>;
157
+ switchNetwork(networkName: string, _networkType?: "Popular" | "Custom"): Promise<void>;
155
158
  switchAccount(accountName: string): Promise<void>;
156
159
  /**
157
160
  * Add a custom network to MetaMask
package/dist/index.js CHANGED
@@ -680,15 +680,15 @@ var Metamask = class extends Wallet {
680
680
  /**
681
681
  * Switch to an existing network in MetaMask
682
682
  * @param networkName - Name of the network to switch to (e.g., "Ethereum Mainnet", "Sepolia")
683
+ * @param _networkType - Deprecated: MetaMask 13.40 merged the Default/Custom
684
+ * tabs into a single "Select network" list, so the type is no longer needed.
685
+ * Kept for backward compatibility.
683
686
  */
684
- async switchNetwork(networkName, networkType = "Popular") {
685
- debug(`metamask.switchNetwork: ${networkName} (${networkType})`);
687
+ async switchNetwork(networkName, _networkType = "Popular") {
688
+ debug(`metamask.switchNetwork: ${networkName}`);
686
689
  await this.page.getByTestId("sort-by-networks").click();
687
- if (networkType === "Custom") {
688
- await this.page.getByRole("tab", { name: "Custom" }).click({ force: true });
689
- }
690
- await this.page.getByText(networkName).click();
691
- await (0, import_test3.expect)(this.page.getByTestId("sort-by-networks")).toHaveText(
690
+ await this.page.getByTestId(networkName).click();
691
+ await (0, import_test3.expect)(this.page.getByTestId("sort-by-networks")).toContainText(
692
692
  networkName,
693
693
  { timeout: config.expectTimeout }
694
694
  );
package/dist/index.mjs CHANGED
@@ -644,15 +644,15 @@ var Metamask = class extends Wallet {
644
644
  /**
645
645
  * Switch to an existing network in MetaMask
646
646
  * @param networkName - Name of the network to switch to (e.g., "Ethereum Mainnet", "Sepolia")
647
+ * @param _networkType - Deprecated: MetaMask 13.40 merged the Default/Custom
648
+ * tabs into a single "Select network" list, so the type is no longer needed.
649
+ * Kept for backward compatibility.
647
650
  */
648
- async switchNetwork(networkName, networkType = "Popular") {
649
- debug(`metamask.switchNetwork: ${networkName} (${networkType})`);
651
+ async switchNetwork(networkName, _networkType = "Popular") {
652
+ debug(`metamask.switchNetwork: ${networkName}`);
650
653
  await this.page.getByTestId("sort-by-networks").click();
651
- if (networkType === "Custom") {
652
- await this.page.getByRole("tab", { name: "Custom" }).click({ force: true });
653
- }
654
- await this.page.getByText(networkName).click();
655
- await expect(this.page.getByTestId("sort-by-networks")).toHaveText(
654
+ await this.page.getByTestId(networkName).click();
655
+ await expect(this.page.getByTestId("sort-by-networks")).toContainText(
656
656
  networkName,
657
657
  { timeout: config.expectTimeout }
658
658
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "w3wallets",
3
3
  "description": "browser wallets for playwright",
4
- "version": "1.0.0-beta.11",
4
+ "version": "1.0.0-beta.12",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "homepage": "https://github.com/Maksandre/w3wallets",