Skip to content

Commit

Permalink
add test to check the sync activity in Sync Protocal tab (#11726)
Browse files Browse the repository at this point in the history
  • Loading branch information
PrajwolAmatya authored Jul 10, 2024
1 parent a947c54 commit d3c23d6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions test/gui/shared/steps/sync_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,3 +288,8 @@ def step(context):
def step(context):
SyncConnection.remove_folder_sync_connection()
SyncConnection.confirm_folder_sync_connection_removal()


@Then('the file "|any|" should have status "|any|" in the activity tab')
def step(context, file_name, status):
Activity.hasSyncStatus(file_name, status)
5 changes: 4 additions & 1 deletion test/gui/tst_syncing/test.feature
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ Feature: Syncing files
test content
"""
And the user waits for file "lorem-for-upload.txt" to be synced
Then as "Alice" the file "lorem-for-upload.txt" should have the content "test content" in the server
And the user clicks on the activity tab
And the user selects "Local Activity" tab in the activity
Then the file "lorem-for-upload.txt" should have status "Uploaded" in the activity tab
And as "Alice" the file "lorem-for-upload.txt" should have the content "test content" in the server


Scenario: Syncing all files and folders from the server
Expand Down

0 comments on commit d3c23d6

Please sign in to comment.