From 193662a87510d90b7e6f2ad9d0a67880110f72d3 Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 2 Aug 2023 22:46:06 +0200 Subject: [PATCH] Fix acceptance tests --- .../features/webUITrashbinDelete/trashbinDelete.feature | 8 ++++---- tests/acceptance/stepDefinitions/filesContext.js | 8 ++++++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/tests/acceptance/features/webUITrashbinDelete/trashbinDelete.feature b/tests/acceptance/features/webUITrashbinDelete/trashbinDelete.feature index 1bcfa0cdb44..30030ce1425 100644 --- a/tests/acceptance/features/webUITrashbinDelete/trashbinDelete.feature +++ b/tests/acceptance/features/webUITrashbinDelete/trashbinDelete.feature @@ -34,7 +34,7 @@ Feature: files and folders can be deleted from the trashbin @ocisSmokeTest @issue-4582 Scenario: Select some files and delete from trashbin in a batch - When the user batch deletes these files using the webUI + When the user batch deletes these files permanently using the webUI | name | | lorem.txt | | lorem-big.txt | @@ -97,7 +97,7 @@ Feature: files and folders can be deleted from the trashbin | fo.xyz | And the user has browsed to the trashbin page And the user has reloaded the current page of the webUI - When the user batch deletes these files using the webUI + When the user batch deletes these files permanently using the webUI | name | | fo. | | fo.1 | @@ -113,7 +113,7 @@ Feature: files and folders can be deleted from the trashbin | name | | lorem.txt | | lorem-big.txt | - And the user batch deletes the marked files using the webUI + And the user batch deletes the marked files permanently using the webUI Then file "lorem.txt" should be listed on the webUI And file "lorem-big.txt" should be listed on the webUI But file "data.zip" should not be listed on the webUI @@ -122,5 +122,5 @@ Feature: files and folders can be deleted from the trashbin @issue-product-188 @issue-4582 Scenario: Select all files and delete from trashbin in a batch When the user marks all files for batch action using the webUI - And the user batch deletes the marked files using the webUI + And the user batch deletes the marked files permanently using the webUI Then there should be no resources listed on the webUI diff --git a/tests/acceptance/stepDefinitions/filesContext.js b/tests/acceptance/stepDefinitions/filesContext.js index f9515b5da8d..7e7d39a7531 100644 --- a/tests/acceptance/stepDefinitions/filesContext.js +++ b/tests/acceptance/stepDefinitions/filesContext.js @@ -474,7 +474,11 @@ When('the user marks all files for batch action using the webUI', function () { }) When('the user batch deletes the marked files permanently using the webUI', function () { - return client.page.trashBinPage().deleteSelectedPermanently() + return client.page.trashbinPage().deleteSelectedPermanently() +}) + +When('the user batch deletes the marked files permanently using the webUI', function () { + return client.page.trashbinPage().deleteSelectedPermanently() }) When('the user/public batch deletes the marked files using the webUI', function () { @@ -497,7 +501,7 @@ When( await client.page.FilesPageElement.filesList().toggleFileOrFolderCheckbox('enable', item[0]) } - return client.page.trashBinPage().deleteSelectedPermanently() + return client.page.trashbinPage().deleteSelectedPermanently() } )