diff --git a/test/library/gui/dwarfmode.lua b/test/library/gui/dwarfmode.lua index 3d013f940..3c2c70d79 100644 --- a/test/library/gui/dwarfmode.lua +++ b/test/library/gui/dwarfmode.lua @@ -64,4 +64,10 @@ function test.enterSidebarMode() guidm.enterSidebarMode(df.ui_sidebar_mode.Default) expect.eq(df.ui_sidebar_mode.Default, df.global.ui.main.mode) expect.eq('dwarfmode/Default', dfhack.gui.getCurFocus(true)) + + -- verify that all supported modes lead where we say they'll go + for k,v in pairs(guidm.SIDEBAR_MODE_KEYS) do + guidm.enterSidebarMode(k) + expect.eq(k, df.global.ui.main.mode) + end end