-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat(HMS-3332): Migrate to PF5 #365
Conversation
This PR also seems to fix the wizard's modal resizing: Screen.Recording.2023-12-28.at.19.27.53.mov |
Will you be pushing anymore commits or shall I start testing it? :) |
2544a9d
to
c058841
Compare
@akhil-jha, done - unit tests are 🟢 |
Great! I'll start working on it then :) |
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.
Code LGTM and I've tested most of the happy paths and empty state for no source and everything works as expected 🎉
Will wait for @akhil-jha to ack this, which might take a while (we need the ephem cluster working first)
/retest |
/retest maaybe now? xD |
I am seeing this in the pipeline. Maybe because of this the IQE test isn't starting?
|
Can you elaborate? I don’t understand. |
Ah right, I did not even look properly there and missed this! This test fails: In the past it was sometimes because of Jenkins being slower then GH actions, so just bumping the limits might help. |
@@ -36,17 +36,17 @@ describe('ProvisioningWizard', () => { | |||
|
|||
render(<ProvisioningWizard hasAccess image={{ ...awsImage, sourceIDs: ['1'] }} />); | |||
// wait for the sources to load | |||
await screen.findByText('Select account', undefined, { timeout: 10000 }); | |||
await screen.findByText('Select account', undefined, { timeout: 15000 }); |
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.
This is the place where the pr_check fails. Let me bump this bit more :)
/retest |
2 similar comments
/retest |
/retest |
<EmptyState variant="lg"> | ||
<EmptyStateHeader | ||
headingLevel="h4" | ||
title={polledReservation?.success ? 'System(s) launched successfully' : 'Launching system(s)'} |
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.
I think it should be titleText
. https://www.patternfly.org/components/empty-state#emptystateheader
Because I am getting the following....
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.
oh, good catch! :)
<Title size="lg" headingLevel="h4"> | ||
Loading available Sources | ||
</Title> | ||
<EmptyStateHeader headingLevel="h4" title="Loading available Sources" icon={<EmptyStateIcon icon={Spinner} />} /> |
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.
same as here
321e7fa
to
bfad349
Compare
@@ -36,13 +36,9 @@ describe('ProvisioningWizard', () => { | |||
|
|||
render(<ProvisioningWizard hasAccess image={{ ...awsImage, sourceIDs: ['1'] }} />); | |||
// wait for the sources to load | |||
await screen.findByText('Select account', undefined, { timeout: 10000 }); |
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.
this is redundant check, it just make the test be slower, if the Source 1
exists, we don't need the Select account
placeholder.
/retest |
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.
commit message check is still failing.
Also, @amirfefer can you restore the pr_check.sh change?
I will be creating a new PR for the CICD_URL change.
bfad349
to
f2b8c95
Compare
This PR migrate to PF5 following the official migration guide and
@patternfly/pf-codemods
PF5 supports react 18+, so this PR also update
react
andreact-dom
This PR NOT refactored the
Wizard
andSelect
components. These have some heavy breaking changes, and will be refactored in a follow up PR. For now, we use the deprecated components from@patternfly/react-core/deprecated'
@akhil-jha, This might break tests, because some selectors are changed or removed, unit testing is broken a bit, needs a small align.