diff options
author | amrita <anukanxi05@gmail.com> | 2022-07-26 10:21:01 +0300 |
---|---|---|
committer | amrita <anukanxi05@gmail.com> | 2022-07-26 10:21:01 +0300 |
commit | b510c31b6045f9dc9f19281ea3cf0a472c5b4b35 (patch) | |
tree | 8b2579880d39b208addc9dc6b82a5de584c4fe66 | |
parent | cec381dbae4a30ac9fc92eb7289ad094eca3cd0e (diff) |
Refactor some functionfilter-tests
-rw-r--r-- | test/gui/shared/scripts/pageObjects/Activity.py | 4 | ||||
-rw-r--r-- | test/gui/shared/steps/steps.py | 12 |
2 files changed, 11 insertions, 5 deletions
diff --git a/test/gui/shared/scripts/pageObjects/Activity.py b/test/gui/shared/scripts/pageObjects/Activity.py index eda32ed79..61ae78939 100644 --- a/test/gui/shared/scripts/pageObjects/Activity.py +++ b/test/gui/shared/scripts/pageObjects/Activity.py @@ -73,7 +73,7 @@ class Activity: ) return result - + def isNotSyncedResourceExist(self, context, filename, status): try: # The blacklisted file does not have text like (conflicted copy) appended to it in the not synced table. @@ -96,7 +96,7 @@ class Activity: }, context.userData['lowestSyncTimeout'] * 1000, ) - + return True except: return False diff --git a/test/gui/shared/steps/steps.py b/test/gui/shared/steps/steps.py index ca92e628c..149ffa42f 100644 --- a/test/gui/shared/steps/steps.py +++ b/test/gui/shared/steps/steps.py @@ -711,7 +711,7 @@ def step(context, filename, status): test.compare( True, activity.checkNotSyncedResourceExist(context, filename, status), - filename + " file status should be " + status + filename + " file status should be " + status, ) @@ -1541,7 +1541,11 @@ def step(context): action = row[0] resource = row[1] account = row[2] - test.compare(activity.checkTableContent(context, action, resource, account), True, "Matching sync tab table content") + test.compare( + activity.checkTableContent(context, action, resource, account), + True, + "Matching sync tab table content", + ) @When('the user uncheck "|any|" filter on the not_synced tab') @@ -1554,5 +1558,7 @@ def step(context, filename): def step(context, filename): activity = Activity() test.compare( - activity.waitForResourceNotExist(context, filename), True, filename + " file should not exist in not_synced tab" + activity.waitForResourceNotExist(context, filename), + True, + filename + " file should not exist in not_synced tab", ) |