From 7008aee88ef522af0277ca37667583e61d8fa445 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 6 Oct 2017 17:23:18 +0200 Subject: Test that we start into the account wizard --- components/accounts/contents/ui/AccountWizard.qml | 1 + tests/tst_applicationstart.qml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/components/accounts/contents/ui/AccountWizard.qml b/components/accounts/contents/ui/AccountWizard.qml index 38bf19cb..4a11ca05 100644 --- a/components/accounts/contents/ui/AccountWizard.qml +++ b/components/accounts/contents/ui/AccountWizard.qml @@ -23,6 +23,7 @@ import org.kube.framework 1.0 as Kube Kube.Popup { id: root + objectName: "accountWizard" property bool requireSetup: false property var availableAccountPlugins: [] diff --git a/tests/tst_applicationstart.qml b/tests/tst_applicationstart.qml index b5d7a396..16107ec0 100644 --- a/tests/tst_applicationstart.qml +++ b/tests/tst_applicationstart.qml @@ -31,8 +31,11 @@ TestCase { name: "ApplicationStart" Kube.Kube { + id: kube } - function test_stuff() { + function test_startToWizard() { + var accountWizard = findChild(kube, "accountWizard"); + verify(accountWizard.visible) } } -- cgit v1.2.3