From 344182014f27ff7f405ffecb10ab559aaeec3b87 Mon Sep 17 00:00:00 2001 From: 4gray Date: Sun, 9 Aug 2026 15:17:32 +0200 Subject: [PATCH] test(stalker): await settled append failure --- .../stores/features/with-stalker-content.feature.spec.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/portal/stalker/data-access/src/lib/stores/features/with-stalker-content.feature.spec.ts b/libs/portal/stalker/data-access/src/lib/stores/features/with-stalker-content.feature.spec.ts index d708b9dfb..49fe0ce7f 100644 --- a/libs/portal/stalker/data-access/src/lib/stores/features/with-stalker-content.feature.spec.ts +++ b/libs/portal/stalker/data-access/src/lib/stores/features/with-stalker-content.feature.spec.ts @@ -484,7 +484,13 @@ describe('withStalkerContent failure states', () => { await waitForCondition(() => store.getPaginatedContent().length === 1); store.setPage(1); - await waitForCondition(() => store.hasContentAppendError()); + // The grid renders the retry action only after the failed resource + // has settled; while loading it renders the append spinner instead. + await waitForCondition( + () => + store.hasContentAppendError() && + !store.isPaginatedContentLoading() + ); // The failed append left page 1 on screen, not the empty state. expect(