Skip to content

Commit a1ebfdd

Browse files
committed
add test to check the sync activity in Sync Protocal tab
1 parent 7623ad7 commit a1ebfdd

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

test/gui/shared/steps/sync_context.py

+6
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ def step(context, folder_name, selected):
275275
folder_name
276276
)
277277
test.compare(True, has_folder, "Folder should be in the remote list")
278+
squish.snooze(1)
278279
test.compare(
279280
selected == 'selected',
280281
SyncConnectionWizard.is_remote_folder_selected(folder_selector),
@@ -296,3 +297,8 @@ def step(context):
296297
def step(context):
297298
SyncConnection.remove_folder_sync_connection()
298299
SyncConnection.confirm_folder_sync_connection_removal()
300+
301+
302+
@Then('the file "|any|" should have status "|any|"')
303+
def step(context, file_name, status):
304+
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 "Local Activity" tab in the activity
20+
Then the file "lorem-for-upload.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)