-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Ingest pipelines] Component integration tests #65316
[Ingest pipelines] Component integration tests #65316
Conversation
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
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 job @alisonelizabeth ! I left a few comments, no blockers. I ran the tests locally and no issues 👍
x-pack/plugins/ingest_pipelines/__jest__/client_integration/helpers/http_requests.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/ingest_pipelines/__jest__/client_integration/helpers/http_requests.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/ingest_pipelines/__jest__/client_integration/helpers/pipeline_form.helpers.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/ingest_pipelines/__jest__/client_integration/helpers/pipelines_list.helpers.ts
Outdated
Show resolved
Hide resolved
|
||
await act(async () => { | ||
testBed = await setup(); | ||
await testBed.waitFor('pipelineForm'); |
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.
Just a note about waitFor
. I realized it might not have been the best idea to add setTimout
calls inside our tests (which is what waitFor
does).
It seems (but I am still investigating) that some of the timing issues we are getting in our tests come from setTimeout
calls inside the code being tested (and the form lib has some).
Once I get to the bottom of it I'll share my findings 😊 For now let's keep with this small hack.
x-pack/plugins/ingest_pipelines/__jest__/client_integration/ingest_pipelines_list.test.ts
Outdated
Show resolved
Hide resolved
@elasticmachine merge upstream |
user doesn't have permission to update head repository |
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.
Checked this out locally. Ran several times. LGTM. Coverage is good and takes care of our basic use cases.
…nes/component_tests
Thanks for the review @cuff-links and @sebelga! Going to run this through CI a few times before merging. |
…nes/component_tests
…nes/component_tests
…nes/component_tests
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
This PR adds component integration tests for the Ingest Node Pipelines UI.