opensearch-project / dashboards-flow-framework

A UI designer for constructing AI applications with OpenSearch
Apache License 2.0
9 stars 7 forks source link

Integration test coverage #101

Open ohltyler opened 8 months ago

ohltyler commented 8 months ago

Initial integration tests should cover some basic flows:

  1. Create workflow via import -> nav to details page
  2. Create workflow via import (invalid UI metadata) -> nav to details page
  3. Create workflow from template -> nav to details page -> run ingestion to create index
  4. Create workflow from template -> nav to details page -> run ingestion to create index + ingest pipeline
  5. Create workflow from template -> nav to details page -> skip ingestion
  6. Create workflow from template -> nav to details page -> run ingestion to create some resources -> run search to create search pipeline
  7. Create workflow from template -> nav to details page -> run ingestion -> delete resources
  8. Details page - navigation between ingest -> search -> ingest etc. work as expected
  9. Details page - save / undo buttons work as expected
  10. Workflow list - view resources
  11. Workflow list - delete workflow including resources
  12. Workflow list - delete workflow not including resources

To integrate this plugin:

  1. Onboard to https://github.com/opensearch-project/opensearch-dashboards-functional-test
  2. Create a GHA workflow to trigger and run remotely - for an example, see AD plugin's workflow: https://github.com/opensearch-project/anomaly-detection-dashboards-plugin/blob/main/.github/workflows/remote-integ-tests-workflow.yml
saimedhi commented 1 week ago

https://github.com/opensearch-project/dashboards-flow-framework/pull/426 https://github.com/opensearch-project/opensearch-dashboards-functional-test/pull/1586