mirror of
https://github.com/ansible/awx.git
synced 2026-01-24 16:01:20 -03:30
fix final logged errors in tests
This commit is contained in:
parent
226ffafbd6
commit
78d6e21256
@ -1,5 +1,5 @@
|
||||
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 { NavExpandable, NavItem } from '@patternfly/react-core';
|
||||
|
||||
@ -58,9 +58,9 @@ class NavExpandableGroup extends Component {
|
||||
}
|
||||
|
||||
NavExpandableGroup.propTypes = {
|
||||
groupId: PropTypes.string.isRequired,
|
||||
groupTitle: PropTypes.element.isRequired,
|
||||
routes: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
groupId: string.isRequired,
|
||||
groupTitle: oneOfType([PropTypes.element, string]).isRequired,
|
||||
routes: arrayOf(PropTypes.object).isRequired,
|
||||
};
|
||||
|
||||
export default withRouter(NavExpandableGroup);
|
||||
|
||||
@ -116,7 +116,7 @@ describe('<WorkflowJobTemplateAdd/>', () => {
|
||||
description: '',
|
||||
extra_vars: '---',
|
||||
inventory: undefined,
|
||||
limit: null,
|
||||
limit: '',
|
||||
organization: undefined,
|
||||
scm_branch: '',
|
||||
webhook_credential: undefined,
|
||||
|
||||
@ -290,7 +290,7 @@ const FormikApp = withFormik({
|
||||
organization: template?.summary_fields?.organization || null,
|
||||
labels: template.summary_fields?.labels?.results || [],
|
||||
extra_vars: template.extra_vars || '---',
|
||||
limit: template.limit || null,
|
||||
limit: template.limit || '',
|
||||
scm_branch: template.scm_branch || '',
|
||||
allow_simultaneous: template.allow_simultaneous || false,
|
||||
webhook_credential: template?.summary_fields?.webhook_credential || null,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user