mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACS-11868] check pdf viewer e2e file (#5279)
* [ACS-11868] fix for excluded test add document check * [ACS-11868] fix test check pdf and image viewer-e2e-test * [ACS-11868] fix test check pdf and image viewer-e2e-test * resolve pr review changes * text fix * review fix
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
{
|
||||
"all": {
|
||||
"XAT-19377": "https://hyland.atlassian.net/browse/ACS-11868"
|
||||
}
|
||||
}
|
||||
"all": {}
|
||||
}
|
||||
@@ -89,8 +89,9 @@ test.describe('Version actions', () => {
|
||||
fileId = (await fileActionsApi.uploadFile(filesToUpload[0].path, filenameBeforeUpdate, '-my-')).entry.id;
|
||||
|
||||
fileAfterUpdateId = (
|
||||
await fileActionsApi.updateNodeContentFromFile(fileId, filesToUpload[1].path, true, 'new major version description', filenameAfterUpdate)
|
||||
await fileActionsApi.uploadNewVersionFile(fileId, filesToUpload[1].path, filenameAfterUpdate, true, 'new major version description')
|
||||
).entry.id;
|
||||
await fileActionsApi.waitForNodes(filenameAfterUpdate, { expect: 1 });
|
||||
|
||||
await favoritesApi.addFavoritesByIds('file', [fileId]);
|
||||
await favoritesApi.waitForApi(username, { expect: 1 });
|
||||
@@ -132,6 +133,8 @@ test.describe('Version actions', () => {
|
||||
|
||||
test('[XAT-19377] Can view previous version of a document after a viewer is opened from Manage Versions dialog', async ({ personalFiles }) => {
|
||||
await personalFiles.viewer.waitForViewerToOpen();
|
||||
await personalFiles.viewer.waitForViewerContentToRender('document');
|
||||
|
||||
await personalFiles.viewer.toolbar.clickViewerMoreActions();
|
||||
await personalFiles.matMenu.clickMenuItem('Manage Versions');
|
||||
await personalFiles.manageVersionsDialog.clickListActionButtonForVersion('2.0');
|
||||
|
||||
Reference in New Issue
Block a user