summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <[email protected]>2016-12-16 19:34:40 +0100
committerAleix Pol <[email protected]>2016-12-16 19:34:40 +0100
commit135aafb68401eaae724823989b72690fc2ae64ce (patch)
tree26a9f4759ba50c2cd7a87065455ab9bcdb1e2c28
parent0fb0205d3e397e5b05dcd0fa76e03d15b3a59a42 (diff)
Tests that clicking the home banner jumps successfully
-rw-r--r--discover/autotests/toplevels.qml18
1 files changed, 18 insertions, 0 deletions
diff --git a/discover/autotests/toplevels.qml b/discover/autotests/toplevels.qml
index b6b12d8..74f3cb3 100644
--- a/discover/autotests/toplevels.qml
+++ b/discover/autotests/toplevels.qml
@@ -22,6 +22,24 @@ DiscoverTest
verify(waitForRendering())
}
+ function test_openHome() {
+ var drawer = appRoot.globalDrawer;
+ var firstitem;
+ chooseChild(drawer, function(object) {
+ if (object.hasOwnProperty("label") && object.label.indexOf("ummy")>0) {
+ firstitem = object;
+ return true
+ }
+ return false;
+ });
+ var categoryName = "dummy 3";
+ firstitem.clicked()
+
+ drawer.bannerClicked()
+ compare(appRoot.stack.currentItem.title, "Home", "same title");
+ compare(drawer.currentSubMenu, null)
+ }
+
function test_update() {
app.openMode("Update");