The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/e2e/custom-plugins/app-with-exposed-components
Erik Sundell 2ed6ca360f
Extensions: e2e test usePluginComponent hook (#91750)
10 months ago
..
img Extensions: e2e test usePluginComponent hook (#91750) 10 months ago
plugins/myorg-componentexposer-app Extensions: e2e test usePluginComponent hook (#91750) 10 months ago
README.md Extensions: e2e test usePluginComponent hook (#91750) 10 months ago
module.js Extensions: e2e test usePluginComponent hook (#91750) 10 months ago
plugin.json Extensions: e2e test usePluginComponent hook (#91750) 10 months ago

README.md

App with exposed components

This directory contains two apps - myorg-componentconsumer-app and myorg-componentexposer-app which is nested inside myorg-componentconsumer-app.

myorg-componentconsumer-app exposes a simple React component using the exposeComponent api. myorg-componentconsumer-app in turn, consumes this compoment using the https://grafana.com/developers/plugin-tools/reference/ui-extensions#useplugincomponent hook.

To test this app:

# start e2e test instance (it will install this plugin)
PORT=3000 ./scripts/grafana-server/start-server
# run Playwright tests using Playwright VSCode extension or with the following script
yarn e2e:playwright

or

PORT=3000 ./scripts/grafana-server/start-server
yarn start
yarn e2e