From 167b1fccca6812d62ec81fccff73ff4b4b290f1a Mon Sep 17 00:00:00 2001 From: dreamhunter2333 Date: Sun, 23 Aug 2026 19:54:15 +0800 Subject: [PATCH] fix: minimize shared sent box changes --- e2e/tests/browser/user-send-mail.spec.ts | 5 +++++ frontend/src/components/SendBox.vue | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/e2e/tests/browser/user-send-mail.spec.ts b/e2e/tests/browser/user-send-mail.spec.ts index 5dec197..4ffbd2b 100644 --- a/e2e/tests/browser/user-send-mail.spec.ts +++ b/e2e/tests/browser/user-send-mail.spec.ts @@ -79,7 +79,12 @@ test.describe('User send mail page', () => { await expect(page.getByRole('dialog')).toContainText(address.address); await page.getByRole('button', { name: 'close' }).click(); + const initialSettingsResponse = page.waitForResponse((response) => ( + new URL(response.url()).pathname + === `/user_api/address/${secondAddress.address_id}/settings` + )); await page.getByText('Send Mail', { exact: true }).click(); + expect((await initialSettingsResponse).ok()).toBe(true); await expect(page.locator('.composer-title h2')).toHaveText('Compose email'); const settingsResponse = page.waitForResponse((response) => ( diff --git a/frontend/src/components/SendBox.vue b/frontend/src/components/SendBox.vue index 21ed79a..03c623a 100644 --- a/frontend/src/components/SendBox.vue +++ b/frontend/src/components/SendBox.vue @@ -82,7 +82,7 @@ const refresh = async () => { } return item; }); - if (page.value === 1) { + if (totalCount > 0) { count.value = totalCount; } if (!isMobile.value && !curMail.value && data.value.length > 0) {