From 31c6fd60172002659e94d8b122f20537ab5078e0 Mon Sep 17 00:00:00 2001 From: Ugwuanyi TobeChukwu <39131739+amaify@users.noreply.github.com> Date: Fri, 26 Jun 2026 17:00:51 +0100 Subject: [PATCH] [Meteor] - Update the "renameAction" to make sure the "update" button is enabled --- .changeset/sharp-dingos-shop.md | 5 +++++ src/wallets/meteor/actions/rename-account.meteor.ts | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/sharp-dingos-shop.md diff --git a/.changeset/sharp-dingos-shop.md b/.changeset/sharp-dingos-shop.md new file mode 100644 index 0000000..33665d8 --- /dev/null +++ b/.changeset/sharp-dingos-shop.md @@ -0,0 +1,5 @@ +--- +"chainwright": patch +--- + +[Meteor] - Update the "renameAction" to make sure the "update" button is enabled. diff --git a/src/wallets/meteor/actions/rename-account.meteor.ts b/src/wallets/meteor/actions/rename-account.meteor.ts index a80d415..3659b81 100644 --- a/src/wallets/meteor/actions/rename-account.meteor.ts +++ b/src/wallets/meteor/actions/rename-account.meteor.ts @@ -1,4 +1,4 @@ -import type { Page } from "@playwright/test"; +import { expect, type Page } from "@playwright/test"; import { homepageSelectors } from "../selectors/homepage-selectors.meteor"; import type { RenameAccountArgs } from "../types"; @@ -14,6 +14,8 @@ export async function renameAccount({ page, newAccountName }: RenameAccount) { const accountNameInput = page.locator("input[placeholder='Ex. My Meteor Wallet']"); const updateButton = page.locator("button[type='submit']:has-text('Update')"); await accountNameInput.fill(newAccountName); + + await expect(updateButton).toBeEnabled({ timeout: 30_000 }); await updateButton.click(); const closeMenuButton = page.locator("div[id='root'] button[aria-label='Close']");