@@ -2007,18 +2007,23 @@ Rectangle {
20072007 tryCompare(shortcutHint, "visible", false);
20082008 }
20092009
2010− function test_metaNumberLaunchesFromLauncher() {
2010+ function test_metaNumberLaunchesFromLauncher_data() {
2011+ return [
2012+ {tag: "Meta+1", key: Qt.Key_1, index: 0},
2013+ {tag: "Meta+2", key: Qt.Key_2, index: 1},
2014+ {tag: "Meta+4", key: Qt.Key_5, index: 4},
2015+ {tag: "Meta+0", key: Qt.Key_0, index: 9},
2016+ ]
2017+ }
2018+
2019+ function test_metaNumberLaunchesFromLauncher(data) {
20112020 loadShell("desktop");
20122021 var launcher = findChild(shell, "launcher");
2013− var firstAppInLauncher = LauncherModel.get(0).appId;
2014− var secondAppInLauncher = LauncherModel.get(1).appId;
2022+ var appId = LauncherModel.get(data.index).appId;
20152023 waitForRendering(shell);
20162024
2017− keyClick(Qt.Key_1, Qt.MetaModifier);
2018− tryCompare(ApplicationManager, "focusedApplicationId", firstAppInLauncher);
2019−
2020− keyClick(Qt.Key_2, Qt.MetaModifier);
2021− tryCompare(ApplicationManager, "focusedApplicationId", secondAppInLauncher);
2025+ keyClick(data.key, Qt.MetaModifier);
2026+ tryCompare(ApplicationManager, "focusedApplicationId", appId);
20222027 }
20232028
20242029 function test_altF1OpensLauncherForKeyboardNavigation() {