Merge pull request #10282 from jwangyangls/remove-id

Remove duplicate ids
This commit is contained in:
jwangyangls 2019-12-17 15:55:25 +08:00 committed by GitHub
commit a84500e934
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -7,6 +7,6 @@
<div class="modal-footer"> <div class="modal-footer">
<span class="spinner spinner-inline loading-top" [hidden]="inProgress === false"> </span> <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 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> </div>
</clr-modal> </clr-modal>

View File

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