From 10d2d658713eecb73f7a01ecfc52fd634a3b2e60 Mon Sep 17 00:00:00 2001 From: Smyile <84925446+xsmyile@users.noreply.github.com> Date: Wed, 7 Oct 2026 00:34:50 +0200 Subject: [PATCH] test: wait for settled reads in the unread filter walk test --- ui/e2e/keyboard-nav.spec.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/e2e/keyboard-nav.spec.ts b/ui/e2e/keyboard-nav.spec.ts index 0f41301..5c97c3d 100644 --- a/ui/e2e/keyboard-nav.spec.ts +++ b/ui/e2e/keyboard-nav.spec.ts @@ -423,9 +423,10 @@ test.describe("unread filter", () => { const readBehind = steps - 1; await expect(page.locator(optionSelector(1))).toHaveCount(0); await expect(page.locator(optionSelector(steps))).toHaveCount(1); - expect( - Number(await selectedOption(page).getAttribute("aria-setsize")), - ).toBe(before - readBehind); + await expect(selectedOption(page)).toHaveAttribute( + "aria-setsize", + String(before - readBehind), + ); }); test("counts the selection it keeps in the matches it shows", async ({