grafana/e2e-playwright/various-suite
Nathan Marrs 8263803e81
Grafana Data Source: Add random walk configuration options (#113009)
* Grafana: Add random walk configuration options to Grafana datasource

Add UI controls to configure random walk parameters (min, max, start value,
spread, noise, drop percent) to match TestData datasource functionality.

- Add RandomWalkEditor component with inline number inputs for all parameters
- Update GrafanaQuery type to include random walk configuration fields
- Update backend to parse and apply query parameters to RandomWalk function
- Configuration options match TestData datasource UX for consistency

* Grafana: Add series count support to random walk

Add ability to generate multiple random walk series in a single query
for complete parity with TestData datasource.

- Add seriesCount field to RandomWalkEditor
- Update backend to loop and generate multiple frames based on series count
- Default to 1 series if not specified for backward compatibility

* Grafana: Improve random walk editor UI with better organization and tooltips

Enhance the random walk configuration UI for better usability:

- Organize fields into two logical rows (core config vs fine-tuning)
- Add helpful tooltips to all fields explaining their purpose
- Increase label width to prevent text wrapping
- Group related fields visually for better comprehension

Row 1: Series count, Start value, Min, Max (basic shape and range)
Row 2: Spread, Noise, Drop % (randomness and variation controls)

This provides a cleaner, more intuitive experience compared to TestData's
single-row layout, making it easier for users to configure random walks.

* Grafana: Format RandomWalkEditor code

Apply consistent formatting to RandomWalkEditor component.

* Grafana: Add E2E tests for random walk configuration

Add comprehensive Playwright E2E tests to verify random walk functionality:

- Test that all configuration fields render correctly
- Test min/max value constraints
- Test multiple series generation
- Test spread and noise parameters
- Test drop percentage for simulating missing data
- Test that tooltips are present and functional

These tests ensure the random walk configuration works end-to-end from
UI input to data rendering in panels.

* Grafana: Fix E2E tests for random walk configuration

Fix Playwright test selectors and assertions to work reliably:

- Use specific element IDs to avoid selector conflicts
- Remove flaky dropPercent check from rendering test (covered separately)
- Simplify test assertions to focus on functional verification
- All 7 tests now passing consistently

Tests verify: field rendering, min/max constraints, series count,
spread/noise configuration, drop percentage, and tooltips.

* Grafana: Add advanced E2E tests for random walk

Add two additional tests for better coverage:

- Test configuration value persistence across interactions
- Test that series count actually generates the expected number of series

These tests verify deeper functionality beyond basic UI rendering,
ensuring the random walk feature works correctly end-to-end.

All 9 tests passing consistently (20.1s runtime).

* Grafana: Remove redundant Min/Max tooltips

Remove tooltips from Min and Max fields that just repeated the label text.
These fields are self-explanatory and don't need tooltip icons.

Keeps the UI cleaner while maintaining helpful tooltips on fields that
actually benefit from explanation (Series count, Start value, Spread,
Noise, Drop %).

* Grafana: Add CODEOWNERS entry for random walk E2E tests

Add codeowner assignment for the new grafana-datasource-random-walk.spec.ts
test file to @grafana/grafana-frontend-platform, matching the ownership of
the Grafana datasource code.

* Add dashboardTemplates feature toggle and put new changes behind this toggle to limit impact

* Grafana: Add unit tests for dashboardTemplates feature toggle

Add unit tests to verify RandomWalkEditor renders correctly based on
the dashboardTemplates feature toggle:

- Test that random walk editor renders when FF is enabled
- Test that random walk editor is hidden when FF is disabled

These tests ensure the feature toggle works as expected and prevents
the random walk configuration UI from appearing when the feature is disabled.

* revert previous codeowners change as not necessary

* Grafana: Remove redundant E2E test for feature flag disabled

Remove E2E test for dashboardTemplates feature flag disabled scenario
since it's already covered by unit tests and E2E environment can't
reliably control server-side feature flags.

Feature flag behavior is properly tested in QueryEditor.test.tsx unit tests.
E2E tests focus on functional validation when the feature is enabled.

* fix lint
2025-10-28 13:05:32 -07:00
..
bar-gauge.spec.ts
bookmarks.spec.ts Repeats: Add E2E tests for custom grid repeats (#110884) 2025-09-18 10:11:35 +03:00
exemplars.spec.ts
explore.spec.ts
filter-annotations.spec.ts
frontend-sandbox-app.spec.ts Playwright: Some tweaks to improve stability (#108667) 2025-07-25 10:54:07 +01:00
frontend-sandbox-datasource.spec.ts Playwright: Fix remaining various-suite tests (#110667) 2025-09-08 16:57:39 +01:00
gauge.spec.ts
grafana-datasource-random-walk.spec.ts Grafana Data Source: Add random walk configuration options (#113009) 2025-10-28 13:05:32 -07:00
graph-auto-migrate.spec.ts
inspect-drawer.spec.ts Dashboard: Inspect drawer can no longer be opened with url or linked to (#109617) 2025-08-15 13:32:19 +02:00
keybinds.spec.ts Dashboards: Fix missing Ctrl+O keyboard shortcut for crosshair toggle (#111310) 2025-09-19 16:03:02 +00:00
loki-query-builder.spec.ts
loki-table-explore-to-dash.spec.ts Table: Enable tableNextGen by default (#109832) 2025-08-26 17:25:16 -04:00
migrate-to-cloud.spec.ts Playwright: Fix remaining various-suite tests (#110667) 2025-09-08 16:57:39 +01:00
navigation.spec.ts
perf-test.spec.ts E2E: Add performance monitoring E2E test (#109417) 2025-08-20 19:36:54 +00:00
pie-chart.spec.ts
prometheus-annotations.spec.ts
prometheus-config.spec.ts Playwright: Fix remaining various-suite tests (#110667) 2025-09-08 16:57:39 +01:00
prometheus-editor.spec.ts Playwright: Fix remaining various-suite tests (#110667) 2025-09-08 16:57:39 +01:00
prometheus-variable-editor.spec.ts Playwright: Fix remaining various-suite tests (#110667) 2025-09-08 16:57:39 +01:00
query-editor.spec.ts
return-to-previous.spec.ts
solo-route.spec.ts Dashboards: Repeating with no clone keys (#109839) 2025-08-20 10:21:18 +02:00
trace-view-scrolling.spec.ts E2E: Fix trace-view-scrolling test flakiness (#111896) 2025-10-02 09:29:10 +01:00
verify-i18n.spec.ts
visualization-suggestions.spec.ts Table: Enable tableNextGen by default (#109832) 2025-08-26 17:25:16 -04:00