on xenial help sign in
Start from a clean scopes situation every test now that favorite changes scopes
8e1373dAlbert Astals Cid
tests/qmltests/Dash/tst_GenericScopeView.qml+5
@@ -70,6 +70,11 @@ Item {
70 property Item header: findChild(genericScopeView, "scopePageHeader")
70 property Item header: findChild(genericScopeView, "scopePageHeader")
71
71
72 function init() {
72 function init() {
73+ // Start from a clean scopes situation every test
74+ scopes.clear();
75+ scopes.load();
76+ tryCompare(scopes, "loaded", true);
77+
73 genericScopeView.scope = scopes.getScope(2);
78 genericScopeView.scope = scopes.getScope(2);
74 shell.width = units.gu(120);
79 shell.width = units.gu(120);
75 genericScopeView.categoryView.positionAtBeginning();
80 genericScopeView.categoryView.positionAtBeginning();