New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace service form #4985
Replace service form #4985
Conversation
@miq add_label react |
@miq-bot add_label react |
It works for me, in the latest master, I haven't found any issue. 👍 from me. |
This pull request is not mergeable. Please rebase and repush. |
833cd2c
to
dd50170
Compare
might remove this commit if the other PR will be merged before.
dd50170
to
8c55444
Compare
@miq-bot remove_label unmergeable |
8c55444
to
a049c5f
Compare
Checked commits Hyperkid123/manageiq-ui-classic@9df0675~...a049c5f with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Tested, all works good! |
import FormRender from '@data-driven-forms/react-form-renderer'; | ||
import ServiceForm from '../../components/service-form'; | ||
|
||
describe('Cloud tenant form component', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cloud tenant != Service
EDIT: fixed in #5018
|
||
beforeEach(() => { | ||
initialProps = { | ||
maxNameLen: 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Submit can't ever be undisabled when validation fails, right?
This needs to be at least "foo".length
EDIT: fixed in #5018
// change form state to enable reset button | ||
wrapper.find(FormRender).childAt(0).instance().form.change('name', 'foo'); | ||
wrapper.find(FormRender).childAt(0).instance().form.change('description', 'bar'); | ||
wrapper.find('button').at(0).simulate('click'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's still disabled, MiqFormRenderer
is using disableSubmit
(probably fixed in #5018)
Replaced angular form with react using data-driven-forms.
form is at:
Services
->My Services
-> Pick some service ->Configuration
->Edit
Changes
Before
After