feat(admin): Playwright E2E каркас — TESTIDS, login/shell/roles, CI mock. Refs EventHub/EventHubFrontAdmin#33 #34 #35
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
/** 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('-');
|
||||
}
|
||||
Reference in New Issue
Block a user