diff --git a/tests/test_repo.py b/tests/test_repo.py index 24013ed4..786a6219 100644 --- a/tests/test_repo.py +++ b/tests/test_repo.py @@ -52,10 +52,10 @@ def test_create(app_with_repo, borg_json_output, mocker, qtbot): qtbot.mouseClick(main.createStartBtn, QtCore.Qt.LeftButton) qtbot.waitUntil(lambda: main.createProgressText.text().startswith('INFO: Remote')) + qtbot.waitUntil(lambda: main.createStartBtn.isEnabled()) assert EventLogModel.select().count() == 1 assert SnapshotModel.select().count() == 1 assert RepoModel.get(id=1).unique_size == 15520474 - qtbot.waitUntil(lambda: main.createStartBtn.isEnabled()) assert main.createStartBtn.isEnabled() assert main.snapshotTab.snapshotTable.rowCount() == 1 assert main.scheduleTab.logTableWidget.rowCount() == 1