diff options
author | Swoichha Adhikari <swoichhaa@gmail.com> | 2021-05-10 12:27:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-10 12:27:39 +0300 |
commit | 55f5856589eff2218c9a4654bbce65cef8cd32ec (patch) | |
tree | 1b48d6598d055c7298e69753174adbd738c039e8 /test | |
parent | 864907d89d0501bdb95e0c3685ea7954f1370924 (diff) |
[tests-only] repair file sync failing test (#8616)
* [tests-only]repair file sync failing test
* add new object to names.py
* remove comment line
Diffstat (limited to 'test')
-rw-r--r-- | test/gui/shared/scripts/names.py | 2 | ||||
-rw-r--r-- | test/gui/shared/steps/steps.py | 10 | ||||
-rw-r--r-- | test/gui/tst_syncing/test.feature | 2 |
3 files changed, 8 insertions, 6 deletions
diff --git a/test/gui/shared/scripts/names.py b/test/gui/shared/scripts/names.py index 5464dac82..71be56773 100644 --- a/test/gui/shared/scripts/names.py +++ b/test/gui/shared/scripts/names.py @@ -106,3 +106,5 @@ oCC_ShareLinkWidget_radio_readWrite_QRadioButton = {"container": qt_tabwidget_st oCC_ShareLinkWidget_radio_uploadOnly_QRadioButton = {"container": qt_tabwidget_stackedwidget_OCC_ShareLinkWidget_OCC_ShareLinkWidget, "name": "radio_uploadOnly", "type": "QRadioButton", "visible": 1} oCC_ShareLinkWidget_checkBox_expire_QCheckBox = {"container": qt_tabwidget_stackedwidget_OCC_ShareLinkWidget_OCC_ShareLinkWidget, "name": "checkBox_expire", "type": "QCheckBox", "visible": 1} oCC_ShareLinkWidget_checkBox_expire_QProgressIndicator = {"aboveWidget": oCC_ShareLinkWidget_lineEdit_password_QLineEdit, "container": qt_tabwidget_stackedwidget_OCC_ShareLinkWidget_OCC_ShareLinkWidget, "leftWidget": oCC_ShareLinkWidget_checkBox_expire_QCheckBox, "type": "QProgressIndicator", "unnamed": 1, "visible": 1} +oCC_IssuesWidget_tableView_QTableView = {"container": qt_tabwidget_stackedwidget_OCC_IssuesWidget_OCC_IssuesWidget, "name": "_tableView", "type": "QTableView", "visible": 1} +o_tableView_0_1_QModelIndex = {"column": 1, "container": oCC_IssuesWidget_tableView_QTableView, "row": 0, "type": "QModelIndex"}
\ No newline at end of file diff --git a/test/gui/shared/steps/steps.py b/test/gui/shared/steps/steps.py index 83e4319f9..fa3626e95 100644 --- a/test/gui/shared/steps/steps.py +++ b/test/gui/shared/steps/steps.py @@ -402,18 +402,18 @@ def step(context, filename): waitForObject(names.settings_OCC_SettingsDialog) waitForObjectExists({ "column": 1, - "container": names.oCC_IssuesWidget_treeWidget_QTreeWidget, + "container": names.oCC_IssuesWidget_tableView_QTableView, "text": RegularExpression(buildConflictedRegex(filename)), "type": "QModelIndex" }) + - -@When('the user selects the unsynced files tab with |integer| unsynced files') -def step(context, number): +@When('the user selects the unsynced files tab') +def step(context): # TODO: find some way to dynamically select the tab name # It might take some time for all files to sync except the expected number of unsynced files snooze(10) - clickTab(waitForObject(names.stack_QTabWidget), "Not Synced ({})".format(number)) + clickTab(waitForObject(names.stack_QTabWidget), "Not Synced") def openPublicLinkDialog(context, resource): diff --git a/test/gui/tst_syncing/test.feature b/test/gui/tst_syncing/test.feature index cafa0e801..1611ae276 100644 --- a/test/gui/tst_syncing/test.feature +++ b/test/gui/tst_syncing/test.feature @@ -37,7 +37,7 @@ Feature: Syncing files And user "Alice" has uploaded file on the server with content "changed server content" to "/conflict.txt" When the user resumes the file sync on the client And the user clicks on the activity tab - And the user selects the unsynced files tab with 1 unsynced files + And the user selects the unsynced files tab # Then a conflict warning should be shown for 1 files Then the table of conflict warnings should include file "conflict.txt" And the file "conflict.txt" should exist on the file system with the following content |