mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-23 18:05:09 +00:00
Change email domain for users created by e2e (#7910)
* Change email domain for users created by e2e * Fix typo * Use example.net as default
This commit is contained in:
parent
2c80214999
commit
1a76776e65
@ -74,6 +74,7 @@ if (LOG) {
|
||||
module.exports = {
|
||||
|
||||
projectName: 'adf',
|
||||
emailDomain: 'example.net',
|
||||
|
||||
appConfig: appConfig,
|
||||
|
||||
|
@ -33,14 +33,14 @@ export class UserModel {
|
||||
id: number;
|
||||
|
||||
constructor(details: any = {}) {
|
||||
const EMAIL_DOMAIN = browser.params?.testConfig?.projectName ? browser.params.testConfig.projectName : 'alfresco';
|
||||
const EMAIL_DOMAIN = browser.params?.testConfig?.emailDomain ? browser.params.testConfig.emailDomain : 'example.net';
|
||||
this.firstName = details.firstName ? details.firstName : this.firstName;
|
||||
this.lastName = details.lastName ? details.lastName : this.lastName;
|
||||
|
||||
const USER_IDENTIFY = `${this.firstName}${this.lastName}.${StringUtil.generateRandomLowercaseString(5)}`;
|
||||
|
||||
this.password = details.password ? details.password : this.password;
|
||||
this.email = details.email ? details.email : `${USER_IDENTIFY}@${EMAIL_DOMAIN}.com`;
|
||||
this.email = details.email ? details.email : `${USER_IDENTIFY}@${EMAIL_DOMAIN}`;
|
||||
this.username = details.username ? details.username : USER_IDENTIFY;
|
||||
this.idIdentityService = details.idIdentityService ? details.idIdentityService : this.idIdentityService;
|
||||
this.type = details.type ? details.type : this.type;
|
||||
|
Loading…
x
Reference in New Issue
Block a user