-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Streams] Implement Routing UI + Data retention e2e tests #229791
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
[Streams] Implement Routing UI + Data retention e2e tests #229791
Conversation
|
/ci |
|
Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs) |
...atform/plugins/shared/streams_app/test/scout/ui/tests/data_management/data_retention.spec.ts
Outdated
Show resolved
Hide resolved
x-pack/platform/plugins/shared/streams_app/test/scout/ui/fixtures/page_objects/streams_app.ts
Show resolved
Hide resolved
This reverts commit 98b8ff7.
dmlemeshko
left a comment
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.
LGTM, thanks a lot for update 🚀
|
Pretty neat, however I think it would be great to add a test for the syntax-based condition editor. |
|
@flash1293 Added a test for the syntax editor to verify changes are reflected on the preview outcome, this should be ready for another look. |
flash1293
left a comment
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.
LGTM, thanks for adding that. Just one last request :)
...ed/streams_app/test/scout/ui/tests/data_management/data_routing/routing_data_preview.spec.ts
Show resolved
Hide resolved
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
Unknown metric groupsESLint disabled in files
Total ESLint disabled count
History
|
…9791) ## 📓 Summary Part of [elastic#245](elastic/logs-dev#245) This PR introduces a comprehensive Scout test suite for the **Stream Routing UI**. The tests cover key workflow areas, including creating, editing, reordering routing rules, error handling and recovery scenarios, and preview panel behavior with generated synthetic data. ## 🧪 Test Suite ``` Stream data routing ├─ Creating New routing rules │ ├─ should create a new routing rule successfully │ ├─ should cancel creating new routing rule │ ├─ should not let creating new routing rule while one is in progress │ ├─ should show validation errors for invalid stream names │ └─ should handle insufficient privileges gracefully │ ├─ Editing existing routing rules │ ├─ should edit an existing routing rule │ ├─ should cancel editing routing rule │ ├─ should switch between editing different rules │ ├─ should remove routing rule with confirmation │ └─ should cancel rule removal │ ├─ Reordering routing rules │ ├─ should reorder routing rules via drag and drop │ ├─ should cancel reordering │ └─ should handle multiple reorder operations │ ├─ Error handling and recovery │ ├─ should handle network failures during rule creation │ └─ should recover from API errors during rule updates │ └─ Preview panel ├─ should show the preview data during rule creation ├─ should update the preview data when the condition changes └─ should show no matches when the condition matches nothing Stream data retention └─ Updating data retention ├─ should update a stream data retention policy successfully └─ should reset a stream data retention policy successfully ``` --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
…9791) ## 📓 Summary Part of [elastic#245](elastic/logs-dev#245) This PR introduces a comprehensive Scout test suite for the **Stream Routing UI**. The tests cover key workflow areas, including creating, editing, reordering routing rules, error handling and recovery scenarios, and preview panel behavior with generated synthetic data. ## 🧪 Test Suite ``` Stream data routing ├─ Creating New routing rules │ ├─ should create a new routing rule successfully │ ├─ should cancel creating new routing rule │ ├─ should not let creating new routing rule while one is in progress │ ├─ should show validation errors for invalid stream names │ └─ should handle insufficient privileges gracefully │ ├─ Editing existing routing rules │ ├─ should edit an existing routing rule │ ├─ should cancel editing routing rule │ ├─ should switch between editing different rules │ ├─ should remove routing rule with confirmation │ └─ should cancel rule removal │ ├─ Reordering routing rules │ ├─ should reorder routing rules via drag and drop │ ├─ should cancel reordering │ └─ should handle multiple reorder operations │ ├─ Error handling and recovery │ ├─ should handle network failures during rule creation │ └─ should recover from API errors during rule updates │ └─ Preview panel ├─ should show the preview data during rule creation ├─ should update the preview data when the condition changes └─ should show no matches when the condition matches nothing Stream data retention └─ Updating data retention ├─ should update a stream data retention policy successfully └─ should reset a stream data retention policy successfully ``` --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
…9791) ## 📓 Summary Part of [elastic#245](elastic/logs-dev#245) This PR introduces a comprehensive Scout test suite for the **Stream Routing UI**. The tests cover key workflow areas, including creating, editing, reordering routing rules, error handling and recovery scenarios, and preview panel behavior with generated synthetic data. ## 🧪 Test Suite ``` Stream data routing ├─ Creating New routing rules │ ├─ should create a new routing rule successfully │ ├─ should cancel creating new routing rule │ ├─ should not let creating new routing rule while one is in progress │ ├─ should show validation errors for invalid stream names │ └─ should handle insufficient privileges gracefully │ ├─ Editing existing routing rules │ ├─ should edit an existing routing rule │ ├─ should cancel editing routing rule │ ├─ should switch between editing different rules │ ├─ should remove routing rule with confirmation │ └─ should cancel rule removal │ ├─ Reordering routing rules │ ├─ should reorder routing rules via drag and drop │ ├─ should cancel reordering │ └─ should handle multiple reorder operations │ ├─ Error handling and recovery │ ├─ should handle network failures during rule creation │ └─ should recover from API errors during rule updates │ └─ Preview panel ├─ should show the preview data during rule creation ├─ should update the preview data when the condition changes └─ should show no matches when the condition matches nothing Stream data retention └─ Updating data retention ├─ should update a stream data retention policy successfully └─ should reset a stream data retention policy successfully ``` --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
📓 Summary
Part of #245
This PR introduces a comprehensive Scout test suite for the Stream Routing UI.
The tests cover key workflow areas, including creating, editing, reordering routing rules, error handling and recovery scenarios, and preview panel behavior with generated synthetic data.
🧪 Test Suite