diff --git a/src/portal/src/app/account/sign-in/sign-in.component.html b/src/portal/src/app/account/sign-in/sign-in.component.html
index 8590d25a9..2342192e8 100644
--- a/src/portal/src/app/account/sign-in/sign-in.component.html
+++ b/src/portal/src/app/account/sign-in/sign-in.component.html
@@ -4,7 +4,7 @@
-
@@ -38,7 +38,7 @@
{{ 'SIGN_IN.INVALID_MSG' | translate }}
{{ 'BUTTON.LOG_IN' | translate }}
+ (click)="signIn()" id="log_in">{{ 'BUTTON.LOG_IN' | translate }}
{{ 'BUTTON.SIGN_UP_LINK' | translate }}
diff --git a/src/portal/src/app/project/project-detail/project-detail.component.ts b/src/portal/src/app/project/project-detail/project-detail.component.ts
index b32f37659..98fcccd51 100644
--- a/src/portal/src/app/project/project-detail/project-detail.component.ts
+++ b/src/portal/src/app/project/project-detail/project-detail.component.ts
@@ -85,15 +85,9 @@ export class ProjectDetailComponent implements OnInit {
permissionsList.push(this.userPermissionService.getPermission(projectId,
USERSTATICPERMISSION.LABEL.KEY, USERSTATICPERMISSION.LABEL.VALUE.CREATE));
forkJoin(...permissionsList).subscribe(Rules => {
- this.hasLogListPermission = Rules[0] as boolean;
- this.hasConfigurationListPermission = Rules[1] as boolean;
- this.hasMemberListPermission = Rules[2] as boolean;
- this.hasReplicationListPermission = Rules[3] as boolean;
- this.hasLabelListPermission = Rules[4] as boolean;
- this.hasRepositoryListPermission = Rules[5] as boolean;
- this.hasHelmChartsListPermission = Rules[6] as boolean;
- this.hasRobotListPermission = Rules[7] as boolean;
- this.hasLabelCreatePermission = Rules[8] as boolean;
+ [this.hasLogListPermission, this.hasConfigurationListPermission, this.hasMemberListPermission, this.hasReplicationListPermission
+ , this.hasLabelListPermission, this.hasRepositoryListPermission, this.hasHelmChartsListPermission, this.hasRobotListPermission
+ , this.hasLabelCreatePermission] = Rules;
}, error => this.errorHandler.error(error));
}
diff --git a/tests/resources/Harbor-Pages/HomePage_Elements.robot b/tests/resources/Harbor-Pages/HomePage_Elements.robot
index 91035a400..96a13ffe3 100644
--- a/tests/resources/Harbor-Pages/HomePage_Elements.robot
+++ b/tests/resources/Harbor-Pages/HomePage_Elements.robot
@@ -28,7 +28,7 @@ ${signup_xpath} //clr-modal/div/div[1]/div/div/div[3]/button[2]
${signup_xpath} /html/body/harbor-app/harbor-shell/clr-main-container/div/div/sign-in/sign-up/clr-modal/div/div[1]/div/div[1]/div/div[3]/button[2]
${search_input} xpath=//*[@id='search_input']
-${login_btn} css=.btn
+${login_btn} id=log_in
${harbor_span_title} xpath=//span[contains(., 'Harbor')]
${login_name} id=login_username
${login_pwd} id=login_password