{"action":"closed","issue":{"url":"https://api.github.com/repos/picklesdoc/pickles/issues/553","repository_url":"https://api.github.com/repos/picklesdoc/pickles","labels_url":"https://api.github.com/repos/picklesdoc/pickles/issues/553/labels{/name}","comments_url":"https://api.github.com/repos/picklesdoc/pickles/issues/553/comments","events_url":"https://api.github.com/repos/picklesdoc/pickles/issues/553/events","html_url":"https://github.com/picklesdoc/pickles/issues/553","id":370214267,"node_id":"MDU6SXNzdWUzNzAyMTQyNjc=","number":553,"title":"Javascript error in dhtml doc","user":{"login":"0x6C6F","id":8344145,"node_id":"MDQ6VXNlcjgzNDQxNDU=","avatar_url":"https://avatars1.githubusercontent.com/u/8344145?v=4","gravatar_id":"","url":"https://api.github.com/users/0x6C6F","html_url":"https://github.com/0x6C6F","followers_url":"https://api.github.com/users/0x6C6F/followers","following_url":"https://api.github.com/users/0x6C6F/following{/other_user}","gists_url":"https://api.github.com/users/0x6C6F/gists{/gist_id}","starred_url":"https://api.github.com/users/0x6C6F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0x6C6F/subscriptions","organizations_url":"https://api.github.com/users/0x6C6F/orgs","repos_url":"https://api.github.com/users/0x6C6F/repos","events_url":"https://api.github.com/users/0x6C6F/events{/privacy}","received_events_url":"https://api.github.com/users/0x6C6F/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-15T15:19:33Z","updated_at":"2018-10-17T05:47:18Z","closed_at":"2018-10-17T05:47:18Z","author_association":"NONE","body":"The dhtml report is not shown in TeamCity and is blocked with the message \"Loading...\"\r\n\r\n![2018-10-15_17h23_32](https://user-images.githubusercontent.com/8344145/46960559-1b3a8e80-d09f-11e8-82d8-8ee5f0af8699.png)\r\n\r\nPickles.MSBuild 2.20.0, Specflow 2.4.0, NUnit 3.11.0, TeamCity 2017.2.2\r\n\r\nThe browser console (Chrome 69) contains the following Javascript error:\r\n```\r\nknockout-3.4.0.js:72 Uncaught ReferenceError: Unable to process binding \"template: function(){return { name:'featuresByFolder-template',foreach:featuresByFolder().SubDirectories} }\"\r\nMessage: Unable to process binding \"template: function(){return { name:'features-template',foreach:features} }\"\r\nMessage: Unable to process binding \"template: function(){return { name:'testResults-template',data:Result} }\"\r\nMessage: Unable to process binding \"if: function(){return (WasExecuted && WasProvided) }\"\r\nMessage: WasProvided is not defined\r\n    at if (eval at parseBindingsString (knockout-3.4.0.js:68), <anonymous>:3:78)\r\n    at a.m.i (knockout-3.4.0.js:8)\r\n    at Function.Pc (knockout-3.4.0.js:51)\r\n    at Function.Qc (knockout-3.4.0.js:51)\r\n    at Function.aa (knockout-3.4.0.js:50)\r\n    at Object.a.m.a.B (knockout-3.4.0.js:49)\r\n    at init (knockout-3.4.0.js:8)\r\n    at knockout-3.4.0.js:72\r\n    at Object.w (knockout-3.4.0.js:39)\r\n    at knockout-3.4.0.js:71\r\n```\r\n\r\nAfter some analyses I see that in the files\r\n-- dhtml\\js\\featuresModel.js\r\n-- dhtml\\js\\heirarchyBuilder.js\r\nthe \"WasProvided\" variable was not initialized. This is in contrast to \"WasExecuted\" and \"WasSuccessful\".\r\n\r\nIn combination with the generated index.html file (see extract below) where the variable was used, this leads to the above error.\r\n\r\n```\r\n<script type=\"text/html\" id=\"testResults-template\">\r\n    <div style=\"float: right\" data-bind=\"if: (WasExecuted && WasProvided)\">\r\n        <div data-bind=\"if: WasSuccessful\"><span class=\"badge badge-success\"><i class=\"icon-ok passed\" title=\"Passed\"></i></span></div>\r\n        <div data-bind=\"if: !WasSuccessful\"><span class=\"badge badge-important\"><i class=\"icon-minus-sign failed\" title=\"Failed\"></i></span></div>\r\n    </div>\r\n    <div style=\"float: right\" data-bind=\"if: (!WasExecuted && WasExecuted)\">\r\n        <span class=\"badge badge-warning\"><i class=\"icon-warning-sign inconclusive\" title=\"Inconclusive\"></i></span>\r\n    </div>\r\n</script>\r\n```\r\n\r\n"}}
{"actor":{"display_login":"dirkrombauts"}}