Add a wait statement to check paintEvent in Preferences
This commit is contained in:
@@ -92,6 +92,7 @@ def testDlgPreferences_Actions(qtbot, monkeypatch, nwGUI):
|
|||||||
"""Test the preferences dialog actions."""
|
"""Test the preferences dialog actions."""
|
||||||
monkeypatch.setattr(SHARED._spelling, "listDictionaries", lambda: [("en", "English [en]")])
|
monkeypatch.setattr(SHARED._spelling, "listDictionaries", lambda: [("en", "English [en]")])
|
||||||
prefs = GuiPreferences(nwGUI)
|
prefs = GuiPreferences(nwGUI)
|
||||||
|
with qtbot.waitExposed(prefs):
|
||||||
prefs.show()
|
prefs.show()
|
||||||
|
|
||||||
# Check Navigation
|
# Check Navigation
|
||||||
@@ -146,6 +147,7 @@ def testDlgPreferences_Settings(qtbot, monkeypatch, nwGUI, tstPaths):
|
|||||||
monkeypatch.setattr(CONFIG, "listLanguages", lambda *a: languages)
|
monkeypatch.setattr(CONFIG, "listLanguages", lambda *a: languages)
|
||||||
|
|
||||||
prefs = GuiPreferences(nwGUI)
|
prefs = GuiPreferences(nwGUI)
|
||||||
|
with qtbot.waitExposed(prefs):
|
||||||
prefs.show()
|
prefs.show()
|
||||||
|
|
||||||
# Appearance
|
# Appearance
|
||||||
|
|||||||
Reference in New Issue
Block a user