test: expect the fourth message of the mbox in the phone import

This commit is contained in:
Linus Rath
2026-11-01 07:14:48 +01:00
parent cabcd141d7
commit dc041a8e17
@@ -431,7 +431,8 @@ test('import and export dialogs fill the screen at 390 px and import from Settin
await expect(dialog.getByRole('heading', { name: 'Import finished' })).toBeVisible({ timeout: 60_000 });
await expect.poll(async () => (await dialog.boundingBox())?.width ?? 0).toBeGreaterThanOrEqual(389);
await shot(page, 'c-import-phone-summary');
expect(await messagesIn(target)).toHaveLength(3);
// Four messages; the one Thunderbird marked deleted stays out.
expect(await messagesIn(target)).toHaveLength(4);
await page.getByRole('button', { name: 'Close' }).last().click();
await page.getByTestId('settings-mail-export').click();