summaryrefslogtreecommitdiff
path: root/tests
diff options
Diffstat (limited to 'tests')
-rw-r--r--tests/test_launcher_controller.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_launcher_controller.cpp b/tests/test_launcher_controller.cpp
index eee05c0bf..456c556b7 100644
--- a/tests/test_launcher_controller.cpp
+++ b/tests/test_launcher_controller.cpp
@@ -1455,7 +1455,10 @@ TEST_F(TestLauncherController, SortAndUpdate)
for (auto const& icon : *(lc.Impl()->model_))
{
- if (icon->IsVisible() && icon->GetIconType() == AbstractLauncherIcon::IconType::APPLICATION && expected_shortcut <= 10)
+ if (icon->IsVisible() &&
+ (icon->GetIconType() == AbstractLauncherIcon::IconType::APPLICATION ||
+ icon->GetIconType() == AbstractLauncherIcon::IconType::DEVICE) &&
+ expected_shortcut <= 10)
{
ASSERT_EQ(icon->GetShortcut(), std::to_string(expected_shortcut % 10)[0]);
++expected_shortcut;