Start from a clean scopes situation every test now that favorite changes scopes
commit8e1373dc8422e4c3ff7d3c7799fd59ae9e35b8cb
authorAlbert Astals Cid <albert.astals@canonical.com>
dateWed 11 Nov 2015, 10:18 (11 years ago)
parent2c20ff6
tests/qmltests/Dash/tst_GenericScopeView.qml+5
@@ -70,6 +70,11 @@ Item {
7070 property Item header: findChild(genericScopeView, "scopePageHeader")
7171
7272 function init() {
73+ // Start from a clean scopes situation every test
74+ scopes.clear();
75+ scopes.load();
76+ tryCompare(scopes, "loaded", true);
77+
7378 genericScopeView.scope = scopes.getScope(2);
7479 shell.width = units.gu(120);
7580 genericScopeView.categoryView.positionAtBeginning();