ui(admin/system): improve mass-import card (loading state, i18n, font size) #569
@@ -20,14 +20,14 @@ const makeStatus = (overrides: Partial<ImportStatus> = {}): ImportStatus => ({
|
|||||||
|
|
||||||
describe('ImportStatusCard', () => {
|
describe('ImportStatusCard', () => {
|
||||||
it('shows spinner while state is RUNNING', async () => {
|
it('shows spinner while state is RUNNING', async () => {
|
||||||
const { getByTestId } = render(ImportStatusCard, {
|
render(ImportStatusCard, {
|
||||||
props: {
|
props: {
|
||||||
importStatus: makeStatus({ state: 'RUNNING', statusCode: 'IMPORT_RUNNING', processed: 3 }),
|
importStatus: makeStatus({ state: 'RUNNING', statusCode: 'IMPORT_RUNNING', processed: 3 }),
|
||||||
ontrigger: () => {}
|
ontrigger: () => {}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
await expect.element(getByTestId('spinner')).toBeAttached();
|
expect(document.querySelector('[data-testid="spinner"]')).not.toBeNull();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('shows processed count at text-base while RUNNING', async () => {
|
it('shows processed count at text-base while RUNNING', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user