0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 11:41:49 +02:00

refactor(stop_button): stop button changed to QWidget and adapted for toolbar

This commit is contained in:
2024-08-29 11:11:54 +02:00
parent 4a890281f7
commit 097946fd68
2 changed files with 33 additions and 16 deletions

View File

@ -16,12 +16,11 @@ def stop_button(qtbot, mocked_client):
def test_stop_button(stop_button):
assert stop_button.text() == "Stop"
assert stop_button.button.text() == "Stop"
assert (
stop_button.styleSheet()
stop_button.button.styleSheet()
== "background-color: #cc181e; color: white; font-weight: bold; font-size: 12px;"
)
stop_button.click()
assert stop_button.queue.request_scan_abortion.called
assert stop_button.queue.request_queue_reset.called
stop_button.button.click()
assert stop_button.queue.request_scan_halt.called
stop_button.close()