mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-08-29 20:16:39 +08:00
fix: minimize shared sent box changes
This commit is contained in:
@@ -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) => (
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user