summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-04 10:33:31 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-08 16:26:38 +0100
commit772eeaa715551cbb4693ab221ea8fc6dad7e1bb6 (patch)
tree03eb7c8bb16095d15829b052f182390500822f59 /components
parent6ba2b8fa9342221ebbd64997e9bca0e959c0f4fe (diff)
downloadkube-772eeaa715551cbb4693ab221ea8fc6dad7e1bb6.tar.gz
kube-772eeaa715551cbb4693ab221ea8fc6dad7e1bb6.zip
Send message test harness
Diffstat (limited to 'components')
-rw-r--r--components/kube/qml/ComposerView.qml1
-rw-r--r--components/kube/tests/tst_composerview.qml11
2 files changed, 12 insertions, 0 deletions
diff --git a/components/kube/qml/ComposerView.qml b/components/kube/qml/ComposerView.qml
index ac45f5c8..1eb88bb4 100644
--- a/components/kube/qml/ComposerView.qml
+++ b/components/kube/qml/ComposerView.qml
@@ -517,6 +517,7 @@ Kube.View {
517 } 517 }
518 518
519 Kube.PositiveButton { 519 Kube.PositiveButton {
520 objectName: "sendButton"
520 id: sendButton 521 id: sendButton
521 522
522 width: parent.width 523 width: parent.width
diff --git a/components/kube/tests/tst_composerview.qml b/components/kube/tests/tst_composerview.qml
index 52475721..4b0362a7 100644
--- a/components/kube/tests/tst_composerview.qml
+++ b/components/kube/tests/tst_composerview.qml
@@ -42,4 +42,15 @@ TestCase {
42 verify(newMailButton) 42 verify(newMailButton)
43 verify(newMailButton.activeFocus) 43 verify(newMailButton.activeFocus)
44 } 44 }
45
46 function test_sendMessage() {
47 var mail = null
48 var loadAsDraft = true
49 composer.loadMessage(mail, loadAsDraft)
50 var sendMailButton = findChild(composer, "sendButton")
51 verify(sendMailButton)
52 verify(sendMailButton.enabled)
53 sendMailButton.clicked()
54 //TODO verify the mail is sent
55 }
45} 56}