Remove duplicate ids

Signed-off-by: Yogi_Wang <yawang@vmware.com>
This commit is contained in:
Yogi_Wang 2019-12-17 10:45:22 +08:00
parent 92a0206ca8
commit 95cf46ab62
2 changed files with 2 additions and 2 deletions

View File

@ -7,6 +7,6 @@
<div class="modal-footer">
<span class="spinner spinner-inline loading-top" [hidden]="inProgress === false"> </span>
<button type="button" class="btn btn-outline" id="close-btn" (click)="close()">{{'BUTTON.CANCEL' | translate}}</button>
<button id="sign-up" type="button" id="create-btn" class="btn btn-primary" [disabled]="!isValid || inProgress" (click)="create()">{{ 'BUTTON.SIGN_UP' | translate }}</button>
<button id="sign-up" type="button" class="btn btn-primary" [disabled]="!isValid || inProgress" (click)="create()">{{ 'BUTTON.SIGN_UP' | translate }}</button>
</div>
</clr-modal>

View File

@ -83,7 +83,7 @@ describe('SignUpComponent', () => {
component.open();
component.getNewUser = () => mockUser;
await fixture.whenStable();
const createBtn = fixture.nativeElement.querySelector('#create-btn');
const createBtn = fixture.nativeElement.querySelector('#sign-up');
createBtn.dispatchEvent(new Event('click'));
await fixture.whenStable();