Skip to content
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

[TSVB] Add more functional tests #102606

Closed
stratoula opened this issue Jun 18, 2021 · 2 comments · Fixed by #105060 or #123906
Closed

[TSVB] Add more functional tests #102606

stratoula opened this issue Jun 18, 2021 · 2 comments · Fixed by #105060 or #123906
Assignees
Labels
Feature:Functional Testing Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@stratoula
Copy link
Contributor

stratoula commented Jun 18, 2021

Describe the feature:
We want to add more functional tests for our TSVB plugin.

Some scenarios that will be useful to test are:

  1. Test actual chart data (elastic-charts offers this ability now) (for example with an Avg aggregation, percentile aggregation)
  2. Test group by terms (chart data and legends, also colors applied)
  3. Test group by filters (chart data, legend, add a custom name, change the color, see if it is applied)
  4. Add a new series, check that the new series is rendered, change the type to bar, test that a bar is rendered
  5. Override the index pattern, add another one, are the data displayed correctly (do it without selecting a timefield)
  6. Filter the data, are they filtered correctly?
  7. Change the interval from auto to another value, test the chart data
  8. Test the Panel filter
  9. Test annotations
  10. Test annotations with runtime fields! (after this [TSVB] annotations support runtime fields #104287 is merged)

Note: Testing actual annotations data requires extending debug data in elastic-charts (elastic/elastic-charts#1260)

  1. Test the entire timerange mode
  2. Test the last value mode
  3. Add some color rules and check is they are applied
  4. Test the index pattern and the string mode
  1. Test style and color rules
  2. Change the series color and check if it is applied
  3. Test the entire timerange mode
  4. Test the last value mode
  1. Test the entire timerange mode
  2. Test the last value mode
  3. Create a test for the math agg
  4. Add more tests for various aggregations
@stratoula stratoula added Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Functional Testing labels Jun 18, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@DianaDerevyankina
Copy link
Contributor

Waiting for elastic charts debug data to be extended with annotations data to add some tests for annotations actual data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Functional Testing Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
3 participants