diff --git a/tests/acceptance/features/webUISharingInternalGroups/shareWithGroups.feature b/tests/acceptance/features/webUISharingInternalGroups/shareWithGroups.feature index 34398d3af99..c5d77966222 100644 --- a/tests/acceptance/features/webUISharingInternalGroups/shareWithGroups.feature +++ b/tests/acceptance/features/webUISharingInternalGroups/shareWithGroups.feature @@ -41,7 +41,8 @@ Feature: Sharing files and folders with internal groups | simple-folder (2) | | testimage (2).jpg | And these resources should be listed in the folder "simple-folder (2)" on the webUI - | lorem.txt | + | entry_name | + | lorem.txt | But these resources should not be listed in the folder "simple-folder (2)" on the webUI | entry_name | | simple-folder (2) | diff --git a/tests/acceptance/features/webUISharingInternalUsers/shareWithUsers.feature b/tests/acceptance/features/webUISharingInternalUsers/shareWithUsers.feature index 9042a7fecfb..4ffc5454433 100644 --- a/tests/acceptance/features/webUISharingInternalUsers/shareWithUsers.feature +++ b/tests/acceptance/features/webUISharingInternalUsers/shareWithUsers.feature @@ -36,7 +36,8 @@ Feature: Sharing files and folders with internal users | simple-folder (2) | | testimage (2).jpg | And these resources should be listed in the folder "simple-folder (2)" on the webUI - | lorem.txt | + | entry_name | + | lorem.txt | But these resources should not be listed in the folder "simple-folder (2)" on the webUI | entry_name | | simple-folder (2) | diff --git a/tests/acceptance/stepDefinitions/filesContext.js b/tests/acceptance/stepDefinitions/filesContext.js index 66494f0526a..00a1327950f 100644 --- a/tests/acceptance/stepDefinitions/filesContext.js +++ b/tests/acceptance/stepDefinitions/filesContext.js @@ -322,6 +322,9 @@ Then('as {string} these folders/files/resources should not be listed in the fold * @param {DataTable} entryList the list needs a heading line */ const theseResourcesShouldBeListed = function (entryList) { + if (entryList.rows().length <= 0) { + throw Error('Gerkin entry list is empty. Missing heading?') + } entryList.rows().forEach(entry => { // here each entry is an array with one element, // which is the name of the entry from the table