diff --git a/src/pages/advertiser/screens/AdvertiserAdvertsTable/__tests__/AdvertiserAdvertsTable.spec.tsx b/src/pages/advertiser/screens/AdvertiserAdvertsTable/__tests__/AdvertiserAdvertsTable.spec.tsx
index ffc1c852..0c2a42d6 100644
--- a/src/pages/advertiser/screens/AdvertiserAdvertsTable/__tests__/AdvertiserAdvertsTable.spec.tsx
+++ b/src/pages/advertiser/screens/AdvertiserAdvertsTable/__tests__/AdvertiserAdvertsTable.spec.tsx
@@ -222,7 +222,7 @@ describe('', () => {
render();
- expect(screen.getByText('ErrorModal')).toBeInTheDocument();
+ expect(screen.getAllByText('ErrorModal')).toHaveLength(2);
});
it('should show ErrorModal if advert is not active and visible, and error is undefined', () => {
@@ -240,7 +240,7 @@ describe('', () => {
render();
- expect(screen.getByText('ErrorModal')).toBeInTheDocument();
+ expect(screen.getAllByText('ErrorModal')).toHaveLength(2);
});
it('should call history.push if the advertiser is barred', () => {