[Ingest pipelines] Component integration tests#65316
[Ingest pipelines] Component integration tests#65316alisonelizabeth merged 16 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
sebelga
left a comment
There was a problem hiding this comment.
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.
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 |
…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.