Skip to content
Snippets Groups Projects
Commit 25b1a7ae authored by inso's avatar inso
Browse files

Longer test hoping osx crashes less

parent 981fb1d6
No related branches found
No related tags found
No related merge requests found
......@@ -26,25 +26,25 @@ async def test_certification_init_community(application_with_one_connection, fak
assert not certification_dialog.view.button_process.isEnabled()
certification_dialog.search_user.view.combobox_search.lineEdit().clear()
QTest.keyClicks(certification_dialog.search_user.view.combobox_search.lineEdit(), alice.key.pubkey)
await asyncio.sleep(0.1)
await asyncio.sleep(0.5)
certification_dialog.search_user.view.search("")
await asyncio.sleep(1)
certification_dialog.search_user.view.node_selected.emit(0)
await asyncio.sleep(0.1)
await asyncio.sleep(0.5)
assert certification_dialog.user_information.model.identity.uid == "alice"
await asyncio.sleep(0.1)
await asyncio.sleep(0.5)
assert certification_dialog.view.button_process.isEnabled()
QTest.mouseClick(certification_dialog.view.button_process, Qt.LeftButton)
await asyncio.sleep(0.1)
await asyncio.sleep(0.5)
QTest.mouseClick(certification_dialog.view.button_accept, Qt.LeftButton)
await asyncio.sleep(0.1)
await asyncio.sleep(0.5)
QTest.keyClicks(certification_dialog.password_input.view.edit_secret_key, bob.salt)
QTest.keyClicks(certification_dialog.password_input.view.edit_password, bob.password)
assert certification_dialog.view.button_box.button(QDialogButtonBox.Ok).isEnabled()
QTest.mouseClick(certification_dialog.view.button_box.button(QDialogButtonBox.Ok), Qt.LeftButton)
await asyncio.sleep(0.1)
await asyncio.sleep(0.5)
click_on_top_message_box_button(QMessageBox.Yes)
await asyncio.sleep(0.2)
await asyncio.sleep(0.5)
assert isinstance(fake_server_with_blockchain.forge.pool[0], Certification)
application_with_one_connection.loop.call_later(10, close_dialog)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment