test(stalker): await settled append failure

This commit is contained in:
4gray committed 2026-08-09 15:17:32 +02:00
1 parent b4c90dc185
commit 344182014f
1 file changed
+7 -1
@@ -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(