mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
committed by
Eugenio Romano
parent
f77764bc21
commit
cfda5f820a
@@ -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();
|
||||
|
Reference in New Issue
Block a user