fix: shorten address credential action

This commit is contained in:
dreamhunter2333
2026-08-23 19:30:46 +08:00
parent 10760ccc44
commit 843bcd827d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ test.describe('User send mail page', () => {
=== `/user_api/bind_address_jwt/${address!.address_id}` === `/user_api/bind_address_jwt/${address!.address_id}`
)); ));
const addressRow = page.getByRole('row').filter({ hasText: address.address }); const addressRow = page.getByRole('row').filter({ hasText: address.address });
await addressRow.getByRole('button', { name: 'Credentials & Connection Methods' }).click(); await addressRow.getByRole('button', { name: 'Address Credential' }).click();
expect((await credentialResponse).ok()).toBe(true); expect((await credentialResponse).ok()).toBe(true);
await expect(page.getByRole('dialog')).toContainText(address.address); await expect(page.getByRole('dialog')).toContainText(address.address);
await page.getByRole('button', { name: 'close' }).click(); await page.getByRole('button', { name: 'close' }).click();
@@ -16,7 +16,7 @@ const message = useMessage()
const router = useRouter() const router = useRouter()
const { locale, t } = useScopedI18n('views.user.AddressManagement') const { locale, t } = useScopedI18n('views.user.AddressManagement')
const { t: accountSettingsT } = useScopedI18n('views.index.AccountSettings') const { t: credentialT } = useScopedI18n('components.AddressCredentialModal')
const data = ref([]) const data = ref([])
const count = ref(0) const count = ref(0)
@@ -168,7 +168,7 @@ const columns = [
type: "primary", type: "primary",
onClick: () => showCredential(row) onClick: () => showCredential(row)
}, },
{ default: () => accountSettingsT('showAddressCredential') } { default: () => credentialT('addressCredential') }
), ),
h(NPopconfirm, h(NPopconfirm,
{ {