Skip to content

Commit

Permalink
adjusts the function to asserst deleted Elements are not listed
Browse files Browse the repository at this point in the history
  • Loading branch information
jasson99 committed Apr 6, 2021
1 parent eb821de commit dde55bd
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Other free text and markdown formatting can be used elsewhere in the document if
- [webUIAccount/accountInformation.feature:20](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIAccount/accountInformation.feature#L20)

### [REPORT request not implemented](https://github.com/owncloud/ocis/issues/1330)
- [webUIDeleteFilesFolders/deleteFilesFolders.feature:253](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIDeleteFilesFolders/deleteFilesFolders.feature#L253)
- [webUIDeleteFilesFolders/deleteFilesFolders.feature:249](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIDeleteFilesFolders/deleteFilesFolders.feature#L249)
- [webUIFavorites/favoritesFile.feature:14](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFavorites/favoritesFile.feature#L14)
- [webUIFavorites/favoritesFile.feature:27](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFavorites/favoritesFile.feature#L27)
- [webUIFavorites/favoritesFile.feature:40](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFavorites/favoritesFile.feature#L40)
Expand All @@ -51,7 +51,7 @@ Other free text and markdown formatting can be used elsewhere in the document if
- [webUIFilesDetails/fileDetails.feature:46](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L46)

### [Sharing seems to work but does not work](https://github.com/owncloud/ocis/issues/1303)
- [webUIDeleteFilesFolders/deleteFilesFolders.feature:202](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIDeleteFilesFolders/deleteFilesFolders.feature#L202)
- [webUIDeleteFilesFolders/deleteFilesFolders.feature:198](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIDeleteFilesFolders/deleteFilesFolders.feature#L198)
- [webUIFilesDetails/fileDetails.feature:88](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L88)
- [webUIFilesDetails/fileDetails.feature:103](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L103)
- [webUIFilesActionMenu/versions.feature:33](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesActionMenu/versions.feature#L33)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Feature: deleting files and folders
And user "Alice" has logged in using the webUI
And the user has browsed to the files page

@skip @smokeTest @ocisSmokeTest
@skipOnOC10 @smokeTest @ocisSmokeTest
Scenario: Delete files & folders one by one and check its existence after page reload
Given user "Alice" has created file "sample,1.txt"
And user "Alice" has created folder "Sample,Folder,With,Comma"
Expand Down Expand Up @@ -71,10 +71,6 @@ Feature: deleting files and folders
And there should be no resources listed on the webUI after a page reload
And no message should be displayed on the webUI





@ocis-reva-issue-106 @ocis-reve-issue-442 @skipOnOC10 @issue-4582
Scenario: Delete all except for a few files at once
When the user marks all files for batch action using the webUI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Feature: move files
When the user tries to move file "strängé filename (duplicate #2 &).txt" into folder "strängé नेपाली folder" using the webUI
Then the error message with header 'An error occurred while moving strängé filename (duplicate #2 &).txt' should be displayed on the webUI

@smokeTest @skip
@smokeTest @skipOnOC10
Scenario: Move multiple files at once
Given user "Alice" has logged in using the webUI
And the user has browsed to the files page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Feature: files and folders exist in the trashbin after being deleted
And user "Alice" has created folder "Folder,With,Comma"
And the user has browsed to the files page

@smokeTest @ocis-reva-issue-111 @skipOnOCIS @issue-product-186 @skip
@smokeTest @ocis-reva-issue-111 @skipOnOCIS @issue-product-186 @skipOnOC10
Scenario: Delete files & folders one by one and check that they are all in the trashbin
When the user deletes the following elements using the webUI
| name |
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/stepDefinitions/filesContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ const assertElementsAreNotListed = async function(elements) {
for (const element of elements) {
const state = await client.page.FilesPageElement.filesList().isElementListed(
element,
'file',
'any',
client.globals.waitForNegativeConditionTimeout
)
assert.ok(!state, `Expected resource '${element}' to be 'not present' but found 'present'`)
Expand Down

0 comments on commit dde55bd

Please sign in to comment.