Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit a6d90ac4 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Make tests more flexible, hopefully fixing them on build.kde.org

parent b0fc2ab0
......@@ -10,7 +10,8 @@ DiscoverTest
compare(appRoot.stack.currentItem.isBusy, true, "same title");
verify(waitForSignal(appRoot.stack.currentItem, "isBusyChanged"))
var item = appRoot.stack.currentItem.flickable.itemAt(100, 100)
appRoot.stack.currentItem.flickable.currentIndex = 0
var item = appRoot.stack.currentItem.flickable.currentItem
verify(item)
item.clicked()
verify(appRoot.stack.currentItem, "has a page");
......@@ -35,7 +36,8 @@ DiscoverTest
compare(appRoot.stack.currentItem.isBusy, true, "same title");
verify(waitForSignal(appRoot.stack.currentItem, "isBusyChanged"))
var item = appRoot.stack.currentItem.flickable.itemAt(100, 100)
appRoot.stack.currentItem.flickable.currentIndex = 0
var item = appRoot.stack.currentItem.flickable.currentItem
verify(item)
item.clicked()
verify(appRoot.stack.currentItem, "has a page");
......
......@@ -65,7 +65,7 @@ QVector<AbstractResource*> KNSBackendTest::getResources(ResultsStream* stream)
QSignalSpy spyResources(stream, &ResultsStream::destroyed);
QVector<AbstractResource*> resources;
connect(stream, &ResultsStream::resourcesFound, this, [&resources](const QVector<AbstractResource*>& res) { resources += res; });
Q_ASSERT(spyResources.wait());
Q_ASSERT(spyResources.wait(10000));
Q_ASSERT(!resources.isEmpty());
return resources;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment