|
1 | 1 | import type { ElectronApplication, Page, TestInfo } from "@playwright/test"; |
2 | 2 | import { _electron as electron, expect, test as testBase } from "@playwright/test"; |
3 | 3 | import archiver from "archiver"; |
4 | | -import { randomUUID } from "crypto"; |
5 | 4 | import { stubAllDialogs, stubDialog } from "electron-playwright-helpers"; |
6 | 5 | import { createWriteStream, existsSync, mkdtempSync, readFileSync } from "fs"; |
7 | 6 | import { tmpdir } from "os"; |
@@ -29,6 +28,7 @@ import { |
29 | 28 | } from "./utils/connections"; |
30 | 29 | import { configureVSCodeSettings } from "./utils/settings"; |
31 | 30 | import { openConfluentSidebar } from "./utils/sidebarNavigation"; |
| 31 | +import { randomHexString } from "./utils/strings"; |
32 | 32 |
|
33 | 33 | // NOTE: we can't import these two directly from 'global.setup.ts' |
34 | 34 | // cached test setup file path that's shared across worker processes |
@@ -306,7 +306,7 @@ export const test = testBase.extend<VSCodeFixtures>({ |
306 | 306 | // ensure connection has resources available to work with |
307 | 307 | await expect(connectionItem.locator).toHaveAttribute("aria-expanded", "true"); |
308 | 308 |
|
309 | | - const topicName = `${topicConfig.name}-${randomUUID()}`; |
| 309 | + const topicName = `${topicConfig.name}-${randomHexString(6)}`; |
310 | 310 |
|
311 | 311 | // set default replication factor (if it wasn't provided) based on connection type |
312 | 312 | const replicationFactor = |
|
0 commit comments