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', () => { test('close button calls onClose handler', () => {
aboutWrapper = mountWithContexts(<About isOpen onClose={onClose} />); aboutWrapper = mountWithContexts(<About isOpen onClose={onClose} />);
console.log(aboutWrapper.debug());
closeButton = aboutWrapper.find('AboutModalBoxCloseButton Button'); closeButton = aboutWrapper.find('AboutModalBoxCloseButton Button');
closeButton.simulate('click'); closeButton.simulate('click');
expect(onClose).toBeCalled(); expect(onClose).toBeCalled();

View File

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

View File

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