on xenial help sign in
SDK changed the name they give to the buttons, follow

Approved by: Lukáš Tinkl

commit1430b9d10576d69adc2cdfb15b82492330c600ff authorAlbert Astals Cid <albert.astals@canonical.com> dateMon 11 Jan 2016, 17:37 (11 years ago) parent15dbf818d54c07
4 files changed+5−5
tests/autopilot/unity8/dash.py+1−1 tests/qmltests/Dash/tst_Dash.qml+1−1 tests/qmltests/Dash/tst_DashContent.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_DashContent.qml+1−1
@@ -604,7 +604,7 @@ Item {
604604 {
605605 var dashContentList = findChild(dashContent, "dashContentList");
606606 var header = findChild(dashContentList.currentItem, "scopePageHeader")
607− var favoriteAction = findChild(header, "favorite_action_button");
607+ var favoriteAction = findChild(header, "favorite_button");
608608 compare(dashContentList.currentIndex, 0);
609609 compare(dashContentList.indexAt(dashContentList.width * 1.5, 0), 1);
610610 var nextScopeId = dashContentList.itemAt(dashContentList.width * 1.5, 0).item.scope.id;
tests/qmltests/Dash/tst_GenericScopeView.qml+2−2
@@ -434,7 +434,7 @@ Item {
434434 // open
435435 tryCompare(testCase.subPageLoader, "open", false);
436436 tryCompare(testCase.subPageLoader, "visible", false);
437− var settings = findChild(innerHeader, "settings_action_button");
437+ var settings = findChild(innerHeader, "settings_button");
438438 mouseClick(settings);
439439 tryCompare(testCase.subPageLoader, "open", true);
440440 tryCompareFunction(function() { return (String(subPageLoader.source)).indexOf("ScopeSettingsPage.qml") != -1; }, true);
@@ -582,7 +582,7 @@ Item {
582582 verify(innerHeader, "Could not find the inner header");
583583
584584 expectFail("Apps", "Click scope should not have a favorite button");
585− var favoriteAction = findChild(innerHeader, "favorite_action_button");
585+ var favoriteAction = findChild(innerHeader, "favorite_button");
586586 verify(favoriteAction, "Could not find the favorite action.");
587587 mouseClick(favoriteAction);
588588