mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
use new static drop actions
This commit is contained in:
@@ -68,8 +68,7 @@ describe('Document List Component - Properties', () => {
|
||||
|
||||
const dragAndDropArea = contentServicesPage.getRowByName(subFolder.entry.name);
|
||||
|
||||
const dragAndDrop = new DropActions();
|
||||
await dragAndDrop.dropFile(dragAndDropArea, pngFile.location);
|
||||
await DropActions.dropFile(dragAndDropArea, pngFile.location);
|
||||
await contentServicesPage.checkContentIsDisplayed(pngFile.name);
|
||||
await contentServicesPage.doubleClickRow(subFolder.entry.name);
|
||||
await contentServicesPage.checkEmptyFolderTextToBe('This folder is empty');
|
||||
@@ -83,8 +82,7 @@ describe('Document List Component - Properties', () => {
|
||||
|
||||
const dragAndDropArea = contentServicesPage.getRowByName(subFolder.entry.name);
|
||||
|
||||
const dragAndDrop = new DropActions();
|
||||
await dragAndDrop.dropFile(dragAndDropArea, pngFile.location);
|
||||
await DropActions.dropFile(dragAndDropArea, pngFile.location);
|
||||
|
||||
await contentServicesPage.checkContentIsNotDisplayed(pngFile.name);
|
||||
await contentServicesPage.doubleClickRow(subFolder.entry.name);
|
||||
|
@@ -92,9 +92,7 @@ describe('Upload component - Excluded Files', () => {
|
||||
|
||||
const dragAndDropArea = element.all(by.css('adf-upload-drag-area div')).first();
|
||||
|
||||
const dragAndDrop = new DropActions();
|
||||
|
||||
await dragAndDrop.dropFile(dragAndDropArea, iniExcludedFile.location);
|
||||
await DropActions.dropFile(dragAndDropArea, iniExcludedFile.location);
|
||||
|
||||
await browser.sleep(5000);
|
||||
|
||||
|
@@ -261,10 +261,9 @@ describe('Upload component', () => {
|
||||
await browser.sleep(1000);
|
||||
await uploadToggles.addExtension('.docx');
|
||||
|
||||
const dragAndDrop = new DropActions();
|
||||
const dragAndDropArea = element.all(by.css('adf-upload-drag-area div')).first();
|
||||
|
||||
await dragAndDrop.dropFile(dragAndDropArea, docxFileModel.location);
|
||||
await DropActions.dropFile(dragAndDropArea, docxFileModel.location);
|
||||
await contentServicesPage.checkContentIsDisplayed(docxFileModel.name);
|
||||
|
||||
await uploadDialog.removeUploadedFile(docxFileModel.name);
|
||||
@@ -272,7 +271,7 @@ describe('Upload component', () => {
|
||||
await uploadDialog.clickOnCloseButton();
|
||||
await uploadDialog.dialogIsNotDisplayed();
|
||||
|
||||
await dragAndDrop.dropFile(dragAndDropArea, pngFileModel.location);
|
||||
await DropActions.dropFile(dragAndDropArea, pngFileModel.location);
|
||||
await contentServicesPage.checkContentIsNotDisplayed(pngFileModel.name);
|
||||
await uploadDialog.dialogIsNotDisplayed();
|
||||
await uploadToggles.disableExtensionFilter();
|
||||
|
Reference in New Issue
Block a user