Fix user model default email domain (#6242)

* Fix user model

* Update user.model.ts
This commit is contained in:
Eugenio Romano
2020-10-13 12:48:16 +01:00
committed by GitHub
parent 3aab5f7d2c
commit 4bde7654bd
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ export class UserModel {
id: number; id: number;
constructor(details: any = {}) { constructor(details: any = {}) {
const EMAIL_DOMAIN = browser.params.testConfig ? browser.params.testConfig.projectName : 'alfresco'; const EMAIL_DOMAIN = browser.params?.testConfig?.projectName ? browser.params.testConfig.projectName : 'alfresco';
this.firstName = details.firstName ? details.firstName : this.firstName; this.firstName = details.firstName ? details.firstName : this.firstName;
this.lastName = details.lastName ? details.lastName : this.lastName; this.lastName = details.lastName ? details.lastName : this.lastName;

View File

@@ -200,7 +200,7 @@ else
ls dist/demo-shell/ || exit 1 ls dist/demo-shell/ || exit 1
npm run postbuild:ci npm run postbuild:ci || exit 1
npm run lite-server-e2e>/dev/null & $DEBUG_OPTION ./node_modules/protractor/bin/protractor ./e2e/protractor.conf.js || exit 1 npm run lite-server-e2e>/dev/null & $DEBUG_OPTION ./node_modules/protractor/bin/protractor ./e2e/protractor.conf.js || exit 1
else else