diff --git a/awx/ui_next/src/components/Schedule/ScheduleAdd/ScheduleAdd.test.jsx b/awx/ui_next/src/components/Schedule/ScheduleAdd/ScheduleAdd.test.jsx index 4ecd88cf3a..b95212e755 100644 --- a/awx/ui_next/src/components/Schedule/ScheduleAdd/ScheduleAdd.test.jsx +++ b/awx/ui_next/src/components/Schedule/ScheduleAdd/ScheduleAdd.test.jsx @@ -66,6 +66,8 @@ describe('', () => { type: 'job_template', inventory: 2, summary_fields: { credentials: [] }, + name: 'Foo Job Template', + description: '', }} launchConfig={launchConfig} /> @@ -417,6 +419,8 @@ describe('', () => { type: 'job_template', inventory: 2, summary_fields: { credentials: [] }, + name: 'Foo Job Template', + description: '', }} launchConfig={launchConfig} surveyConfig={{ diff --git a/awx/ui_next/src/components/Schedule/ScheduleEdit/ScheduleEdit.test.jsx b/awx/ui_next/src/components/Schedule/ScheduleEdit/ScheduleEdit.test.jsx index 85de8346fe..9b1b2f4c62 100644 --- a/awx/ui_next/src/components/Schedule/ScheduleEdit/ScheduleEdit.test.jsx +++ b/awx/ui_next/src/components/Schedule/ScheduleEdit/ScheduleEdit.test.jsx @@ -142,6 +142,8 @@ describe('', () => { { name: 'job template credential', id: 75, kind: 'ssh' }, ], }, + name: 'Foo Job Template', + description: '', }} resourceDefaultCredentials={[]} launchConfig={{ @@ -654,6 +656,8 @@ describe('', () => { { name: 'job template credential', id: 75, kind: 'ssh' }, ], }, + name: 'Foo Job Template', + description: '', }} resourceDefaultCredentials={[]} launchConfig={{ diff --git a/awx/ui_next/src/components/Schedule/shared/ScheduleForm.test.jsx b/awx/ui_next/src/components/Schedule/shared/ScheduleForm.test.jsx index c650c3ceaa..9e95e4d009 100644 --- a/awx/ui_next/src/components/Schedule/shared/ScheduleForm.test.jsx +++ b/awx/ui_next/src/components/Schedule/shared/ScheduleForm.test.jsx @@ -150,7 +150,12 @@ describe('', () => { description: '', }, }} - resource={{ id: 23, type: 'job_template' }} + resource={{ + id: 23, + type: 'job_template', + name: 'Foo Job Template', + description: '', + }} /> ); }); @@ -199,7 +204,13 @@ describe('', () => { description: '', }, }} - resource={{ id: 23, type: 'job_template', inventory: 1 }} + resource={{ + id: 23, + type: 'job_template', + inventory: 1, + name: 'Foo Job Template', + description: '', + }} /> ); }); @@ -232,6 +243,8 @@ describe('', () => { summary_fields: { credentials: [], }, + name: 'Foo Job Template', + description: '', }} launchConfig={{ can_start_without_user_input: false, @@ -370,6 +383,8 @@ describe('', () => { resource={{ id: 23, type: 'job_template', + name: 'Foo Job Template', + description: '', }} launchConfig={{ can_start_without_user_input: false, @@ -422,7 +437,13 @@ describe('', () => { ', () => { handleSubmit={jest.fn()} handleCancel={jest.fn()} schedule={{ inventory: null, ...mockSchedule }} - resource={{ id: 23, type: 'job_template' }} + resource={{ + id: 23, + type: 'job_template', + name: 'Foo Job Template', + description: '', + }} launchConfig={{ can_start_without_user_input: true, passwords_needed_to_start: [], @@ -794,7 +820,12 @@ describe('', () => { ', () => { id: 23, type: 'project', inventory: 2, + name: 'Foo Project', + description: '', }} /> ); @@ -858,7 +891,12 @@ describe('', () => { handleCancel={jest.fn()} schedule={mockSchedule} launchConfig={{ inventory_needed_to_start: false }} - resource={{ id: 23, type: 'job_template' }} + resource={{ + id: 23, + type: 'job_template', + name: 'Foo Job Template', + description: '', + }} /> ); }); @@ -888,7 +926,12 @@ describe('', () => { 'DTSTART;TZID=America/New_York:20200402T144500 RRULE:INTERVAL=10;FREQ=MINUTELY', dtend: null, })} - resource={{ id: 23, type: 'job_template' }} + resource={{ + id: 23, + type: 'job_template', + name: 'Foo Job Template', + description: '', + }} /> ); }); @@ -923,7 +966,12 @@ describe('', () => { dtend: '2020-04-03T03:45:00Z', until: '', })} - resource={{ id: 23, type: 'job_template' }} + resource={{ + id: 23, + type: 'job_template', + name: 'Foo Job Template', + description: '', + }} /> ); }); @@ -959,7 +1007,12 @@ describe('', () => { dtend: null, until: '', })} - resource={{ id: 23, type: 'job_template' }} + resource={{ + id: 23, + type: 'job_template', + name: 'Foo Job Template', + description: '', + }} /> ); expect(wrapper.find('ScheduleForm').length).toBe(1); @@ -994,7 +1047,12 @@ describe('', () => { dtend: '2020-10-30T18:45:00Z', until: '2021-01-01T00:00:00', })} - resource={{ id: 23, type: 'job_template' }} + resource={{ + id: 23, + type: 'job_template', + name: 'Foo Job Template', + description: '', + }} /> ); }); @@ -1053,7 +1111,12 @@ describe('', () => { dtend: null, until: '', })} - resource={{ id: 23, type: 'job_template' }} + resource={{ + id: 23, + type: 'job_template', + name: 'Foo Job Template', + description: '', + }} /> ); expect(wrapper.find('ScheduleForm').length).toBe(1); @@ -1100,7 +1163,12 @@ describe('', () => { dtend: null, until: '', })} - resource={{ id: 23, type: 'job_template' }} + resource={{ + id: 23, + type: 'job_template', + name: 'Foo Job Template', + description: '', + }} /> ); expect(wrapper.find('ScheduleForm').length).toBe(1);