test: set direct link type to ticket

This commit is contained in:
Meik
2026-07-01 16:26:48 +02:00
parent 7c32c816ec
commit ec9fc5fb47

View File

@@ -343,8 +343,8 @@
" }", " }",
" if (ticket.ActivityType) {", " if (ticket.ActivityType) {",
" pm.collectionVariables.set(\"objectType\", ticket.ActivityType);", " pm.collectionVariables.set(\"objectType\", ticket.ActivityType);",
" pm.collectionVariables.set(\"type\", ticket.ActivityType);",
" }", " }",
" pm.collectionVariables.set(\"type\", \"ticket\");",
" pm.test(\"Captured ticket object id and type\", function () {", " pm.test(\"Captured ticket object id and type\", function () {",
" pm.expect(pm.collectionVariables.get(\"eoid\")).to.match(/^[0-9a-fA-F-]{36}$/);", " pm.expect(pm.collectionVariables.get(\"eoid\")).to.match(/^[0-9a-fA-F-]{36}$/);",
" pm.expect(pm.collectionVariables.get(\"type\")).to.be.a(\"string\").and.not.empty;", " pm.expect(pm.collectionVariables.get(\"type\")).to.be.a(\"string\").and.not.empty;",