summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <[email protected]>2018-05-23 18:12:34 +0200
committerAleix Pol <[email protected]>2018-05-23 18:12:34 +0200
commitf09e3ed1934f47bd5c105f8b78ad752d749885a2 (patch)
treebc0891a1827faab1832b0b8470467cadc0ad2c8f
parent88257be7ee9bd59cab3c3d26e1b97d2ae662fdf8 (diff)
Fix UpdateAndInstall test
-rw-r--r--discover/autotests/updateandinstall.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/discover/autotests/updateandinstall.qml b/discover/autotests/updateandinstall.qml
index 8c0b9bc..46a918f 100644
--- a/discover/autotests/updateandinstall.qml
+++ b/discover/autotests/updateandinstall.qml
@@ -32,7 +32,9 @@ DiscoverTest
{
var updatePage = appRoot.stack.currentItem;
compare(typeName(updatePage), "UpdatesPage")
- compare(updatePage.state, "has-updates", "to update")
+ while(updatePage.state === "fetching")
+ waitForSignal(updatePage, "stateChanged")
+ compare(updatePage.state, "now-uptodate", "to update")
var button = findChild(updatePage, "Button")
verify(!button.isActive)
}