Skip to content

Commit

Permalink
Fix acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan committed Aug 2, 2023
1 parent 80ae928 commit 193662a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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 |
Expand All @@ -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
Expand All @@ -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
8 changes: 6 additions & 2 deletions tests/acceptance/stepDefinitions/filesContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand All @@ -497,7 +501,7 @@ When(
await client.page.FilesPageElement.filesList().toggleFileOrFolderCheckbox('enable', item[0])
}

return client.page.trashBinPage().deleteSelectedPermanently()
return client.page.trashbinPage().deleteSelectedPermanently()
}
)

Expand Down

0 comments on commit 193662a

Please sign in to comment.