Skip to content

Commit 5f67df7

Browse files
committed
More entropy for dashboard titles
1 parent 3930855 commit 5f67df7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/e2e/pom/CmkQueryEditorPage.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { E2ESelectorGroups, PanelEditPage, expect } from '@grafana/plugin-e2e';
22
import { Page } from '@playwright/test';
3+
import { v4 as uuidv4 } from 'uuid';
34

45
import { CmkEdition, GRAFANA_SELECTORS, GRAFANA_TEXT, GraphTypes, Graphs } from '../constants';
56
import { wait } from '../lib/util';
@@ -28,7 +29,7 @@ export class CmkQueryEditorPage extends CmkBasePage {
2829

2930
async savePanel(name: string | null = null) {
3031
if (name == null) {
31-
name = 'Test Dashboard ' + Math.floor(Math.random() * 1000).toString();
32+
name = 'Test Dashboard ' + uuidv4();
3233
}
3334

3435
await this.page.locator(GRAFANA_SELECTORS.DASHBOARD.APPLY_CHANGES_AND_SAVE_BUTTON).click();

0 commit comments

Comments
 (0)