diff options
author | Talank <talank@gces.edu.np> | 2021-10-29 14:52:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-29 14:52:21 +0300 |
commit | 3506d0831ea5e86bb384e352f5f5b03ce20af9cb (patch) | |
tree | d198d0fe13a31785ce56f33a2b45c5ad81198a0e /test/gui/shared/scripts | |
parent | 3465795ebb2d8dd84f2aa9a3a18ac7b7ac5133d2 (diff) |
[Tests-Only]Added tests for folder creation and syncing (#8980)
Diffstat (limited to 'test/gui/shared/scripts')
-rw-r--r-- | test/gui/shared/scripts/pageObjects/Activity.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/gui/shared/scripts/pageObjects/Activity.py b/test/gui/shared/scripts/pageObjects/Activity.py index a0e1a7d54..518fa7b14 100644 --- a/test/gui/shared/scripts/pageObjects/Activity.py +++ b/test/gui/shared/scripts/pageObjects/Activity.py @@ -56,3 +56,26 @@ class Activity: "type": "QModelIndex", } ) + + def checkBlackListedFileExist(self, filename): + squish.waitForObject(names.settings_OCC_SettingsDialog) + + # The blacklisted file does not have text like (conflicted copy) appended to it in the not synced table. + fileRow = squish.waitForObject( + { + "column": 1, + "container": names.oCC_IssuesWidget_tableView_QTableView, + "text": filename, + "type": "QModelIndex", + } + )["row"] + + squish.waitForObjectExists( + { + "column": 6, + "row": fileRow, + "container": names.oCC_IssuesWidget_tableView_QTableView, + "text": "Blacklisted", + "type": "QModelIndex", + } + ) |