- );
- expect(wrapper.find('ExclamationTriangleIcon').exists()).toBe(true);
- });
-
- test('missing resource icon is not shown when there is a project and an inventory.', () => {
- const wrapper = mountWithContexts(
-
-
-
-
-
- );
- expect(wrapper.find('ExclamationTriangleIcon').exists()).toBe(false);
- });
-
- test('missing resource icon is not shown when inventory is prompt_on_launch, and a project', () => {
- const wrapper = mountWithContexts(
-
-
-
-
-
- );
- expect(wrapper.find('ExclamationTriangleIcon').exists()).toBe(false);
- });
- test('missing resource icon is not shown type is workflow_job_template', () => {
- const wrapper = mountWithContexts(
-
-
-
-
-
- );
- expect(wrapper.find('ExclamationTriangleIcon').exists()).toBe(false);
- });
- test('clicking on template from project templates list navigates properly', () => {
- const history = createMemoryHistory({
- initialEntries: ['/projects/1/job_templates'],
- });
- const wrapper = mountWithContexts(
-