From 7a751125aab6b33f23557c90d6c97cae9f832d82 Mon Sep 17 00:00:00 2001 From: Simon Priet Date: Wed, 8 Sep 2021 10:59:14 +0200 Subject: [PATCH] feat(Cypress): Implemented test step POST CommunicationRequest --- cypress/integration/api.spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cypress/integration/api.spec.js b/cypress/integration/api.spec.js index d945a071..b8174ea7 100644 --- a/cypress/integration/api.spec.js +++ b/cypress/integration/api.spec.js @@ -160,8 +160,11 @@ describe("it test the api", () => { expect(response.headers["content-type"]).to.eq("application/fhir+json;charset=UTF-8"); expect(response.body).to.have.property("resourceType", "CommunicationRequest"); expect(response.body).to.have.property('id'); + expect(response.body).to.have.property('status', 'draft'); communicationRequestId = response.body.id }); }); + + });