[ACA-4432] Upload Dialog overlaps Upload New Version dialog (#2138)

* fix upload dialog z-index issue

* Fix MNT-21058

* remove unused import

Co-authored-by: iuliaib <iulia.burca@ness.com>
This commit is contained in:
Urse Daniel 2021-05-15 09:41:46 +03:00 committed by GitHub
parent 076a7f6a61
commit fbdedd2eb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 1 deletions

View File

@ -262,6 +262,9 @@ describe('Viewer actions', () => {
await uploadNewVersionDialog.uploadButton.click();
await uploadNewVersionDialog.waitForDialogToClose();
await viewer.waitForViewerToOpen();
await viewer.waitForFileTitleToBeDisplayed(docxFile);
await toolbar.openMoreMenu();
expect(await toolbar.menu.cancelEditingAction.isPresent()).toBe(false, `'Cancel Editing' button shouldn't be shown`);
expect(await toolbar.menu.editOfflineAction.isPresent()).toBe(true, `'Edit Offline' should be shown`);

View File

@ -54,6 +54,15 @@ export class Viewer extends Component {
}
}
async waitForFileTitleToBeDisplayed(fileTitle: string): Promise<void> {
try {
const fileName = this.byCssText('.adf-viewer__display-name', `${fileTitle}`);
await waitForPresence(fileName);
} catch (error) {
Logger.error('\n-----> catch waitForFileTitle <-----\n', error);
}
}
async waitForTxtViewerToLoad(): Promise<void> {
try {
await this.waitForViewerToOpen();

View File

@ -17,7 +17,7 @@
}
adf-file-uploading-dialog {
z-index: 1100;
z-index: 1000;
}
}