mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-10 10:06:15 -08:00
test(stalker): await settled append failure
This commit is contained in:
1 parent
b4c90dc185
commit
344182014f
1 file changed
+7
-1
+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(
|
||||
|
||||
Reference in new issue
Block a user