Add a wait statement to check paintEvent in Preferences

This commit is contained in:
Veronica Berglyd Olsen
2024-07-03 20:29:00 +02:00
parent 5e8892ee7c
commit f4f3f82954
@@ -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