mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-05 23:47:50 +08:00
fix: shorten address credential action
This commit is contained in:
@@ -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,
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user