kibana/test/examples
Walter Rafelsberger 5345e34ddc
[ML] Adds redux toolkit example for response_stream to developer examples. (#182690)
## Summary

Follow up to #132590.
Part of #181111.

This updates the developer examples for `@kbn/ml-response-stream` to
include a variant with a full Redux Toolkit setup. For this case, the
`@kbn/ml-response-stream` now includes a generic slice `streamSlice`
that can be used. This allows the actions created to be streamed via
NDJSON to be shared across server and client.

Functional tests for the examples were added too. To run these tests you
can use the following commands:

```
# Start the test server (can continue running)
node scripts/functional_tests_server.js --config test/examples/config.js
# Start a test run
node scripts/functional_test_runner.js --config test/examples/config.js
```

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2024-05-22 16:51:36 +02:00
..
bfetch_explorer [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
content_management Upgrade EUI to v91.0.0 (with backports) (#170716) 2023-12-18 11:15:15 -06:00
data_view_field_editor_example [Data Views] Fix flaky test skipped in #170047 (#178915) 2024-03-19 20:36:17 -03:00
discover_customization_examples [Discover] Remove Discover customization profiles (#181259) 2024-04-23 12:39:32 -03:00
error_boundary Functional tests for KibanaErrorBoundary (#170569) 2023-11-08 11:23:19 -07:00
expressions_explorer [Expressions] Unskips test (#175879) 2024-01-30 19:52:49 +02:00
field_formats [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
hello_world [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
partial_results [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
response_stream [ML] Adds redux toolkit example for response_stream to developer examples. (#182690) 2024-05-22 16:51:36 +02:00
routing [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
search [FTR] Refactor toasts svc (#174222) 2024-02-14 09:24:20 +00:00
state_sync [FTR] Update getAttribute method return (#179715) 2024-04-10 10:28:03 -07:00
ui_actions [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
unified_field_list_examples Fix flaky test from #172781 (#176972) 2024-02-15 16:08:13 -04:00
config.js [ML] Adds redux toolkit example for response_stream to developer examples. (#182690) 2024-05-22 16:51:36 +02:00
README.md Add top level examples folder and command to run, --run-examples. (#52027) 2019-12-10 18:02:03 -05:00

Example plugin functional tests

This folder contains functional tests for the example plugins.

Run the test

To run these tests during development you can use the following commands:

# Start the test server (can continue running)
node scripts/functional_tests_server.js --config test/examples/config.js
# Start a test run
node scripts/functional_test_runner.js --config test/examples/config.js

Run Kibana with a test plugin

In case you want to start Kibana with the example plugins, you can just run:

yarn start --run-examples