Files
EventHubFrontAdmin/src/lib/testid.ts
T
aleksey 87c6b55e81
CI / test (push) Failing after 14m2s
CI / push-image (push) Has been skipped
CI / ci-done (push) Failing after 0s
feat(admin): Playwright E2E каркас — TESTIDS, login/shell/roles, CI mock. Refs EventHub/EventHubFrontAdmin#33 #34 #35
2026-07-14 22:18:34 +03:00

8 lines
297 B
TypeScript

/** Build stable data-testid values for E2E. */
export function testid(parts: Array<string | number | undefined | null>): string {
return parts
.filter((p) => p !== undefined && p !== null && `${p}`.length > 0)
.map((p) => String(p).replace(/\s+/g, '-'))
.join('-');
}