Files
grafana/e2e-playwright/dashboard-cujs/dashboardUidsState.ts
Victor Marin 27b3137baf Dashboards: User journey E2Es (#109049)
* wip

* wip

* wip

* wip

* scope e2es

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* add dashboard view tests

* mods cujs

* wip refactor

* remove timeouts

* fixes

* betterer

* fixes

* refactor

* refactor

* fix

* use type instead of any

* betterer

* PR mods + codeowners

* CODEOWNERS

* readme lint
2025-09-04 15:17:54 +03:00

12 lines
304 B
TypeScript

export const setDashboardUIDs = (uids: string[]) => {
process.env.DASHBOARD_UIDS = JSON.stringify(uids);
};
export const getDashboardUIDs = (): string[] => {
return JSON.parse(process.env.DASHBOARD_UIDS || '[]');
};
export const clearDashboardUIDs = () => {
delete process.env.DASHBOARD_UIDS;
};