mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
fix final logged errors in tests
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes, { oneOfType, string, arrayOf } from 'prop-types';
|
||||||
import { matchPath, Link, withRouter } from 'react-router-dom';
|
import { matchPath, Link, withRouter } from 'react-router-dom';
|
||||||
import { NavExpandable, NavItem } from '@patternfly/react-core';
|
import { NavExpandable, NavItem } from '@patternfly/react-core';
|
||||||
|
|
||||||
@@ -58,9 +58,9 @@ class NavExpandableGroup extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
NavExpandableGroup.propTypes = {
|
NavExpandableGroup.propTypes = {
|
||||||
groupId: PropTypes.string.isRequired,
|
groupId: string.isRequired,
|
||||||
groupTitle: PropTypes.element.isRequired,
|
groupTitle: oneOfType([PropTypes.element, string]).isRequired,
|
||||||
routes: PropTypes.arrayOf(PropTypes.object).isRequired,
|
routes: arrayOf(PropTypes.object).isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default withRouter(NavExpandableGroup);
|
export default withRouter(NavExpandableGroup);
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ describe('<WorkflowJobTemplateAdd/>', () => {
|
|||||||
description: '',
|
description: '',
|
||||||
extra_vars: '---',
|
extra_vars: '---',
|
||||||
inventory: undefined,
|
inventory: undefined,
|
||||||
limit: null,
|
limit: '',
|
||||||
organization: undefined,
|
organization: undefined,
|
||||||
scm_branch: '',
|
scm_branch: '',
|
||||||
webhook_credential: undefined,
|
webhook_credential: undefined,
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ const FormikApp = withFormik({
|
|||||||
organization: template?.summary_fields?.organization || null,
|
organization: template?.summary_fields?.organization || null,
|
||||||
labels: template.summary_fields?.labels?.results || [],
|
labels: template.summary_fields?.labels?.results || [],
|
||||||
extra_vars: template.extra_vars || '---',
|
extra_vars: template.extra_vars || '---',
|
||||||
limit: template.limit || null,
|
limit: template.limit || '',
|
||||||
scm_branch: template.scm_branch || '',
|
scm_branch: template.scm_branch || '',
|
||||||
allow_simultaneous: template.allow_simultaneous || false,
|
allow_simultaneous: template.allow_simultaneous || false,
|
||||||
webhook_credential: template?.summary_fields?.webhook_credential || null,
|
webhook_credential: template?.summary_fields?.webhook_credential || null,
|
||||||
|
|||||||
Reference in New Issue
Block a user