diff options
author | Swoichha Adhikari <swoichhaa@gmail.com> | 2021-08-02 09:02:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-02 09:02:42 +0300 |
commit | 6882ece9dacc90b6da370ac23b20d5be03d06542 (patch) | |
tree | c09ac57d68891670c83044c4a0b7dde236f5d4e2 /test/gui/shared | |
parent | 89a8085876c9e178425d4ccb1592adb5394c3150 (diff) |
[tests-only] refactor steps (#8845)
Diffstat (limited to 'test/gui/shared')
-rw-r--r-- | test/gui/shared/steps/steps.py | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/test/gui/shared/steps/steps.py b/test/gui/shared/steps/steps.py index b53d16dd5..d90dd56ef 100644 --- a/test/gui/shared/steps/steps.py +++ b/test/gui/shared/steps/steps.py @@ -261,10 +261,7 @@ def collaboratorShouldBeListed(context, receiver, resource, permissions): @When('the user waits for the files to sync') def step(context): - waitFor( - lambda: isFolderSynced(context.userData['clientSyncPath']), - context.userData['clientSyncTimeout'] * 1000, - ) + waitForFolderToBeSynced(context, '/') @When('the user waits for file "|any|" to be synced') @@ -326,10 +323,7 @@ def step(context, filePath): @Given('the user has paused the file sync') def step(context): - waitFor( - lambda: isFolderSynced(context.userData['clientSyncPath']), - context.userData['clientSyncTimeout'] * 1000, - ) + waitForFolderToBeSynced(context, '/') syncWizard = SyncWizard() syncWizard.performAction("Pause sync") @@ -606,10 +600,7 @@ def step(context, username): @Given('user "|any|" has logged out of the client-UI') def step(context, username): - waitFor( - lambda: isFolderSynced(context.userData['clientSyncPath']), - context.userData['clientSyncTimeout'] * 1000, - ) + waitForFolderToBeSynced(context, '/') # TODO: find some way to dynamically to check if files are synced # It might take some time for all files to sync snooze(5) @@ -651,10 +642,7 @@ def step(context, username, host): ) ) - waitFor( - lambda: isFolderSynced(context.userData['clientSyncPath']), - context.userData['clientSyncTimeout'] * 1000, - ) + waitForFolderToBeSynced(context, '/') accountStatus = AccountStatus() accountStatus.removeConnection() |