Skip to content

Commit 633ba04

Browse files
committed
add test to check the sync activity in Sync Protocal tab
1 parent b7253cd commit 633ba04

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

test/gui/shared/steps/sync_context.py

+5
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,8 @@ def step(context):
287287
def step(context):
288288
SyncConnection.remove_folder_sync_connection()
289289
SyncConnection.confirm_folder_sync_connection_removal()
290+
291+
292+
@Then('the file "|any|" should have status "|any|"')
293+
def step(context, file_name, status):
294+
Activity.hasSyncStatus(file_name, status)

test/gui/tst_syncing/test.feature

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ Feature: Syncing files
1515
test content
1616
"""
1717
And the user waits for file "lorem-for-upload.txt" to be synced
18-
Then as "Alice" the file "lorem-for-upload.txt" should have the content "test content" in the server
18+
When the user clicks on the activity tab
19+
And the user selects "Sync Protocol" tab in the activity
20+
Then the file "file with space.txt" should have status "Uploaded"
21+
And as "Alice" the file "lorem-for-upload.txt" should have the content "test content" in the server
1922

2023

2124
Scenario: Syncing all files and folders from the server

0 commit comments

Comments
 (0)