Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
[dependabot skip]
  • Loading branch information
swissspidy committed Nov 2, 2023
1 parent d006881 commit 5fc5552
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/stories-block/src/block/test/storiesPlaceholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import StoriesLoading from '../components/storiesLoading';
describe('StoriesLoading', () => {
it('should display spinner', () => {
render(<StoriesLoading />);
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();
});
});

0 comments on commit 5fc5552

Please sign in to comment.