mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 10:30:03 -03:30
Merge pull request #11115 from nixocio/ui_issue_11111
Fix broken link for inventory
This commit is contained in:
commit
a75c10f447
@ -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