What this PR does / why we need it: This change includes happy path playwright query tests for all seven queries exposed by the query editor. The work includes:
Happy path test cases for each query using mocked data and making assertions on the rendering of expected form elements.
Addition of QueryEditor page object model test utility used to reduce duplication within tests and make it easier to write and maintain tests.
Addition of queryEditor test fixture to remove the need to instantiate the QueryEditor object model explicitly in every test.
Addition of missing ARIA labels in query editor components used for testing selectors.
Next steps:
Tests utilizing all of the available form fields (e.g., resolution, aggregation, time, format, etc.).
Tests for failure cases.
Improved request interception code (there is current significant duplication and code size).
What this PR does / why we need it: This change includes happy path playwright query tests for all seven queries exposed by the query editor. The work includes:
QueryEditor
page object model test utility used to reduce duplication within tests and make it easier to write and maintain tests.queryEditor
test fixture to remove the need to instantiate theQueryEditor
object model explicitly in every test.Next steps: