[ILM] Refactor edit_policy client integration tests into separate feature files#92826
[ILM] Refactor edit_policy client integration tests into separate feature files#92826yuliacech merged 5 commits intoelastic:masterfrom
Conversation
1c324d0 to
16e4e50
Compare
|
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
|
@yuliacech Could you collaborate with @cuff-links and get his input on the readability and scannability of these tests? In our retro we identified a need to better coordinate our automated test coverage with our manual test coverage. I think one step in this direction will be to make it easier for QA engineers to understand the UX flows being tested by our automated tests, so they can compare them against the UX flows covered by TestRail. I think this will be a long-term process so no need to get it right in this particular PR, but I think this is a good opportunity to start gathering this feedback. WDYT? |
|
Thanks for pointing this out, @cjcenizal! I'll make sure to get @cuff-links input and feedback for this. |
jloleysens
left a comment
There was a problem hiding this comment.
This is looking really great @yuliacech ! 🎉 The new structure is really cool.
I agree with CJ's comment regarding readability of tests, to my mind the thing that could use more careful thinking through is how the describe and test names serialize into something really clear for readers of the test results. At least, I know I could do better here! I think that consistency is of primary importance but I'd be interested to hear from @cuff-links (and you) too! Not sure we need to block this PR on that though - we can always do another pass.
Would you mind converting the PR description to use ASCII-style tree (generated with CLI tree) for the new test dir structure:
client_integration
├── app
│ ├── app.helpers.tsx
│ └── app.test.ts
├── edit_policy
│ ├── constants.ts
│ ├── edit_policy.helpers.tsx
│ ├── edit_policy.test.ts
│ ├── form_validation
│ │ ├── cold_phase_validation.test.ts
│ │ ├── delete_phase_validation.ts
│ │ ├── hot_phase_validation.test.ts
│ │ ├── policy_name_validation.test.ts
│ │ └── warm_phase_validation.test.ts
│ └── reactive_form
│ ├── node_allocation.test.ts
│ └── reactive_form.test.ts
└── helpers
├── http_requests.ts
├── index.ts
└── setup_environment.ts
5 directories, 15 files
This would really help me to grok the structural changes introduced in this PR!
The main thing I'd like to get your thoughts on for my review, before approving (because mostly this looks pretty great to me!!) is the the reactive_form.test.ts file. At the moment my concern is that it is not 100% clear when I should add something here vs another feature test file. This can be addressed by a comment or README.md to capture the constraints of when to add something there. Alternatively, the tests in reactive_form.test.ts could be moved to separate or existing feature test files. For instance; min age tooltip could be moved to rollover file, JSON flyout could be its own feature and the special delete phase behaviour could also be its own file. Let me know what you think of one of those two directions!
|
@elasticmachine merge upstream |
|
merge conflict between base and head |
16e4e50 to
f0a7380
Compare
|
Thanks a lot for your review, @jloleysens! I agree about |
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
jloleysens
left a comment
There was a problem hiding this comment.
Thanks for making those changes @yuliacech ! Happy for this to be merged!
|
I've merged this PR for now and will plan a feedback session with @cuff-links when he's back. |
…ture files (elastic#92826) * Refactor edit_policy client integration tests into separate feature files * Fixed merge conflicts with master * Updated rollover tests to match master branch code * Split reactive_form into smaller files * Renamed flyout tests file
…bana into task-manager/docs-monitoring * 'task-manager/docs-monitoring' of github.com:gmmorris/kibana: [ILM] Allow multiple searchable snapshot actions (elastic#92789) Improve consistency for display of management items (elastic#92694) skip flaky suite (elastic#93152) skip flaky suite (elastic#93152) [ILM] Refactor edit_policy client integration tests into separate feature files (elastic#92826) Add developer documentation about the building blocks we offer plugin developers (elastic#92743) [Security Solution] Case ui enhancement (elastic#91863) [Security Solution] [Detections] Updates warning message when no indices match provided index patterns (elastic#93094) Collect agent telemetry even when fleet server is disabled. (elastic#93198) [Lens] Fix runtime validation error message (elastic#93195) [Lens] Remove warning about ordinal x-domain (elastic#93049) [Security Solution] Fixes the Customize Event Renderers modal by removing the EuiOverlayMask (elastic#93150) Cleanup Security plugin imports (elastic#93056) [Security Solution] - Bug fixes (elastic#92294) Updated doc links (elastic#92968) [ML] Transforms: Fixes chart histograms for runtime fields. (elastic#93028) [chore] Enable core's eslint rule: `@ts-expect-error` (elastic#93086)
* master: (199 commits) Convert Canvas docs to MDX for use in Elastic Docs (elastic#91969) [Bazel] More resilient Workspace Status (elastic#93244) [Discover] Change icon of saved search in open search panel and embeddable selection (elastic#93001) [Workplace Search] Role Mappings to Kibana (elastic#93123) [Fleet] Use type-only imports where possible (elastic#92979) [Lens] Set pie chart slices sorted clockwise (elastic#92617) Remove ms label from CPU load on status page (elastic#92836) [App Search] Migrate Create Meta Engine View (elastic#92127) [Time to Visualize] Disable Visualize URL Tracker When Linked to OriginatingApp (elastic#92917) [ILM] Allow multiple searchable snapshot actions (elastic#92789) Improve consistency for display of management items (elastic#92694) skip flaky suite (elastic#93152) skip flaky suite (elastic#93152) [ILM] Refactor edit_policy client integration tests into separate feature files (elastic#92826) Add developer documentation about the building blocks we offer plugin developers (elastic#92743) [Security Solution] Case ui enhancement (elastic#91863) [Security Solution] [Detections] Updates warning message when no indices match provided index patterns (elastic#93094) Collect agent telemetry even when fleet server is disabled. (elastic#93198) [Lens] Fix runtime validation error message (elastic#93195) [Lens] Remove warning about ordinal x-domain (elastic#93049) ...
Addresses #88593
Continues work started in PR#91657
Summary
This PR refactors the 2nd large
edit_policy.test.tsfile into separate files categorized by features of the form.Folder structure before
Folder structure after
Description of changes
form_validationfolderreactive_form.test.tsinto smaller files and renamedreactive_formfolder tofeaturesthat now contains:serializationfolder with serialization testsFuture work