Add mouse back button to click test.
This commit is contained in:
parent
5e1c530d71
commit
13677d3563
@ -132,3 +132,8 @@ def test_click_messages(qtbot, view):
|
|||||||
view.show_message(usertypes.MessageLevel.info, 'test mouse right click')
|
view.show_message(usertypes.MessageLevel.info, 'test mouse right click')
|
||||||
QTest.mousePress(view, Qt.RightButton)
|
QTest.mousePress(view, Qt.RightButton)
|
||||||
assert not view._messages
|
assert not view._messages
|
||||||
|
|
||||||
|
# Test mouse back button - This shouldn't clear messages.
|
||||||
|
view.show_message(usertypes.MessageLevel.info, 'test mouse back button')
|
||||||
|
QTest.mousePress(view, Qt.BackButton)
|
||||||
|
assert len(view._messages) == 1
|
||||||
|
Loading…
Reference in New Issue
Block a user