[ADF-5318] E2E Content Change type (#6799)

* [ADF-5318] E2E Content Change type

* Update metadata-content-type.e2e.ts
This commit is contained in:
Dharan
2021-03-22 14:55:50 +05:30
committed by GitHub
parent 76de2c06f5
commit 8f8819c395
6 changed files with 243 additions and 3 deletions

View File

@@ -37,7 +37,7 @@
</mat-dialog-content>
<mat-dialog-actions align="end">
<button mat-button mat-dialog-close
id="conten-type-dialog-actions-cancel">{{'CORE.METADATA.CONTENT_TYPE.DIALOG.CANCEL' | translate }}</button>
id="content-type-dialog-actions-cancel">{{'CORE.METADATA.CONTENT_TYPE.DIALOG.CANCEL' | translate }}</button>
<button mat-button class="adf-content-type-dialog-apply-button" id="content-type-dialog-apply-button"
[mat-dialog-close]="true" cdkFocusInitial (click)="onApply()">{{'CORE.METADATA.CONTENT_TYPE.DIALOG.APPLY' |
translate}}</button>

View File

@@ -129,7 +129,7 @@ describe('Content Type Dialog Component', () => {
it('should complete the select stream Cancel button is clicked', (done) => {
data.select.subscribe(() => { }, () => { }, () => done());
const cancelButton: HTMLButtonElement = fixture.nativeElement.querySelector('#conten-type-dialog-actions-cancel');
const cancelButton: HTMLButtonElement = fixture.nativeElement.querySelector('#content-type-dialog-actions-cancel');
expect(cancelButton).toBeDefined();
cancelButton.click();
fixture.detectChanges();