[ADF-3810] Should rearrange toolbar actions in Viewer (#4199)

* in progress

* done

* done

* moved all the expect statements into a single method 'checkButtonOrderInViewerToolbar' in viewerPage.ts

* lint fixes

* code review comments - updated the button list to fetch the last button in the toolbar and asserting that the last button is the 'More Actions' menu button.

* code review comments

* linting fixes

* updated the right test case id
This commit is contained in:
gmandakini
2019-01-31 09:31:23 +00:00
committed by Eugenio Romano
parent f77764bc21
commit cfda5f820a
2 changed files with 27 additions and 3 deletions

View File

@@ -271,6 +271,17 @@ describe('Content Services Viewer', () => {
viewerPage.clickCloseButton();
});
it('[C291903] Should display the buttons in order in the adf viewer toolbar', () => {
viewerPage.viewFile(pdfFile.name);
viewerPage.checkLeftSideBarIsNotDisplayed();
viewerPage.clickLeftSidebarButton();
viewerPage.checkLeftSideBarIsDisplayed();
viewerPage.enableMoreActionsMenu();
viewerPage.checkToolbarIsDisplayed();
expect(viewerPage.getLastButtonTitle()).toEqual(viewerPage.getMoreActionsMenuTitle());
viewerPage.clickCloseButton();
});
it('[C260053] Should display first page, toolbar and pagination when opening a .docx file', () => {
viewerPage.viewFile(docxFile.name);
viewerPage.checkZoomInButtonIsDisplayed();