fix: align mail state e2e with public routes

This commit is contained in:
dreamhunter2333
2026-08-27 14:15:24 +08:00
parent 41fe6f7a54
commit b3f14a3763
2 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -77,7 +77,9 @@ test.describe('Mail state browser flow', () => {
await stateSelect.click();
await page.locator('.n-base-select-option').filter({ hasText: /^Unread$/ }).click();
expect((await unreadFilterResponse).ok()).toBe(true);
await expect(page.getByText('Your inbox is empty')).toBeVisible();
for (const subject of subjects) {
await expect(page.getByText(subject, { exact: true })).toHaveCount(0);
}
} finally {
try {
if (jwt) await deleteAddress(request, jwt);