on xenial help sign in
SDK changed the name they give to the buttons, follow
commit5f8c17b51a8a907147111e1c99cdc71a115c7ead authorAlbert Astals Cid <albert.astals@canonical.com> dateFri 11 Dec 2015, 10:10 (11 years ago) parentc487aa5
3 files changed+4−4
tests/autopilot/unity8/dash.py+1−1 tests/qmltests/Dash/tst_Dash.qml+1−1 tests/qmltests/Dash/tst_GenericScopeView.qml+2−2
tests/autopilot/unity8/dash.py+1−1
@@ -158,7 +158,7 @@ class Dash(ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase):
158158 def enter_search_query(self, query, keyboard):
159159 current_header = self._get_current_page_header()
160160 search_button = \
161− current_header.select_single(objectName="search_action_button")
161+ current_header.select_single(objectName="search_button")
162162 self.pointing_device.move(
163163 search_button.globalRect.x + search_button.width / 2,
164164 search_button.globalRect.y + search_button.height / 2)
tests/qmltests/Dash/tst_Dash.qml+1−1
@@ -319,7 +319,7 @@ Item {
319319
320320 // Click on the store
321321 var scopesListPageHeader = findChild(scopesList, "pageHeader");
322− var searchButton = findChild(scopesListPageHeader, "store_action_button");
322+ var searchButton = findChild(scopesListPageHeader, "store_button");
323323 mouseClick(searchButton);
324324
325325 spy.wait();
tests/qmltests/Dash/tst_GenericScopeView.qml+2−2
@@ -429,7 +429,7 @@ Item {
429429 // open
430430 tryCompare(testCase.subPageLoader, "open", false);
431431 tryCompare(testCase.subPageLoader, "visible", false);
432− var settings = findChild(innerHeader, "settings_action_button");
432+ var settings = findChild(innerHeader, "settings_button");
433433 mouseClick(settings);
434434 tryCompare(testCase.subPageLoader, "open", true);
435435 tryCompareFunction(function() { return (String(subPageLoader.source)).indexOf("ScopeSettingsPage.qml") != -1; }, true);
@@ -577,7 +577,7 @@ Item {
577577 verify(innerHeader, "Could not find the inner header");
578578
579579 expectFail("Apps", "Click scope should not have a favorite button");
580− var favoriteAction = findChild(innerHeader, "favorite_action_button");
580+ var favoriteAction = findChild(innerHeader, "favorite_button");
581581 verify(favoriteAction, "Could not find the favorite action.");
582582 mouseClick(favoriteAction);
583583