Test Plan | Variables in Dashboard
This is a test plan for Variables in Dashboard epic. The plan is drafted according to the child epic.
Variables in Dashboard MVC2
Epic: gitlab-org&3074 (closed)
End to end layer
e2e scenarios to be covered with GitLab QA to be on located under 8_monitor
:
- QA [testcase] Use templating variables (text and custom variable type) to adjust a PromQL query when loading a dashboard and successfully copy the URL with selected values
Integration layer:
Using frontend and backend labels to identify the use of RSpec
and Jest
on the test case.
Existing coverage:
-
frontend
variable_mapping_spec.js
covers parsing of objects given several variable combos -
frontend
custom_variable_spec.js
covers custom variable render, with text, many dropdown items, update of dropdown items -
frontend
text_variable_spec.js
covers text variable render, trigger keyup, trigger blur, and the existence of a default value -
frontend
variables_section_spec.js
covers the section actions on variables such as show/no show section, update of inputs, URL parameter merges when having a custom or text-based variable updated -
frontend
utils_spec.js
covers copy of chart link for custom variables -
backend
prometheus_api_controller_spec.js
Prometheus proxy GET API checks for variables in Hash to handle elements in a query that can be in a rearranged order -
backend
proxy_variable_substitution_service_spec.js
covers the verification of error message when passing optional parameter variables that are not Hash -
frontend
dashboard_spec.js
covers the show or no show of variables section in the context of dashboard
Improving coverage:
- frontend can search/filter for a custom variable option within the dropdown menu and dashboard is updated
- frontend or QA multi-component interaction and update between the variables section and time/quick range filter
- frontend deletion of templating variables after selection in dropdown should remove dropdowns smoothly
Test code improvements:
- ~backstage frontend consider a fixture for
mockTemplatingDataResponses
in./mock_data
Variables in Dashboard MVC3
coming soon
Edited by Sofia Vistas