Skip to content

Commit d3c23d6

Browse files
add test to check the sync activity in Sync Protocal tab (#11726)
1 parent a947c54 commit d3c23d6

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
@@ -288,3 +288,8 @@ def step(context):
288288
def step(context):
289289
SyncConnection.remove_folder_sync_connection()
290290
SyncConnection.confirm_folder_sync_connection_removal()
291+
292+
293+
@Then('the file "|any|" should have status "|any|" in the activity tab')
294+
def step(context, file_name, status):
295+
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+
And the user clicks on the activity tab
19+
And the user selects "Local Activity" tab in the activity
20+
Then the file "lorem-for-upload.txt" should have status "Uploaded" in the activity tab
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)