use new static drop actions

This commit is contained in:
Eugenio Romano
2020-06-09 01:25:08 +01:00
parent 76d391669c
commit fffa97c7f8
5 changed files with 9 additions and 16 deletions

View File

@@ -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);