* Enable clearWithKeyboard option when filling out custom elements form
* Added canvas functional tests path to CODEOWNERS
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [Reporting/Test] Add Functional test for download CSV
* add todo
* add fs.existsSync check to find download
* debug
* handle timeout
* validate toast
* different way of getting repo_root
* report delete test
* removed the exclusive test
* new archived reports
* added pagination test
* implemented review changes
* Removed the unwanted method
* addressed the review comments
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* snapshot updates
* bump to eui 22.3.0
* snapshots
* Fix css selector in test to match EUI internal DOM change
* Updated snapshots
* Insert react-beautiful-dnd@10 into top-level kibana to force siem's node_modules to hold its correct version
* More snapshot updates, resolved a typescript issue
* Move react-beautiful-dnd dependency around to make things happy again
* Use SearchFilterConfig from the top-level eui export
* Swallow 'ResizeObserver error does not have an err object' error in canvas
* Swallow ResizeObserver error cross-browser
* WIP replacing GQL with redux/rest.
* Finish implementing migration.
* Introduce new connected component for ping list.
* Replace GraphQL type with io-ts.
* Update some broken tests.
* Add test for new helper function.
* Write test snapshots.
* Migrate api tests from graphql to rest.
* Update fixtures that rely on pings.
* Move ping types to runtime_types folder with rest of io-ts files.
* Update Ping type location and imports, type checking.
* Remove reliance on fixtures for ping functional API tests.
* Fix broken unit tests.
* Fix broken types.
* Remove local state storage from parent components.
* Add functional test to cover Ping List functionality.
* Fix monitor page functional test that was broken by merge conflicts.
* Fix broken tests.
* Fix broken API test.
* Replace a test with a describe block that will pre-navigate all tests.
* Delete unused reducer keys.
* Re-introduce loading to ping list reducer.
* Inroduce code that will cause PingList to re-fetch when refresh button is pressed.
* Update expanded rows to support multiple concurrent expanded rows.
* Modify pingList reducer to have singular optional error field.
* Delete unnecessary helper code.
* Delete unused interface.
* Add runtime_type to parse getPings params, fix pagination index.
* Add dedicated monitor type to runtime_types.
* Fix broken tests.
* Fix broken tests.
* Rename '@timestamp' property to 'timestamp' on Ping type.
* Fix broken type and key pings list table on document ID instead of timestamp.
* Fix broken unit tests.
* Fix broken tests and types.
* Fix broken functional test.
* update test
* added test
* updated type
* updated test
* updated test
* update test
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Endpoint successfully depending on ingest manager to initialize
* Moving the endpoint functional tests to their own directory to avoid enabling ingest in the base tests
* Removing page objects and other endpoint fields from base functional
* Updating code owners with new functional location
* Pointing resolver tests at endpoint functional tests
* Pointing space tests at the endpoint functional directory
* Adding jest test names
* Default uptime alert type and disable changing type.
* Update functional test to handle new UI flow.
* Fix type error.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [Maps] source registry and register seperate clusters and heat map sources
* split into to registries
* add EMS file source
* add geojson upload layer
* register rest of sources
* i18n changes
* ts lint errors
* fix jest test
* fix pew-pew source
* review feedback
* import registires in plugin so they exist in embeddable
* remove order parameter and move all layer registies into single file
* fix functionalt est
* pass constructor to sourceREgistry instead of factory
* review feedback
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* add functional test
* update func test
* refactor more changed
* update test
* update test
* update type and test
* fix the fix of fix, which din't get fix
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* endpoint-161-refactor-management-list-test
* fix location of es archive file
* restored missing data and added new tests
* remove commented out code
* implement suggested enhancments
* fix api tests to use the restored data
* add endpoint metadata to the alert es_archive
* restore the original alerts/api_feature archive
* skipped failing endpoint alert tests
* configurable test users for xpack
* removed exclusive tests
* added data-test-subj for the access denied page
* updated the JEST snapshot, cleaned up the test
* changes to the test_api_keys role
* more changes to consolidate the page object function
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* create coverage folder only if json file being saved
* skip some tests
* unskip test
* do not fail coverage run if some tests fail
* unskip fixed test
* Add configurable page size to monitor list.
* Add functional tests for new feature.
* Update outdated snapshots.
* Extract UI concerns for size select component to dedicated function.
* Add missing props to resolve type check errors.
* Add unit test for new UI functionality.
* Refresh snapshots after additional changes.
* Introduce new parameter to API test function.
* Update flex behavior for new UI component.
* Clean up code in functional page object file.
* Refresh snapshots that were broken by previous feedback implementation.
* Fix async error introduced to test framework by other patch.
Adds a settings page to the Uptime UI. The settings page values are per-space. The only current setting is heartbeatIndices.
To test this against alternate indices try changing setup.ilm.rollover_alias in heartbeat.yml to something like alt-prefix. See the ilm docs for more details.
This should be tested with read-only and write only roles. To test this in kibana try creating two users with two different roles in kibana. One roll should have read access to the Uptime space in kibana. The other should have all access. Both should have read permissions for the heartbeat-* index pattern.
This patch also splits API perms from just heartbeat to uptime-read and uptime-write.
This patch also refactors some of the header component functionality, using hooks for breadcrumbs, and making the top links optional.
Fixeselastic/uptime#43
* WIP trying things.
Add new alert type for Uptime.
Add defensive checks to alert executor.
Move status check code to dedicated adapter function.
Clean up code.
* Port adapter function to dedicated file.
* WIP.
* Working on parameter selection.
* Selector expressions working.
* Working on actions.
* Change anchor prop for popovers.
* Reference migrated alerting plugin.
* Clean up code for draft.
* Add button to expose flyout. Clean up some client code.
* Add test for requests function, add support for filters.
* Reorganize and clean up files.
* Add location and filter support to monitor status request function.
* Add tests for monitor status request function.
* Specify default action group id in alert registration.
* Extract repeated string value to a constant.
* Move test file to server in NP plugin.
* Update imports after NP migration.
* Fix UI bug that caused incorrect location selections in alert creation.
* Change alert expression language to clarify meaning.
* Add ability for user to select timerange units.
* Add code that fixes active item highlighting.
* Add better default value for active index selection.
* Introduce dedicated field number component.
* Add message to status check alert.
* Add tests for context message.
* Formalize alert action group definitions.
* Extract monitor id squashing from context message generator.
* Write test for monitor ID uniqueness function.
* Add alert state creator function and tests.
* Update action group id value.
* Add tests for alert factory and executor function.
* Rename alert context props to be more domain-specific.
* Clean up unnecessary type markup.
* Clean up alert ui controls file.
* Better organize new registration code.
* Simplify some logic code.
* Clean up bootstrap code.
* Add unit tests for alert type.
* Delete temporary test code from triggers_actions_ui.
* Rename a test file.
* Add some comments to annotate a file.
* Add io-ts type checking to alert create validation and alert executor.
* Add translation of plaintext content string.
* Further simplify monitor status alert validation.
* Add io-ts type checking to alert params.
* Update a comment.
* Prefer inline snapshots to more error-prone assertions.
* Clean up and comment request function.
* Rename a symbol.
* Fix broken types in reducer file and add a test.
* Fix a validation logic error and add tests.
* Delete unused import.
* Delete obsolete dependency.
* Fix function call to have correct parameters.
* Fixing some import weirdness.
* Reintroduce accidentally-deleted code.
* Delete unneeded require from legacy entry file.
* Remove unneeded connected component.
* Update flyout controls for new interface and delete connected components.
* Remove unneeded require from app index file.
* Introduce data-test-subj attributes to various components to assist with functional tests.
* Introduce functional test helpers for alert flyout.
* Add functional test arch and a test for alerting UI to ES SSL test suite.
* Add explicit exports to module index.
* Reorganize file to keep interfaces closer to their implementations.
* Move create alert button to better position.
* Clean up a file.
* Update a functional test attribute, clean up a file, rename a selector, add tests.
* Add a comment.
* Make better default alert message, translate messages, add/update tests.
* Fix broken type.
* Update obsolete snapshot.
* Introduce mock provider to tests and update snapshots.
* Reduce a strange type to `any`.
* Add alert flyout button connected component.
* Add alert flyout wrapper connected component.
* Create connected component for alert monitor status alert.
* Clean up index files.
* Update i18nrc file to cover translation in server plugin code.
* Fix broken imports.
* Update test snapshots.
* Prefer more descriptive type.
* Prefer more descriptive type.
* Prefer built-in React propType to custom.
* Prefer simpler validation.
* Add whitespace to clean up file.
* Extract function and write tests.
* Simplify validation function.
* Add navigate to alerting button.
* Move context item inside the items list.
* Clean up alert creation component.
* Update type check parsing and error messaging, and update snapshot/test assertions.
* Update broken snapshot.
* Update README for running functional tests.
* Update functional test service to reflect improved UX.
* Fix broken type that resulted from a mistake during a merge resolution.
* Add spacer between alert title and kuery bar.
* Update the id and name of our alert type because it was never changed from placeholder value.
* Rename alert keys.
* Fix broken unit tests.
* Add aria-labels to alert UI.
* Implement design feedback.
* Fix broken test snapshots.
* Add missing props to unit tests to staisfy updated types.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This PR adds basic functional tests for the file data visualizer, covering a file import and error messages for non-log files. It also moves the file input path handling to a common location in order to avoid code duplication.
* Add SearchBar UI. Query, filter, and dateRange work
* Sync url with search bar, fix excluded filters on BE
* fix welcome title
* Use KibanaReactContext, fix indexPattern fetch
* Mock data plugin, api and ui tests pass
* Add view and functional tests
* use observables to handle filter updates
* address comments
* Added app load test for API Keys app
* Fixed linting issues.
* Fixed typecheck issue, edited config to enable API Keys app, and fixed typo in method name.
* Config fix.
* Fixed assertion for API Keys header.
* Added changes per nits on PR.
* Removed API Keys server config from the siem_cypress config since it's defined at the top level. Left a comment saying so.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>