ElectronicBabylonianLiterature/ebl-frontend

View on GitHub
src/test-support/waitForSpinnerToBeRemoved.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { waitForElementToBeRemoved } from '@testing-library/react'

export async function waitForSpinnerToBeRemoved(screen): Promise<void> {
  await waitForElementToBeRemoved(() => screen.getAllByLabelText('Spinner'))
}