diff --git a/packages/stories-block/src/block/test/storiesPlaceholder.js b/packages/stories-block/src/block/test/storiesPlaceholder.js index fa29e4bd49f3..3eaf1ace6d2b 100644 --- a/packages/stories-block/src/block/test/storiesPlaceholder.js +++ b/packages/stories-block/src/block/test/storiesPlaceholder.js @@ -27,6 +27,7 @@ import StoriesLoading from '../components/storiesLoading'; describe('StoriesLoading', () => { it('should display spinner', () => { render(); - expect(screen.getByText('Loading Stories…')).toBeInTheDocument(); + // Text occurs twice, once within the placeholder and once in the a11y-speak-region. + expect(screen.getAllByText('Loading Stories…')[0]).toBeInTheDocument(); }); });