Spike for unusual test timeout for fleet#201443
Closed
eokoneyo wants to merge 2 commits intoelastic:mainfrom
Closed
Spike for unusual test timeout for fleet#201443eokoneyo wants to merge 2 commits intoelastic:mainfrom
eokoneyo wants to merge 2 commits intoelastic:mainfrom
Conversation
Contributor
|
🤖 Jobs for this PR can be triggered through checkboxes. 🚧
ℹ️ To trigger the CI, please tick the checkbox below 👇
|
eokoneyo
commented
Nov 22, 2024
Comment on lines
157
to
159
Contributor
Author
There was a problem hiding this comment.
There's no need to wrap fireEvent in act
eokoneyo
commented
Nov 22, 2024
Contributor
Author
There was a problem hiding this comment.
We shouldn't be cleaning up just before test starts, what's more with jest this is handled automatically for us
eokoneyo
commented
Nov 22, 2024
Comment on lines
92
to
94
Contributor
Author
There was a problem hiding this comment.
Also there's no need to render here, if we still invoke render again in each test suite
eokoneyo
commented
Nov 22, 2024
Contributor
Author
There was a problem hiding this comment.
there's no need to have assertions run within an act function
eokoneyo
commented
Nov 22, 2024
1392385 to
fde6dad
Compare
eokoneyo
commented
Nov 22, 2024
|
|
||
| import React from 'react'; | ||
|
|
||
| import { act, fireEvent } from '@testing-library/react'; |
Contributor
Author
eokoneyo
commented
Nov 22, 2024
|
|
||
| describe('RootPrivilegesCallout', () => { | ||
| function render(rootIntegrations?: Array<{ name: string; title: string }>) { | ||
| cleanup(); |
Contributor
Author
eokoneyo
commented
Nov 22, 2024
Comment on lines
+48
to
+50
| if (!deleteRowEl) { | ||
| throw new Error('Delete row button not found'); | ||
| } |
Contributor
Author
There was a problem hiding this comment.
This should actually be an assertion
eokoneyo
commented
Nov 22, 2024
Comment on lines
+128
to
+130
| if (deleteRowButtons.length !== 3) { | ||
| throw new Error('Delete row buttons not found'); | ||
| } |
Contributor
Author
There was a problem hiding this comment.
This could be an assertion
Merged
Contributor
Author
|
This has been picked up, in the PR referenced to this particular one |
juliaElastic
added a commit
that referenced
this pull request
Dec 2, 2024
CAWilson94
pushed a commit
to CAWilson94/kibana
that referenced
this pull request
Dec 12, 2024
## Summary Changes in elastic#201443 with some tweaks Closes elastic#201210 Closes elastic#200786 Closes elastic#191804 Closes elastic#199204
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:breakinglabel should be applied in these situations.release_note:*label is applied per the guidelinesIdentify risks
Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss.
Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging.