[ADF-4480] Viewer shows endless spinner for unsupported files (#4937)

* added asserting for the unsupported format file message.

* removing return statement

* removing return statement
This commit is contained in:
Geeta Mandakini Ayyalasomayajula
2019-07-15 19:18:07 +01:00
committed by Eugenio Romano
parent 6b0fe7b6b9
commit 76c938800f
2 changed files with 12 additions and 0 deletions

View File

@@ -307,6 +307,8 @@ describe('Content Services Viewer', () => {
viewerPage.checkInfoButtonIsDisplayed();
viewerPage.checkZoomInButtonIsNotDisplayed();
viewerPage.checkUnknownFormatIsDisplayed();
expect(viewerPage.getUnknownFormatMessage()).toBe('Couldn\'t load preview. Unknown format.');
viewerPage.clickCloseButton();
});