Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/gui/features/delete-files-folders/delete.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Feature: deleting files and folders
| fileName |
| textfile0.txt |
| textfile0-with-name-more-than-20-characters |
| ~`!@#$^&()-_=+{[}];',textfile.txt |
| ~`!@#$^&()-_=+{[}];',textfile.txt |

@issue-9439 @smoke
Scenario Outline: Delete a folder
Expand Down Expand Up @@ -46,7 +46,7 @@ Feature: deleting files and folders
And as "Alice" file "textfile2.txt" should exist in the server
And as "Alice" folder "test-folder2" should exist in the server

@skip

Scenario: Delete multiple files
Given user "Alice" has uploaded the following files to the server
| file | content |
Expand All @@ -65,7 +65,7 @@ Feature: deleting files and folders
| textfile1.txt |
And as "Alice" file "textfile2.txt" should exist in the server

@skip

Scenario Outline: Create and delete a file with special characters
Given user "Alice" has set up a client with default settings
When user "Alice" creates a file "<fileName>" with the following content inside the sync folder
Expand Down
3 changes: 1 addition & 2 deletions test/gui/steps/file_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,7 @@ def step(context, resource_name, destination):
@When('the user deletes the following files')
def step(context):
wait_for_client_to_be_ready()

for row in context.table[1:]:
for row in context.table:
Comment thread
Asmitapaudel marked this conversation as resolved.
filename = row[0]
deleteResource(filename, 'file')

Expand Down
22 changes: 10 additions & 12 deletions test/gui/steps/server_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,23 +115,21 @@ def step(context, user_name, server_file_name, local_file_name):
)


@Then(
r'as "([^"].*)" following files should not exist in the server',
regexp=True,
)
@Then('as "{user_name}" following files should not exist in the server',)
def step(context, user_name):
for row in context.table[1:]:
for row in context.table:
resource_name = row[0]
test.compare(
webdav.resource_exists(user_name, resource_name),
False,
f"Resource '{resource_name}' should not exist, but does",
)
resource_exists = webdav.resource_exists(user_name, resource_name)
with ensure(
f"Resource '{resource_name}' should not exist, but it does",
):
resource_exists.should.be.false



@Given('user "|any|" has uploaded the following files to the server')
@Given('user "{user}" has uploaded the following files to the server')
def step(context, user):
for row in context.table[1:]:
for row in context.table:
file_name = row[0]
file_content = row[1]
webdav.create_file(user, file_name, file_content)
Expand Down
Loading