mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
[AAE-2456] - added lowercase random string generator for e2e tests (#5645)
This commit is contained in:
parent
f03592f230
commit
13e17f8673
@ -35,6 +35,15 @@ export class StringUtil {
|
|||||||
return StringUtil.generateRandomCharset(length, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789');
|
return StringUtil.generateRandomCharset(length, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generates a random lowercase string.
|
||||||
|
*
|
||||||
|
* @param length If this parameter is not provided the length is set to 8 by default.
|
||||||
|
*/
|
||||||
|
static generateRandomLowercaseString(length: number = 8): string {
|
||||||
|
return StringUtil.generateRandomCharset(length, 'abcdefghijklmnopqrstuvwxyz0123456789');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates a random email address following the format: abcdef@activiti.test.com
|
* Generates a random email address following the format: abcdef@activiti.test.com
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user