mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 20:30:46 -03:30
Fix broken link for inventory
Fix broke link for inventory See: https://github.com/ansible/awx/issues/11111
This commit is contained in:
parent
9be8fba63d
commit
ee4b47595a
@ -124,7 +124,7 @@ function PromptJobTemplateDetail({ resource }) {
|
||||
label={t`Inventory`}
|
||||
value={
|
||||
<Link
|
||||
to={`/${inventoryKind}/${summary_fields.inventory?.id}/details`}
|
||||
to={`/inventories/${inventoryKind}/${summary_fields.inventory?.id}/details`}
|
||||
>
|
||||
{summary_fields.inventory?.name}
|
||||
</Link>
|
||||
|
||||
@ -37,6 +37,10 @@ describe('PromptJobTemplateDetail', () => {
|
||||
test('should render expected details', () => {
|
||||
assertDetail(wrapper, 'Job Type', 'Run');
|
||||
assertDetail(wrapper, 'Inventory', 'Demo Inventory');
|
||||
const link = wrapper.find('Detail[label="Inventory"]');
|
||||
expect(link.find('Link').prop('to')).toBe(
|
||||
'/inventories/inventory/1/details'
|
||||
);
|
||||
assertDetail(wrapper, 'Project', 'Mock Project');
|
||||
assertDetail(wrapper, 'Source Control Branch', 'Foo branch');
|
||||
assertDetail(wrapper, 'Playbook', 'ping.yml');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user