fix: minimize shared sent box changes

This commit is contained in:
dreamhunter2333
2026-08-23 19:54:15 +08:00
parent ce0f5ef411
commit 167b1fccca
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -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) => (
+1 -1
View File
@@ -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) {