mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 03:17:38 -02:30
revert RoutedTabs to buttons pending PF fix
This commit is contained in:
@@ -35,7 +35,7 @@ function RoutedTabs({ tabsArray }) {
|
|||||||
aria-label={typeof tab.name === 'string' ? tab.name : null}
|
aria-label={typeof tab.name === 'string' ? tab.name : null}
|
||||||
eventKey={tab.id}
|
eventKey={tab.id}
|
||||||
key={tab.id}
|
key={tab.id}
|
||||||
href={tab.link}
|
link={tab.link}
|
||||||
title={<TabTitleText>{tab.name}</TabTitleText>}
|
title={<TabTitleText>{tab.name}</TabTitleText>}
|
||||||
aria-controls=""
|
aria-controls=""
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -121,8 +121,8 @@ describe('<Schedule />', () => {
|
|||||||
});
|
});
|
||||||
test('expect all tabs to exist, including Back to Schedules', async () => {
|
test('expect all tabs to exist, including Back to Schedules', async () => {
|
||||||
expect(
|
expect(
|
||||||
wrapper.find('a[href="/templates/job_template/1/schedules"]').length
|
wrapper.find('button[link="/templates/job_template/1/schedules"]').length
|
||||||
).toBe(1);
|
).toBe(1);
|
||||||
expect(wrapper.find('a[aria-label="Details"]').length).toBe(1);
|
expect(wrapper.find('button[aria-label="Details"]').length).toBe(1);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -65,11 +65,11 @@ describe('<InventoryGroup />', () => {
|
|||||||
|
|
||||||
test('expect all tabs to exist, including Back to Groups', async () => {
|
test('expect all tabs to exist, including Back to Groups', async () => {
|
||||||
expect(
|
expect(
|
||||||
wrapper.find('a[href="/inventories/inventory/1/groups"]').length
|
wrapper.find('button[link="/inventories/inventory/1/groups"]').length
|
||||||
).toBe(1);
|
).toBe(1);
|
||||||
expect(wrapper.find('a[aria-label="Details"]').length).toBe(1);
|
expect(wrapper.find('button[aria-label="Details"]').length).toBe(1);
|
||||||
expect(wrapper.find('a[aria-label="Related Groups"]').length).toBe(1);
|
expect(wrapper.find('button[aria-label="Related Groups"]').length).toBe(1);
|
||||||
expect(wrapper.find('a[aria-label="Hosts"]').length).toBe(1);
|
expect(wrapper.find('button[aria-label="Hosts"]').length).toBe(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should show content error when user attempts to navigate to erroneous route', async () => {
|
test('should show content error when user attempts to navigate to erroneous route', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user