From 521b5962d61412c506d14ae18a3c25b5644f75bf Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Thu, 11 Aug 2022 14:29:48 -0400 Subject: [PATCH] test for message collaborations --- test/spec/MessagesSpec.js | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/test/spec/MessagesSpec.js b/test/spec/MessagesSpec.js index 910aa42..5e4c74c 100644 --- a/test/spec/MessagesSpec.js +++ b/test/spec/MessagesSpec.js @@ -72,13 +72,27 @@ describe('Messages should work', function() { expect(payload, "Can't find the message payload").to.exist; let textArea = findTextarea('bio-properties-panel-messagePayload', payload); - expect(textArea, "Can't find the payload text").to.exist; - expect(textArea.value, "Can't find innerHTML").to.exist; + expect(textArea, "Can't find the payload textarea").to.exist; + expect(textArea.value, "Can't find payload value").to.exist; expect(textArea.value).to.equal("\n" + " {\n" + " 'to': { 'name': my_lover_variable }\n" + " }\n" + " "); - console.log('innerHTML', textArea.innerHTML); }); + + it('should show the correlations inside the message group',async function() { + + // Select the second Task + const send_shape = await expectSelected('ActivitySendLetter'); + expect(send_shape, "Can't find Send Task").to.exist; + + // THEN - there are correlations. + let correlations = findTextarea('bio-properties-panel-messageCorrelations', container); + expect(correlations, "Can't find the message correlations").to.exist; + + console.log("Message Correlations: "); + + }); + });