diff --git a/tests/unit/test_repo.py b/tests/unit/test_repo.py index b1733d4fe..9a32f50b4 100644 --- a/tests/unit/test_repo.py +++ b/tests/unit/test_repo.py @@ -244,6 +244,9 @@ def test_ssh_copy_to_clipboard_action(qapp, qtbot, mocker, tmpdir): key_tmpfile_full = os.path.join(key_tmpfile.dirname, key_tmpfile.basename) ssh_dialog.outputFileTextBox.setText(key_tmpfile_full) ssh_dialog.generate_key() + qtbot.waitUntil(lambda: ssh_dialog.errors.text().startswith('New key was copied'), **pytest._wait_defaults) + assert len(ssh_dir.listdir()) == 2 + assert tab.sshComboBox.count() > 1 # no ssh key selected to copy assert tab.sshComboBox.currentIndex() == 0