mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 20:51:21 -03:30
Merge pull request #9996 from AlexSCorey/RemoveSnapShots
Removes Snapshot tests SUMMARY Removes snapshot tests ISSUE TYPE COMPONENT NAME UI AWX VERSION ADDITIONAL INFORMATION Reviewed-by: Michael Abashian <None>
This commit is contained in:
commit
8e579b2e74
@ -42,7 +42,6 @@ describe('<NotificationListItem canToggleNotifications />', () => {
|
||||
</tbody>
|
||||
</table>
|
||||
);
|
||||
expect(wrapper.find('NotificationListItem')).toMatchSnapshot();
|
||||
expect(wrapper.find('Switch').length).toBe(3);
|
||||
});
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -46,7 +46,6 @@ describe('<ToolbarDeleteButton />', () => {
|
||||
<ToolbarDeleteButton onDelete={() => {}} itemsToDelete={[]} />
|
||||
);
|
||||
expect(wrapper.find('button')).toHaveLength(1);
|
||||
expect(wrapper.find('ToolbarDeleteButton')).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('should open confirmation modal', async () => {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -24,6 +24,5 @@ describe('<DeleteRoleConfirmationModal />', () => {
|
||||
/>
|
||||
);
|
||||
wrapper.update();
|
||||
expect(wrapper.find('DeleteRoleConfirmationModal')).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
||||
@ -1,6 +1,10 @@
|
||||
import React from 'react';
|
||||
import { act } from 'react-dom/test-utils';
|
||||
|
||||
import { mountWithContexts } from '../../../testUtils/enzymeHelpers';
|
||||
import {
|
||||
mountWithContexts,
|
||||
waitForElement,
|
||||
} from '../../../testUtils/enzymeHelpers';
|
||||
|
||||
import ResourceAccessListItem from './ResourceAccessListItem';
|
||||
|
||||
@ -29,13 +33,18 @@ const accessRecord = {
|
||||
};
|
||||
|
||||
describe('<ResourceAccessListItem />', () => {
|
||||
test('initially renders successfully', () => {
|
||||
const wrapper = mountWithContexts(
|
||||
<ResourceAccessListItem
|
||||
accessRecord={accessRecord}
|
||||
onRoleDelete={() => {}}
|
||||
/>
|
||||
);
|
||||
expect(wrapper.find('ResourceAccessListItem')).toMatchSnapshot();
|
||||
test('initially renders successfully', async () => {
|
||||
let wrapper;
|
||||
|
||||
await act(async () => {
|
||||
wrapper = mountWithContexts(
|
||||
<ResourceAccessListItem
|
||||
accessRecord={accessRecord}
|
||||
onRoleDelete={() => {}}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
waitForElement(wrapper, 'ResourceAccessListItem', el => el.length > 0);
|
||||
});
|
||||
});
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user