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
Fixes #31492 - Add basic hosts and inputs page #556
Conversation
c71818e
to
f825171
Compare
<Title headingLevel="h2" className="wizard-title"> | ||
{__('Category And Template')} | ||
</Title> | ||
<Text component={TextVariants.p}>{__('All fields are required.')}</Text> |
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.
<Title headingLevel="h2" className="wizard-title"> | |
{__('Category And Template')} | |
</Title> | |
<Text component={TextVariants.p}>{__('All fields are required.')}</Text> | |
<div className="wizard-title"> | |
<Title headingLevel="h2">{__('Category And Template')}</Title> | |
<Text component={TextVariants.p}>{__('All fields are required.')}</Text> | |
</div> |
f825171
to
7bef8d4
Compare
@LaViro This is also ready for a review |
Looks nice. A couple of thoughts
|
webpack/JobWizard/steps/HostsAndInputs/__tests__/TemplateInputs.test.js
Outdated
Show resolved
Hide resolved
|
Needs a rebase |
9093181
to
94f3124
Compare
rebased and changed the tests |
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.
Great work @MariaAga !
PR looks great and since it's small and readable,
I would suggest adding here some actual data
webpack/JobWizard/steps/CategoryAndTemplate/CategoryAndTemplate.js
Outdated
Show resolved
Hide resolved
The next pr adds data and has 750+ lines so I think its best to keep it split (#578) . |
a6bd51b
to
dc45ae4
Compare
dc45ae4
to
f1df785
Compare
f1df785
to
9f98b89
Compare
Looks good to me. @LaViro could you do a final review here? |
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.
Thanks @MariaAga ! works nicely,
left a few comments
@@ -72,7 +64,7 @@ describe('AdvancedFields', () => { | |||
.simulate('click'); | |||
|
|||
expect(wrapper.find('.pf-c-wizard__nav-link.pf-m-current').text()).toEqual( | |||
'Target Hosts' | |||
'Target hosts and inputs' |
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.
should it be WIZARD_TITLES.hostsAndInputs
?
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.
We usually dont use consts in tests. I think this could cause issues if there is an issue with the constant, for example if it's undefined or has a typo.
); | ||
await act(async () => { | ||
await fireEvent.click( | ||
screen.getByText('Target hosts and inputs', { selector: 'button' }) |
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.
screen.getByText('Target hosts and inputs', { selector: 'button' }) | |
screen.getByText(WIZARD_TITLES.hostsAndInputs, { selector: 'button' }) |
9f98b89
to
2290106
Compare
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.
ACK, thanks @MariaAga !
test error seem unrelated, happens due to minor version update of PF iiuc
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.
Let's get this in
(cherry picked from commit f6b84c8)
To only include the hosts selection method (without the actual selection), show host chips and show inputs.
Depends on: #554 for the input templates