diff options
author | sushmita56 <poudelsushmita878@gmail.com> | 2022-07-06 14:20:48 +0300 |
---|---|---|
committer | sushmita56 <poudelsushmita878@gmail.com> | 2022-07-11 06:42:00 +0300 |
commit | cc3d44db261b1b0b73de73780bbf5cfe5fca7de5 (patch) | |
tree | 5fd55f41e45a45e54872912d1353c71aaa190a5b | |
parent | bc18bc7ae9eae70d087284d194747f2254463599 (diff) |
added implicit wait for resource to syncadd-implicit-wait-for-sync
-rw-r--r-- | test/gui/shared/steps/steps.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/gui/shared/steps/steps.py b/test/gui/shared/steps/steps.py index 39622638f..83d459a37 100644 --- a/test/gui/shared/steps/steps.py +++ b/test/gui/shared/steps/steps.py @@ -723,6 +723,11 @@ def step(context, tabName): def openSharingDialog(context, resource, itemType='file'): resource = getResourcePath(context, resource) + resourceExist = waitFor( + lambda: os.path.exists(resource), context.userData['maxSyncTimeout'] * 1000 + ) + if not resourceExist: + raise Exception("{} doesn't exists".format(resource)) waitFor(lambda: shareResource(resource), context.userData['maxSyncTimeout'] * 1000) |