From 90bcff720ae514621d4a160dad1b544649286f18 Mon Sep 17 00:00:00 2001 From: Javier Date: Wed, 18 Dec 2024 18:18:46 +0100 Subject: [PATCH] added tsdoc to addAccount function --- test/e2e/page-objects/pages/account-list-page.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/e2e/page-objects/pages/account-list-page.ts b/test/e2e/page-objects/pages/account-list-page.ts index 925a2cb9a833..9b540a76c356 100644 --- a/test/e2e/page-objects/pages/account-list-page.ts +++ b/test/e2e/page-objects/pages/account-list-page.ts @@ -202,6 +202,19 @@ class AccountListPage { } } + /** + * Adds a new account of the specified type with an optional custom name. + * + * @param accountType - The type of account to add (Ethereum, Bitcoin, or Solana) + * @param accountName - Optional custom name for the new account + * @throws {Error} If the specified account type is not supported + * @example + * // Add a new Ethereum account with default name + * await accountListPage.addAccount(ACCOUNT_TYPE.Ethereum); + * + * // Add a new Bitcoin account with custom name + * await accountListPage.addAccount(ACCOUNT_TYPE.Bitcoin, 'My BTC Wallet'); + */ async addAccount(accountType: ACCOUNT_TYPE, accountName?: string) { await this.driver.clickElement(this.createAccountButton); // eslint-disable-next-line @typescript-eslint/no-explicit-any