grafana/e2e/dashboards
Ivan Ortega Alba 381cc6555d
Refactor dashboard import to separate k8s and legacy paths (#116482)
* when importing v1 dashboard, use POST

* fix es-lint

* cleanup

* Isolate legacy import api usage

* Update translations

* Improve type detection

* Refactor types and utils to avoid duplication and isolate them in legacy when needed

* Use types from manage-dashboard since it is used from other files out of import

* Avoid regressions

* Fix linting and tests

* Improve types

* Consilidate api utils checkers

* Split ImportOverview in two versions

* simplify utils

* Fix tests

* Rename to ExportFormat

* linter

* refactor tests

* add gap

* add gap on ImportForm

* Update public/app/core/utils/isRecord.ts

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>

* clean up

* fix layout

* fix mock

* update kind when exporting to be DashboardWithAccessInfo

* remove type assertions; don't process built in annotations

* update E2Es to use correct dashboard kind

* update export test

* another e2e

* fix v2 dash for e2e

* check for "Dashboard" when checking for a resource

* update test

---------

Co-authored-by: Haris Rozajac <haris.rozajac12@gmail.com>
Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com>
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2026-02-02 07:14:01 -07:00
..
DashboardLiveTest.json Live: Add dashboard E2E smoke test (#79880) 2023-12-27 13:31:09 -05:00
DashboardSearchTest.json DashboardSchema: Remove old unused legacy props style and timepicker.enable (#73879) 2023-08-28 12:18:17 +02:00
DataLinkWithoutSlugTest.json DashboardScenePage: Correct slug in self referencing data links (#100048) 2025-04-11 09:25:21 +01:00
PanelSandboxDashboard.json Tests: Add basic e2e tests for frontend plugin sandbox (#70759) 2023-09-26 10:58:47 +02:00
TestDashboard.json DashboardSchema: Remove old unused legacy props style and timepicker.enable (#73879) 2023-08-28 12:18:17 +02:00
TestV2Dashboard.json Refactor dashboard import to separate k8s and legacy paths (#116482) 2026-02-02 07:14:01 -07:00