From 4c7baf3b33477684136f7e213c61135c0fbb6401 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 25 Mar 2018 21:09:36 +0200 Subject: Fixed test. What we should be doing is cleaning up in between the tests. --- views/conversation/tests/tst_conversationview.qml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/views/conversation/tests/tst_conversationview.qml b/views/conversation/tests/tst_conversationview.qml index 666114fd..186c2634 100644 --- a/views/conversation/tests/tst_conversationview.qml +++ b/views/conversation/tests/tst_conversationview.qml @@ -129,22 +129,17 @@ TestCase { address: "identity@example.org" }], resources: [{ - id: "resource1", + id: "resource3", account: "account1", type: "dummy" - }, - { - id: "resource2", - account: "account1", - type: "mailtransport" }], folders: [{ id: "folder1", - resource: "resource1", + resource: "resource3", name: "Folder 1", specialpurpose: ["inbox"], mails: [{ - resource: "resource1", + resource: "resource3", subject: "subject1", body: "body", to: ["to@example.org"], @@ -159,7 +154,7 @@ TestCase { var folderListView = findChild(mailView, "folderListView"); verify(folderListView) - var folder = TestStore.load("folder", {resource: "resource1"}) + var folder = TestStore.load("folder", {resource: "resource3"}) verify(folder) Kube.Fabric.postMessage(Kube.Messages.folderSelection, {"folder": folder, "trash": false}); -- cgit v1.2.3