mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA-1920] automate tests for Create file from template (#1303)
* change component ancestor from ElementFinder to string for better usability better naming for some methods small code cleanup * add test components and automate tests for Create File from Template action * ignore e2e-downloads folder * add return types * enable check * enable check after issue got fixed
This commit is contained in:
committed by
Cilibiu Bogdan
parent
0bc4a3453b
commit
569ee98e8d
@@ -225,13 +225,12 @@ describe('Viewer actions', () => {
|
||||
});
|
||||
|
||||
it('Upload new version action when node is locked - [MNT-21058]', async () => {
|
||||
|
||||
await dataTable.doubleClickOnRowByName(fileForUploadNewVersion2);
|
||||
await viewer.waitForViewerToOpen();
|
||||
|
||||
await toolbar.openMoreMenu();
|
||||
expect(await toolbar.menu.isCancelEditingActionPresent()).toBe(true, `'Cancel Editing' button should be shown`);
|
||||
expect(await toolbar.menu.isEditOfflineActionPresent()).toBe(false, `'Edit Offline' shouldn't be shown`);
|
||||
expect(await toolbar.menu.isCancelEditingPresent()).toBe(true, `'Cancel Editing' button should be shown`);
|
||||
expect(await toolbar.menu.isEditOfflinePresent()).toBe(false, `'Edit Offline' shouldn't be shown`);
|
||||
|
||||
await toolbar.menu.clickMenuItem('Upload New Version');
|
||||
await Utils.uploadFileNewVersion(docxFile);
|
||||
@@ -240,8 +239,8 @@ describe('Viewer actions', () => {
|
||||
await uploadNewVersionDialog.clickUpload();
|
||||
|
||||
await toolbar.openMoreMenu();
|
||||
expect(await toolbar.menu.isCancelEditingActionPresent()).toBe(false, `'Cancel Editing' button shouldn't be shown`);
|
||||
expect(await toolbar.menu.isEditOfflineActionPresent()).toBe(true, `'Edit Offline' should be shown`);
|
||||
expect(await toolbar.menu.isCancelEditingPresent()).toBe(false, `'Cancel Editing' button shouldn't be shown`);
|
||||
expect(await toolbar.menu.isEditOfflinePresent()).toBe(true, `'Edit Offline' should be shown`);
|
||||
});
|
||||
|
||||
it('Full screen action - [C279282]', async () => {
|
||||
|
Reference in New Issue
Block a user