ui phase 1
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { render } from '@testing-library/react';
|
||||
import { ThemeProvider } from '../../../theme';
|
||||
import AppLoading from './AppLoading';
|
||||
|
||||
describe('<AppLoading/>', () => {
|
||||
it('renders a status region with the brand mark', () => {
|
||||
const { container } = render(
|
||||
<ThemeProvider>
|
||||
<AppLoading />
|
||||
</ThemeProvider>,
|
||||
);
|
||||
expect(container.querySelector('[role="status"]')).toBeInTheDocument();
|
||||
expect(container.querySelector('[data-icon="logo"]')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('forwards sx overrides to the root', () => {
|
||||
const { container } = render(
|
||||
<ThemeProvider>
|
||||
<AppLoading data-testid="loading-root" />
|
||||
</ThemeProvider>,
|
||||
);
|
||||
expect(container.querySelector('[data-testid="loading-root"]')).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user