1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 06:51:10 +03:00

add headingLevel prop to pf title components

This commit is contained in:
John Mitchell 2020-06-18 14:07:13 -04:00
parent bb1687642c
commit f161617755
3 changed files with 1 additions and 5 deletions

View File

@ -14,7 +14,6 @@ describe('<About />', () => {
test('close button calls onClose handler', () => {
aboutWrapper = mountWithContexts(<About isOpen onClose={onClose} />);
console.log(aboutWrapper.debug());
closeButton = aboutWrapper.find('AboutModalBoxCloseButton Button');
closeButton.simulate('click');
expect(onClose).toBeCalled();

View File

@ -21,7 +21,7 @@ function TypeInputsSubForm({ credentialType, i18n }) {
);
return (
<SubFormLayout>
<Title size="md">{i18n._(t`Type Details`)}</Title>
<Title size="md" headingLevel="h4">{i18n._(t`Type Details`)}</Title>
<FormColumnLayout>
{credentialType.namespace === 'gce' && <GceFileUploadField />}
{stringFields.map(fieldOptions =>

View File

@ -41,7 +41,6 @@ describe('<Project />', () => {
const wrapper = mountWithContexts(
<Project setBreadcrumb={() => {}} me={mockMe} />
);
console.log(wrapper.find('.pf-c-tabs__item').length);
const tabs = await waitForElement(
wrapper,
'.pf-c-tabs__item',
@ -63,7 +62,6 @@ describe('<Project />', () => {
const wrapper = mountWithContexts(
<Project setBreadcrumb={() => {}} me={mockMe} />
);
console.log(wrapper.find('.pf-c-tabs__item').length);
const tabs = await waitForElement(
wrapper,
'.pf-c-tabs__item',
@ -107,7 +105,6 @@ describe('<Project />', () => {
const wrapper = mountWithContexts(
<Project setBreadcrumb={() => {}} me={mockMe} />
);
console.log(wrapper.find('.pf-c-tabs__item').length);
const tabs = await waitForElement(
wrapper,
'.pf-c-tabs__item',