on xenial help sign in
Fix AP tests
d327fc1Michal Hruby
Dash/GenericScopeView.qml+3−2
@@ -69,11 +69,12 @@ ScopeView {
69 onLoaded: {
69 onLoaded: {
70 if (source.toString().indexOf("Apps/RunningApplicationsGrid.qml") != -1) {
70 if (source.toString().indexOf("Apps/RunningApplicationsGrid.qml") != -1) {
71 // TODO: the running apps grid doesn't support standard scope results model yet
71 // TODO: the running apps grid doesn't support standard scope results model yet
72− item.firstModel = results.firstModel;
72+ item.firstModel = results.firstModel
73− item.secondModel = results.secondModel;
73+ item.secondModel = results.secondModel
74 } else {
74 } else {
75 item.model = results
75 item.model = results
76 }
76 }
77+ item.objectName = categoryId
77 }
78 }
78
79
79 Connections {
80 Connections {
tests/autopilot/unity8/shell/emulators/dash.py+3−3
@@ -25,9 +25,9 @@ class Dash(UnityEmulatorBase):
25 """An emulator that understands the Dash."""
25 """An emulator that understands the Dash."""
26
26
27 def get_home_applications_grid(self):
27 def get_home_applications_grid(self):
28− return self.select_single(
28+ return self.get_scope('home').select_single(
29− "ApplicationsFilterGrid",
29+ "GenericFilterGrid",
30− objectName="dashHomeApplicationsGrid"
30+ objectName="applications.scope"
31 )
31 )
32
32
33 def get_application_icon(self, text):
33 def get_application_icon(self, text):